/*! For license information please see main.d020fb5f.chunk.js.LICENSE.txt */ (this["webpackJsonpce-manager-portal-app"]=this["webpackJsonpce-manager-portal-app"]||[]).push([[0],{101:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"e",(function(){return a})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"d",(function(){return l}));var r=i(135),n=function(e){return{type:r.a,payload:e}},a=function(e){return{type:r.f,payload:e}},o=function(e){return{type:r.e,payload:e}},s=function(e){return{type:r.b,payload:e}},l=function(e){return{type:r.d,payload:e}}},102:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"h",(function(){return o})),i.d(t,"g",(function(){return g})),i.d(t,"c",(function(){return b})),i.d(t,"e",(function(){return S})),i.d(t,"f",(function(){return E})),i.d(t,"b",(function(){return I})),i.d(t,"d",(function(){return O}));var r=i(14),n={reportTokens:null,reportFilters:null,reportSavedFilters:null,selectedReport:null,selectedSavedFilter:null,userFavoriteReports:null,previousPage:null},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_REPORT_TOKEN":return Object(r.j)(e,{reportTokens:t.payload});case"SET_REPORT_FILTER":return Object(r.j)(e,{reportFilters:t.payload});case"SET_REPORT_SAVED_FILTERS":return Object(r.j)(e,{reportSavedFilters:t.payload});case"SET_SELECTED_REPORT":return Object(r.j)(e,{selectedReport:t.payload});case"SET_SELECTED_REPORT_SAVED_FILTER":return Object(r.j)(e,{selectedSavedFilter:t.payload});case"SET_USER_FAVORITE_REPORT":return Object(r.j)(e,{userFavoriteReports:t.payload});case"SET_REPORT_PREVIOUS_PAGE":return Object(r.j)(e,{previousPage:t.payload});default:return e}},o=function(e){return{type:"SET_SELECTED_REPORT",payload:e}},s=i(15),l=i(45),c=i(28),d=i.n(c),u=i(229);function h(){h=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(w){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new C(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return j()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=E(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(w){return{type:"throw",arg:w}}}e.wrap=l;var d={};function u(){}function v(){}function p(){}var f={};s(f,n,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,n)&&(f=y);var g=p.prototype=u.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function E(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;O(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:x(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var v=d.a.create(),p=null!=="https://rpt.mm.micronapps.com"?"https://rpt.mm.micronapps.com":"";v.interceptors.request.use(function(){var e=Object(l.a)(h().mark((function e(t){var i,r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.a.getState().reports.reportTokens,r=i.token,n=i.tenantId,null!==r&&(t.headers={access_token:r,current_tenant:n}),e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),v.interceptors.response.use(void 0,(function(e){var t=e.response;throw t.detail=e.message,t.title="An unexpected server error occurred.",t}));var f=i(7),m=i(34),y=i(447),g=function(){return function(e){var t="localhost"===Object(y.a)()?"micron":Object(y.a)();return s.N.getToken("cemUser",t,void 0).then((function(t){return e({type:"SET_REPORT_TOKEN",payload:t}),t})).catch((function(t){e(Object(m.b)(t))}))}},b=function(e,t,i){return function(r){return s.x.generate(void 0,new f.Jc({guid:e,params:t})).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),r=document.createElement("a");switch(r.href=t,i){case 100:r.setAttribute("download","California_CPE_Report.xlsx")}document.body.appendChild(r),r.click(),r.remove()})).catch((function(e){r(Object(m.b)(e))}))}},S=function(e){return function(t){return function(e){var t={method:"POST",url:"".concat(p,"/api/report/list2"),data:{criterias:[{key:"All",value:e}],isUncategorized:!1,sortCriteria:{key:"ReportName",descending:!1},tenantId:u.a.getState().reports.reportTokens.tenantId,type:"0",skipItems:0,pageSize:100,parentIds:[],includeGlobalCategory:!0,isGlobal:null}};return v.request(t).catch((function(e){throw e})).then((function(e){return e.data}))}(e).then((function(e){var t,i=null!==(t=e.data.flatMap((function(e){return e.subCategories})).flatMap((function(e){return e.subCategories})).flatMap((function(e){return e.reports})))&&void 0!==t?t:[];return i.length>0?i[0]:null})).catch((function(e){return t(Object(m.b)(e)),null}))}},E=function(e){return function(t){return function(e){var t={method:"POST",url:"".concat(p,"/api/report/loadFilter"),data:{reportKey:{key:e}}};return v.request(t).then((function(e){return e.data})).catch((function(e){throw e}))}(e).then((function(e){return e?e.filterFields:[]})).catch((function(e){return t(Object(m.b)(e)),[]}))}},I=function(e,t,i){return function(r,n){var a=n().reports.selectedReport;return function(e,t){var i;switch(t){case"xlsx":i="".concat(p,"/api/export/excel");break;case"docx":i="".concat(p,"/api/export/word");break;default:i="".concat(p,"/api/export/").concat(t)}var r={method:"POST",url:i,data:e,responseType:"blob",headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}};return v.request(r).catch((function(e){throw e})).then((function(e){return e.data}))}(e,t).then((function(e){var r,n=window.URL.createObjectURL(new Blob([e],{type:"application/".concat(t)})),o=i||(null===a||void 0===a||null===(r=a.name)||void 0===r?void 0:r.replace(/\s/g,"")),s=document.createElement("a");return s.href=n,s.download="".concat(o,".").concat(t),document.body.appendChild(s),s.click(),s.remove(),!0})).catch((function(e){return r(Object(m.b)(e)),!1}))}},O=function(e,t){return function(i){return s.N.getNebraskaCPEReportData(void 0,f.Qc.fromJS({guid:e,params:t})).then((function(e){return void 0===e||e&&e.userReports&&e.userReports.length>0||i(Object(m.a)({message:"No result found.",variant:"error"})),e})).catch((function(e){i(Object(m.b)(e))}))}}},1025:function(e){e.exports=JSON.parse('{"Introduction":"\u7b80\u4ecb","Home":"\u5bb6","System Users":"\u7cfb\u7edf\u7528\u6237","Learning":"\u5b66\u4e60","Courses":"\u8bfe\u7a0b","Activities":"\u6d3b\u52a8\u9879\u76ee","Learning Plans":"\u5b66\u4e60\u8ba1\u5212","Compliance":"\u5408\u89c4","Reports":"\u62a5\u544a","Standard Reports":"\u6807\u51c6\u62a5\u544a","Custom Reports":"\u81ea\u5b9a\u4e49\u62a5\u544a","Regulator Reports":"\u76d1\u7ba1\u673a\u6784\u62a5\u544a","Library":"\u56fe\u4e66\u9986","Recorded Programs":"\u5f55\u5236\u8282\u76ee","Learning Packages":"\u5b66\u4e60\u5305","Materials":"\u7528\u6599","Regulator Summaries":"\u76d1\u7ba1\u673a\u6784\u6458\u8981","System Configuration":"\u7cfb\u7edf\u914d\u7f6e","Add User":"\u6dfb\u52a0\u7528\u6237","Setting":"\u8bbe\u7f6e","Settings":"\u8bbe\u7f6e","Language":"\u8bed\u8a00","Profile":"\u8f6e\u5ed3","Preferences":"\u4f18\u5148","Security":"\u5b89\u5168","Permissions":"\u6743\u9650","Templates":"\u8303\u672c","Data Management":"\u6570\u636e\u7ba1\u7406","Logs":"\u65e5\u5fd7"}')},1026:function(e){e.exports=JSON.parse('{"Introduction":"Introduction","Home":"Dashboard","System Users":"Accountants","Learning":"Learning","Courses":"Courses","Activities":"Tasks","Learning Plans":"Learning Plans","Compliance":"Compliance","Reports":"Reports","Standard Reports":"Standard Reports","Custom Reports":"Custom Reports","Regulator Reports":"Auditor Reports","Library":"Library","Recorded Programs":"Recorded Programs","Learning Packages":"Learning Packages","Materials":"Materials","Regulator Summaries":"Auditor Summaries","System Configuration":"System Configuration","Add User":"Add User","Setting":"Setting","Language":"Language","Profile":"Profile","Preferences":"Preferences","Security":"Security","Permissions":"Permissions","Templates":"Templates","Data Management":"Data Management","Logs":"Logs"}')},1027:function(e){e.exports=JSON.parse('{"Introduction":"Introduction","Home":"Home","System Users":"System Users","Learning":"Learning","Courses":"Courses","Activities":"Activities","Learning Plans":"Learning Plans","Compliance":"Compliance","Reports":"Reports","Standard Reports":"Standard Reports","Custom Reports":"Custom Reports","Regulator Reports":"Regulator Reports","Library":"Library","Recorded Programs":"Recorded Programs","Learning Packages":"Learning Packages","Materials":"Materials","Regulator Summaries":"Regulator Summaries","System Configuration":"System Configuration","Add User":"Add User","Setting":"Setting","Settings":"Settings","Default Language":"Default Language","Language":"Language","Profile":"Profile","Preferences":"Preferences","Security":"Security","Permissions":"Permissions","Templates":"Templates","Data Management":"Data Management","Logs":"Logs","General":"General","Password Policy":"Password Policy"}')},1028:function(e){e.exports=JSON.parse('{"Introduction":"Introduction","Home":"Home","System Users":"Lawyers","Learning":"Learning","Courses":"Courses","Activities":"Activities","Learning Plans":"Learning Plans","Compliance":"Compliance","Reports":"Reports","Standard Reports":"Standard Reports","Custom Reports":"Custom Reports","Regulator Reports":"Regulator Reports","Library":"Library","Recorded Programs":"Recorded Programs","Learning Packages":"Learning Packages","Materials":"Materials","Regulator Summaries":"Regulator Summaries","System Configuration":"System Configuration","Add User":"Add User","Setting":"Setting","Language":"Language","Profile":"Profile","Preferences":"Preferences","Security":"Security","Permissions":"Permissions","Templates":"Templates","Data Management":"Data Management","Logs":"Logs"}')},1029:function(e){e.exports=JSON.parse('{"Home":"Maison","System Users":"Utilisateurs syst\xe8me","Learning":"Apprentissage","Compliance":"Conformit\xe9","Reports":"Rapports","Library":"Biblioth\xe8que","System Configuration":"Configuration syst\xe8me","Add User":"Add User","Setting":"Setting","Language":"Langue"}')},1040:function(e,t,i){"use strict";(function(e){var r=i(8),n=i(0),a=i.n(n),o=i(1),s=i(1041);t.a=function(t){var i=t.open,l=t.isLoading,c=t.reportData,d=t.reportingYear,u=t.onClose,h=Object(n.useState)(!1),v=Object(r.a)(h,2),p=v[0],f=v[1],m=Object(s.a)(),y=0,g=0,b=0,S=0,E=0,I=0,O=0,C=0,x=0,j=0,w=0,P=function(){return a.a.createElement(a.a.Fragment,null,c.map((function(e){return y=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.earned})).reduce((function(e,t){return e+t}))||0,g=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.fCredits})).reduce((function(e,t){return e+t}))||0,b=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.pdCredits})).reduce((function(e,t){return e+t}))||0,S=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.sCredits})).reduce((function(e,t){return e+t}))||0,E=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.cCredits})).reduce((function(e,t){return e+t}))||0,I=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.tcCredits})).reduce((function(e,t){return e+t}))||0,O=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.iCredits})).reduce((function(e,t){return e+t}))||0,C=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.pCredits})).reduce((function(e,t){return e+t}))||0,x=e.courseList&&e.courseList.length>0&&e.courseList.map((function(e){return e.eCredits})).reduce((function(e,t){return e+t}))||0,j=e.yearOnePDCredits+e.yearTwoPDCredits>16?16:e.yearOnePDCredits+e.yearTwoPDCredits,w=g+j+S+I+E+O+C+x,a.a.createElement(o.Box,{style:{width:"80%",margin:"0 auto"},key:"reportData"},a.a.createElement(o.Table,{style:{backgroundColor:p?"#FFFFFF":"#FAFAFA"},className:m.coursesTable},a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"center",borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"21px"}},"REPORT OF CONTINUING EDUCATION ATTENDANCE"),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"21px"}},"FOR CALENDAR YEAR"," ".concat(d)))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:7,style:{textAlign:"left",borderLeftStyle:"solid",borderLeftWidth:"thin",borderRight:"none",borderTop:"none",borderBottom:"none"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"MAIL TO: Nebraska Board of Public Accountancy (NBPA)"),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0PO Box 94725, Lincoln, NE 68509")),a.a.createElement(o.TableCell,{colSpan:5,style:{textAlign:"left",borderRightStyle:"solid",borderRightWidth:"thin",borderTop:"none",borderLeft:"none",borderBottom:"none"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"DEADLINE: JANUARY 31"),a.a.createElement(o.Typography,{variant:"body1"},"\xa0"))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"center",borderStyle:"solid",borderWidth:"thin",borderTop:"none",borderBottom:"none"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"You must use this form or report your continuing education hours online by January 31st of each year."),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Failure to comply with the instructions may delay the processing and recording of your CPE hours."))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:12,style:{borderStyle:"solid",borderWidth:"thin",borderTop:"none",borderBottom:"none"}})),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:5,style:{borderLeft:"solid",borderTop:"solid",borderBottom:"solid",textAlign:"left"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Certificate #:"),a.a.createElement("br",null),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Name:"," ".concat(e.name)),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Address:"," ".concat(e.address)),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Email:"," ".concat(e.email))),a.a.createElement(o.TableCell,{colSpan:7,style:{borderRight:"solid",borderTop:"solid",borderBottom:"solid",textAlign:"left"}},a.a.createElement("br",null),"\xa0",a.a.createElement("br",null),"\xa0",a.a.createElement("br",null),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Employer:"," ".concat(e.firmName)),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Phone:"," ".concat(e.phone)),a.a.createElement("br",null),a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"BIRTH YEAR:"," ".concat(e.birthYear)))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"left",borderStyle:"solid",borderWidth:"thin",borderTop:"none",borderBottom:"none"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},e&&e.courseList&&e.courseList.length>0?String.fromCharCode(9744):String.fromCharCode(9745),"I have not taken any continuing education hours in the above calendar year."),a.a.createElement(o.Typography,{variant:"body1",weight:"light",style:{fontWeight:"lighter",fontSize:"13px"}},"\xa0\xa0\xa0\xa0(Check this box if this applies to you: make any mailing address corrections above, sign, date, and return this form to the Board by January 31.)"))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:2,style:{borderLeftStyle:"solid",borderLeftWidth:"thin",borderTop:"none",borderRight:"none",borderBottom:"none"}}),a.a.createElement(o.TableCell,{colSpan:10,style:{textAlign:"left",borderRightStyle:"solid",borderRightWidth:"thin",borderTop:"none",borderLeft:"none",borderBottom:"none"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textDecoration:"underline",fontSize:"14px"}},"*Approved by the NBPA via Program Qualification"),a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textDecoration:"underline",fontSize:"14px"}},"Form or NASBA Approved Sponsor - www.nasba.org"))),a.a.createElement(o.TableRow,{className:m.coursesTableHead},a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"1.32in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"PROGRAM SPONSOR")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"2.1in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"TITLE")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"0.88in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"DATES")),a.a.createElement(o.TableCell,{colSpan:2,align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"FORMAL HOURS")),a.a.createElement(o.TableCell,{colSpan:6,align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"HOURS")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"0.83in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"Total Earned"))),a.a.createElement(o.TableRow,{className:m.coursesTableHead},a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"1.32in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"2.1in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"0.88in"}}),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.46in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"F")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.51in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"PD")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"S")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"C")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"TC")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"I")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"P")),a.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"E")),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"0.83in"}})),e.courseList&&e.courseList.length>0?e.courseList.map((function(e){return a.a.createElement(o.TableRow,{key:e.sessionId},a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",width:"1.32in"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},e.providerName)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",width:"2.1in"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"".concat(e.title).concat(e.isNasbaApproved?"*":""))),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center",width:"0.88in"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},e.completionDate)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.fCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.pdCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.sCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.cCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.tcCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.iCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.pCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.eCredits)),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center",width:"0.83in"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.earned)))})):a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"1.32in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"2.1in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"0.88in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"0.83in"}})),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#EDEDED",width:"1.32in"}}),a.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},"TOTAL")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},g)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},b)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},S)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},E)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},I)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},O)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},C)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},x)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED",width:"0.83in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},y))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"1.32in"}}),a.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"Personal Development Allowed")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},"16")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"0.83in"}})),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"1.32in"}}),a.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"Personal Development in YR 1")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.yearOnePDCredits)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"0.83in"}})),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"1.32in"}}),a.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"Personal Development in YR 2")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.yearTwoPDCredits)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"0.83in"}})),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",backgroundColor:"#EDEDED",width:"1.32in"}}),a.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},"TOTAL REPORTABLE HOURS")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},g)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},j)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},S)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},E)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},I)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},O)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},C)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},x)),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED",width:"0.83in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},w))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"1.32in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"2.1in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"0.88in"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),a.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},"TOTAL HOURS")),a.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",width:"0.83in"}},a.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},y))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"left",borderWidth:"thin",borderStyle:"solid",borderTop:"none",borderBottom:"none",wordWrap:"break-word"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"14px"}},"I certify that the above provided information is true and correct. I understand that all credits are subject to the Board's review for",a.a.createElement("br",null),"approval or disapproval. I agree to retain all documentation relating to the above programs and to maintain records substantiating the",a.a.createElement("br",null),"continuing education credit claims for six years. I understand that providing false or misleading information on this report could be",a.a.createElement("br",null),"grounds for disciplinary action under Section 1.137 of the Public Accountancy Act."))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:4,style:{textAlign:"left",borderLeftWidth:"thin",borderLeftStyle:"solid",borderTop:"none",borderBottom:"none",borderRight:"none"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular"},"_______________________________________"),a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"14px"}},"Date")),a.a.createElement(o.TableCell,{colSpan:8,style:{textAlign:"right",borderRightWidth:"thin",borderRightStyle:"solid",borderTop:"none",borderBottom:"none",borderLeft:"none"}},a.a.createElement(o.Typography,{variant:"body1",weight:"regular"},"_______________________________________"),a.a.createElement(o.Box,{mr:6.375},a.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"14px"}},"Signature of Applicant for Permit")))),a.a.createElement(o.TableRow,null,a.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"center",borderWidth:"thin",borderStyle:"solid",borderTop:"none"}},a.a.createElement(o.Typography,{variant:"body1",weight:"bold",style:{textDecoration:"underline",fontWeight:"bold",fontSize:"14px"}},"Permit Holders will not receive notification of hours received unless more information is needed.")))),a.a.createElement("br",null))})))};return a.a.createElement(a.a.Fragment,null,l?a.a.createElement(o.Backdrop,{open:l},a.a.createElement(o.CircularProgress,{color:"secondary"})):c&&c.length>0&&a.a.createElement(o.Dialog,{open:i,onClose:u,maxWidth:"lg",fullWidth:!0},a.a.createElement(o.Grid,{container:!0,spacing:"form",style:{marginLeft:"-16px"}},a.a.createElement(o.Grid,{item:!0,xs:10}),a.a.createElement(o.Grid,{item:!0,xs:2,alignment:"center-right",stretchContent:!0},a.a.createElement(o.Box,{mt:5,mr:5},a.a.createElement(o.Button,{loading:p,fullWidth:!0,onClick:function(){return function(){var t;f(!0);var i=null===(t=document.getElementById("report"))||void 0===t?void 0:t.innerHTML,r='\n \n \x3c!--[if gte mso 9]>\n \n \n \n \n Nebraska CPE Continuing Education Attendance\n \n \n \n \n \n \n \n \n \n '.concat(i,"
\n \n "),n=document.createElement("a");n.download="Nebraska CPE - Continuing Education Attendance.xls",n.href="data:application/vnd.ms-excel;base64,"+e.from("\ufeff".concat(r)).toString("base64"),n.click(),f(!1)}()},variant:"contained",color:"primary",size:"small"},"Download"))),a.a.createElement(o.Grid,{item:!0,xs:12}),a.a.createElement(o.Grid,{item:!0,xs:12,stretchContent:!0,id:"report",style:{width:"100px",margin:"0 auto"}},a.a.createElement(o.Box,{ml:4,mr:3},a.a.createElement(P,null))))))}}).call(this,i(48).Buffer)},1041:function(e,t,i){"use strict";var r=i(17),n=Object(r.makeStyles)((function(){return Object(r.createStyles)({coursesTable:{"& td":{borderBottom:"1px solid #000000"}},coursesTableHead:{"& th":{backgroundColor:"#FAFAFA",height:"10px !important",color:"black"}},reportTextCenter:{textAlign:"center"},reportUserHeader:{border:"solid",margin:"10px"}})}));t.a=n},1042:function(e,t,i){"use strict";(function(e){var r=i(0),n=i.n(r),a=i(18),o=i(1),s=i(132),l=i(1043),c=Object(a.b)(null,(function(e){return{resetPermissionSets:function(){return e(Object(l.a)(null))}}}));t.a=c(Object(s.a)((function(t){var i,a=t.resetPermissionSets,s=window.location.hostname.split("."),l=s&&s.length>0?s[0]:"localhost",c=null===(i=e)||void 0===i||null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",l).replace("{app}","cem");return Object(r.useEffect)((function(){c&&(window.location.assign(c),a(),localStorage.clear())}),[c,a]),n.a.createElement(o.Backdrop,{open:!0},n.a.createElement(o.CircularProgress,{color:"secondary",variant:"indeterminate"}))})))}).call(this,i(106))},1043:function(e,t,i){"use strict";i(514);var r=i(207);i.d(t,"a",(function(){return r.b}));i(251),i(250)},1057:function(e,t,i){e.exports=i(1785)},1062:function(e,t,i){},120:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"e",(function(){return o})),i.d(t,"f",(function(){return s})),i.d(t,"h",(function(){return l})),i.d(t,"g",(function(){return c})),i.d(t,"b",(function(){return d}));var r="SET_IS_LOADING",n="SET_PORTAL_CAL_SESSION_REQUEST_BODY",a="SET_PORTAL_CALENDAR_SESSIONS",o="SET_SAVED_CALENDAR_FILTERS",s="SET_SAVED_CALENDAR_FILTER_ID",l="SET_SELECTED_SESSION_FILTERS",c="SET_SELECTED_SESSION",d="SET_NY_LOCATION"},128:function(e,t,i){"use strict";i.d(t,"g",(function(){return u})),i.d(t,"a",(function(){return h})),i.d(t,"f",(function(){return v})),i.d(t,"d",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"e",(function(){return m})),i.d(t,"h",(function(){return y})),i.d(t,"b",(function(){return g})),i.d(t,"i",(function(){return b})),i.d(t,"j",(function(){return S}));var r=i(184),n=i(15),a=i(7),o=i(34),s=(i(516),i(150)),l=function(e){return{type:s.e,payload:e}},c=function(e){return{type:s.c,payload:e}},d=(i(170),i(187)),u=function(e){return function(t){return n.ab.getByIdpId(e,void 0).then((function(e){return t(d.b(e)),t(d.a(e)),e})).catch((function(e){throw e}))}},h=function(e){return function(){return n.W.set(void 0,a.j.fromJS(e))}},v=function(e,t){return function(){var i=!1;return n.W.get(e,t,void 0).then((function(e){var t;return null===(t=e.userAccessTokens)||void 0===t||t.forEach((function(e){localStorage.setItem(e.key||"",e.value||""),i=!0})),localStorage.setItem("amplify-signin-with-hostedUI","false"),i}))}},p=function(e){return function(){return n.W.clear(e,void 0)}},f=function(e){return function(){return n.W.check(e,void 0).then((function(e){return e}))}},m=function(){return function(e){e((function(e,t){var i=t().systemTables.timezones;return null!==i&&i.length>0?Promise.resolve(i):(e(l(null)),n.V.getAll(void 0).then((function(t){return t&&t.timezones&&t.timezones.length>0?(e(l(t.timezones)),t.timezones):null})).catch((function(){e(l(null))})))})),e((function(e,t){var i=t().systemTables.dateFormats;return null!==i?Promise.resolve(i):(e(c(null)),n.o.getAll(void 0).then((function(t){null!==t&&e(c(t))})).catch((function(){e(c(null))})))}))}},y=function(){return function(e){return n.ab.getUserPreferences(void 0).then((function(e){return e})).catch((function(t){e(Object(o.b)(t))}))}},g=function(e){return function(t){return n.ab.changePassword(void 0,a.w.fromJS(e)).then((function(){return t(Object(o.a)({message:"Change password successful.",variant:"success"})),!0})).catch((function(e){return t(Object(o.a)({message:e.response.detail||e.message,variant:"error"})),!1}))}},b=function(e){return function(t){var i={dateFormat:"",timezone:""},s=r.a.getItem("preferences");return null!==s&&r.a.removeItem("preferences"),n.ab.updatePreferences(void 0,a.He.fromJS(e)).then((function(e){var n,a;return i.dateFormat=null!==(n=""!==e.dateFormat?e.dateFormat:s.dateFormat)&&void 0!==n?n:"",i.timezone=null!==(a=""!==e.timezone?e.timezone:s.timezone)&&void 0!==a?a:"",r.a.setItem("preferences",i),t(Object(o.a)({message:"Save successful.",variant:"success"})),e})).catch((function(e){t(Object(o.b)(e))}))}},S=function(e,t){return function(i){return n.Q.updateSecurityUserEmailVerification(void 0,new a.bf({username:e,verificationCode:t})).then((function(){return void 0!==t&&i(Object(o.a)({message:"Successfully verified your email address.",variant:"success"})),!0})).catch((function(){return!1}))}}},132:function(e,t,i){"use strict";var r=i(327);i.d(t,"a",(function(){return r.a}))},133:function(e,t,i){"use strict";i(517);var r=i(260);i.d(t,"d",(function(){return r.c}));i(171);var n=i(522);i.d(t,"a",(function(){return n.a})),i.d(t,"b",(function(){return n.b})),i.d(t,"c",(function(){return n.c}))},134:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o}));var r=i(208),n=function(e){return{type:r.a,payload:e}},a=function(e){return{type:r.b,payload:e}},o=function(e){return{type:r.c,payload:e}}},135:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"f",(function(){return n})),i.d(t,"e",(function(){return a})),i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return l}));var r="GET_LEARNINGPLANS",n="SET_SELECTED_LEARNINGPLAN",a="SET_LOADING",o="SET_LEARNINGPLANS_REQUEST_BODY",s="SET_LEARNINGPLANS_CATALOG_REQUEST_BODY",l="SET_LEARNINGPLANS_PAGE_NAVIGATION"},14:function(e,t,i){"use strict";i.d(t,"g",(function(){return r})),i.d(t,"a",(function(){return n.a})),i.d(t,"b",(function(){return n.b})),i.d(t,"c",(function(){return n.e})),i.d(t,"d",(function(){return n.f})),i.d(t,"h",(function(){return n.l})),i.d(t,"e",(function(){return n.h})),i.d(t,"f",(function(){return n.i})),i.d(t,"i",(function(){return a.a})),i.d(t,"j",(function(){return o.a})),i.d(t,"k",(function(){return s.a}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var i=1024,r=t<0?0:t,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(i));return"".concat(parseFloat((e/Math.pow(i,a)).toFixed(r))," ").concat(n[a])},n=i(40),a=i(519),o=(i(1045),i(0),i(1),i(31)),s=i(324)},143:function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"e",(function(){return a})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return s})),i.d(t,"f",(function(){return l}));var r="SET_LOGGED_USER",n="SET_AUTHENTICATED_USER",a="SET_LOGGED_USER_AVATAR",o="SET_AUTHENTICATED_USER_AVATAR",s="SET_IMPERSONATION",l="SET_PRINT_MULTIPLE_CERTIFICATE"},15:function(e,t,i){"use strict";i.d(t,"a",(function(){return m})),i.d(t,"b",(function(){return y})),i.d(t,"c",(function(){return g})),i.d(t,"e",(function(){return b})),i.d(t,"f",(function(){return S})),i.d(t,"h",(function(){return E})),i.d(t,"i",(function(){return I})),i.d(t,"k",(function(){return O})),i.d(t,"j",(function(){return C})),i.d(t,"l",(function(){return x})),i.d(t,"m",(function(){return j})),i.d(t,"n",(function(){return w})),i.d(t,"q",(function(){return P})),i.d(t,"s",(function(){return T})),i.d(t,"o",(function(){return A})),i.d(t,"p",(function(){return N})),i.d(t,"r",(function(){return k})),i.d(t,"t",(function(){return D})),i.d(t,"u",(function(){return L})),i.d(t,"v",(function(){return J})),i.d(t,"w",(function(){return F})),i.d(t,"x",(function(){return B})),i.d(t,"A",(function(){return R})),i.d(t,"y",(function(){return U})),i.d(t,"z",(function(){return G})),i.d(t,"B",(function(){return q})),i.d(t,"C",(function(){return M})),i.d(t,"D",(function(){return z})),i.d(t,"E",(function(){return W})),i.d(t,"F",(function(){return V})),i.d(t,"G",(function(){return _})),i.d(t,"H",(function(){return Y})),i.d(t,"I",(function(){return $})),i.d(t,"J",(function(){return H})),i.d(t,"K",(function(){return K})),i.d(t,"L",(function(){return Q})),i.d(t,"M",(function(){return Z})),i.d(t,"O",(function(){return X})),i.d(t,"Q",(function(){return ee})),i.d(t,"R",(function(){return te})),i.d(t,"S",(function(){return ie})),i.d(t,"T",(function(){return re})),i.d(t,"U",(function(){return ne})),i.d(t,"V",(function(){return ae})),i.d(t,"ab",(function(){return oe})),i.d(t,"g",(function(){return se})),i.d(t,"d",(function(){return le})),i.d(t,"N",(function(){return ce})),i.d(t,"P",(function(){return de})),i.d(t,"W",(function(){return ue})),i.d(t,"Y",(function(){return he})),i.d(t,"X",(function(){return ve})),i.d(t,"Z",(function(){return pe}));var r=i(45),n=i(138),a=i(353),o=i(28),s=i.n(o),l=i(155),c=i(75),d=i(229);function u(){u=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(w){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof h?t:h,a=Object.create(n.prototype),o=new C(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return j()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=E(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(w){return{type:"throw",arg:w}}}e.wrap=l;var d={};function h(){}function v(){}function p(){}var f={};s(f,n,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,n)&&(f=y);var g=p.prototype=h.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function E(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;O(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:x(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var h=s.a.create(),v=function(e,t){return e.substring(0,t.length)};h.interceptors.request.use(function(){var e=Object(r.a)(u().mark((function e(t){var i,r,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)();case 2:return i=e.sent,n.default.configure(i),e.next=6,a.a.currentAuthenticatedUser().catch((function(){var e=window.location.pathname,t=v(e,"/attendance-sheet"),i=v(e,"/report/transcript"),r=v(e,"/report/learning-plans"),n=v(e,"/report/compliance"),a=v(e,"/invite"),o=v(e,"/certificate"),s=v(e,"/evaluation"),l=v(e,"/decline-evaluation"),c=v(e,"/materials"),d=v(e,"/announcement"),u=v(e,"/session"),h=v(e,"/registration"),p=v(e,"/schedule/registration"),f=v(e,"/learning-plan"),m=e.split("/"),y="",g="session-link";return"/schedule/registration"===p&&(g="schedule-link",y=m[3]),"/learning-plan"===f&&(g="learning-plan-link",y=m[2]),"/registration"===h&&(g="session-link",y=m[2]),"/registration"===h||"/schedule/registration"===p||"/learning-plan"===f?window.location.href="/signout?guid=".concat(y,"&type=").concat(g,"&expire=true"):"/signout"!==window.location.pathname&&"/login"!==window.location.pathname&&"/signin"!==window.location.pathname&&"/activate"!==window.location.pathname&&"/attendance-sheet"!==t&&"/report/transcript"!==i&&"/report/learning-plans"!==r&&"/report/compliance"!==n&&"/invite"!==a&&"/certificate"!==o&&"/evaluation"!==s&&"/decline-evaluation"!==l&&"/materials"!==c&&"/announcement"!==d&&"/session"!==u&&(window.location.href="/signout?expire=true"),null}));case 6:return r=e.sent,o=t.headers&&"multipart/form-data"===t.headers["Content-Type"],null!=r&&(d.a.dispatch(Object(c.k)(r.signInUserSession.accessToken)),d.a.dispatch(Object(c.b)(1e3*r.signInUserSession.accessToken.getExpiration())),t.headers={"content-type":o?"multipart/form-data":"application/json",Authorization:"Bearer ".concat(r.signInUserSession.accessToken.jwtToken)},t.url&&t.url.includes("api/CourseCatalog/GetAll")&&(t.cancelToken=d.a.getState().authentication.cancelToken)),e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),h.interceptors.response.use(void 0,(function(e){var t=e;return t.originalMessage=e.message,"Operation canceled due to new request."===e.message?new Promise((function(){})):t.response}));var p=h,f=i(7),m=new f.b("https://api.cem.micronapps.com",p),y=(new f.c("https://api.cem.micronapps.com",p),new f.d("https://api.cem.micronapps.com",p)),g=(new f.l("https://api.cem.micronapps.com",p),new f.m("https://api.cem.micronapps.com",p)),b=new f.s("https://api.cem.micronapps.com",p),S=new f.t("https://api.cem.micronapps.com",p),E=new f.x("https://api.cem.micronapps.com",p),I=new f.y("https://api.cem.micronapps.com",p),O=(new f.z("https://api.cem.micronapps.com",p),new f.A("https://api.cem.micronapps.com",p),new f.E("https://api.cem.micronapps.com",p)),C=new f.D("https://api.cem.micronapps.com",p),x=new f.F("https://api.cem.micronapps.com",p),j=new f.G("https://api.cem.micronapps.com",p),w=(new f.I("https://api.cem.micronapps.com",p),new f.J("https://api.cem.micronapps.com",p)),P=new f.Eb("https://api.cem.micronapps.com",p),T=new f.Gb("https://api.cem.micronapps.com",p),A=(new f.kb("https://api.cem.micronapps.com",p),new f.lb("https://api.cem.micronapps.com",p)),N=(new f.mb("https://api.cem.micronapps.com",p),new f.Db("https://api.cem.micronapps.com",p)),k=new f.Fb("https://api.cem.micronapps.com",p),D=(new f.Jb("https://api.cem.micronapps.com",p),new f.Kb("https://api.cem.micronapps.com",p),new f.Mb("https://api.cem.micronapps.com",p),new f.Nb("https://api.cem.micronapps.com",p),new f.Ob("https://api.cem.micronapps.com",p),new f.Pb("https://api.cem.micronapps.com",p)),L=(new f.Qb("https://api.cem.micronapps.com",p),new f.Rb("https://api.cem.micronapps.com",p),new f.Sb("https://api.cem.micronapps.com",p),new f.Tb("https://api.cem.micronapps.com",p)),J=(new f.Ub("https://api.cem.micronapps.com",p),new f.Vb("https://api.cem.micronapps.com",p),new f.H("https://api.cem.micronapps.com",p)),F=(new f.Wb("https://api.cem.micronapps.com",p),new f.md("https://api.cem.micronapps.com",p)),B=new f.nd("https://api.cem.micronapps.com",p),R=(new f.od("https://api.cem.micronapps.com",p),new f.td("https://api.cem.micronapps.com",p)),U=new f.qd("https://api.cem.micronapps.com",p),G=new f.sd("https://api.cem.micronapps.com",p),q=new f.vd("https://api.cem.micronapps.com",p),M=new f.xd("https://api.cem.micronapps.com",p),z=new f.zd("https://api.cem.micronapps.com",p),W=(new f.Bd("https://api.cem.micronapps.com",p),new f.Cd("https://api.cem.micronapps.com",p)),V=new f.Ed("https://api.cem.micronapps.com",p),_=new f.Fd("https://api.cem.micronapps.com",p),Y=(new f.r("https://api.cem.micronapps.com",p),new f.Jd("https://api.cem.micronapps.com",p)),$=new f.Ld("https://api.cem.micronapps.com",p),H=new f.Nd("https://api.cem.micronapps.com",p),K=new f.Od("https://api.cem.micronapps.com",p),Q=new f.Qd("https://api.cem.micronapps.com",p),Z=new f.Rd("https://api.cem.micronapps.com",p),X=(new f.Vd("https://api.cem.micronapps.com",p),new f.Wd("https://api.cem.micronapps.com",p),new f.Xd("https://api.cem.micronapps.com",p),new f.ae("https://api.cem.micronapps.com",p)),ee=(new f.ce("https://api.cem.micronapps.com",p),new f.de("https://api.cem.micronapps.com",p)),te=new f.je("https://api.cem.micronapps.com",p),ie=new f.ne("https://api.cem.micronapps.com",p),re=new f.qe("https://api.cem.micronapps.com",p),ne=new f.se("https://api.cem.micronapps.com",p),ae=new f.te("https://api.cem.micronapps.com",p),oe=(new f.Pd("https://api.cem.micronapps.com",p),new f.Pe("https://api.cem.micronapps.com",p),new f.Qe("https://api.cem.micronapps.com",p)),se=(new f.a("https://api.cem.micronapps.com",p),new f.v("https://api.cem.micronapps.com",p)),le=new f.q("https://api.cem.micronapps.com",p),ce=(new f.k("https://api.cem.micronapps.com",p),new f.Ud("https://api.cem.micronapps.com",p)),de=new f.be("https://api.cem.micronapps.com",p),ue=new f.Ie("https://api.cem.micronapps.com",p),he=new f.Le("https://api.cem.micronapps.com",p),ve=new f.Je("https://api.cem.micronapps.com",p),pe=new f.Oe("https://api.cem.micronapps.com",p)},150:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"d",(function(){return n})),i.d(t,"e",(function(){return a})),i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return s}));var r="SET_COUNTRIES",n="SET_STATES",a="SET_TIMEZONES",o="SET_COUNTIES",s="SET_DATE_FORMATS"},1527:function(e,t){},1529:function(e,t){},1540:function(e,t){},1542:function(e,t){},155:function(e,t,i){"use strict";i.d(t,"b",(function(){return p}));var r=i(45),n=i(184),a=i(138),o=i(28),s=i.n(o),l=i(320);function c(){c=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(w){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof h?t:h,a=Object.create(n.prototype),o=new C(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return j()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=E(o,i);if(s){if(s===u)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=d(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function d(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(w){return{type:"throw",arg:w}}}e.wrap=l;var u={};function h(){}function v(){}function p(){}var f={};s(f,n,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,n)&&(f=y);var g=p.prototype=h.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=d(e[n],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function E(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=d(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;O(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:x(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},e}var d="".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.port?":".concat(window.location.port):""),u="".concat(window.location.hostname).concat(window.location.port?":".concat(window.location.port):""),h="".concat("https://api.mm.micronapps.com","/api/tenant/GetTenantSetting/setting/").concat(encodeURIComponent(u)),v=function(){var e=Object(r.a)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s.a.get(h));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e,t=null!==(e=n.a.getItem("config").clientId)&&void 0!==e?e:"",i=localStorage.getItem("portalAppClientId");return null!==i&&void 0!==i?i:t},f=function(){var e=Object(r.a)(c().mark((function e(){var t,i,r,o,s,u=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=u.length>0&&void 0!==u[0]?u[0]:{myCustomKey:"myCustomValue"},r={region:"",poolId:"",clientId:"",authUrl:"",externalProviders:""},!(o=n.a.getItem("config"))){e.next=7;break}r=o,e.next=9;break;case 7:return e.next=9,v().then((function(e){r.region=e.data.region,r.poolId=e.data.poolId,r.clientId=e.data.clientId,r.authUrl=e.data.url,n.a.setItem("config",r),localStorage.setItem("externalProviders",e.data.externalProviders)})).catch((function(e){throw e}));case 9:return""!==(s=null!==(t=l.a.getState().authentication.clientId)&&void 0!==t?t:"")&&(r.clientId=s),e.abrupt("return",a.default.configure({Auth:{region:r.region,userPoolId:r.poolId,userPoolWebClientId:r.clientId,mandatorySignIn:!1,authenticationFlowType:"USER_PASSWORD_AUTH",clientMetadata:i,oauth:{domain:r.authUrl,scope:["email","openid","aws.cognito.signin.user.admin"],redirectSignIn:"".concat(d,"/signin"),redirectSignOut:"".concat(d,"/signedout"),responseType:"token"}}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.a=f},1569:function(e,t){},1571:function(e,t){},1572:function(e,t){},1577:function(e,t){},1579:function(e,t){},1598:function(e,t){},16:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return o}));var r=i(226),n=function(){return{type:r.b,payload:null}},a=function(e){return{type:r.a,payload:e}},o=function(e){var t=[],i={variant:"error",message:"",autoHideDuration:1e4};return void 0===e?i.message="Error 500":400===e.status?e.errors?(Object.keys(e.errors).forEach((function(i){t.push(e.errors[i])})),i.message=t.join(", ")):i.message=e.title:500===e.status?i.message=e.detail:i.message=JSON.stringify(e),{type:r.a,payload:i}}},1610:function(e,t){},1613:function(e,t){},164:function(e,t,i){"use strict";var r=i(0),n=i.n(r),a=i(18),o=i(1),s=i(200),l=i(16),c=i(26),d=i.n(c),u=function(e){var t=e.open,i=e.message,r=e.title,a=e.onClose,s=e.OnConfirm,l=e.onCancel,u=e.warning;return n.a.createElement(d.a,{"aria-labelledby":"confirmation-dialog-title",open:t,onClose:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return a()}))},n.a.createElement(c.DialogHeader,{id:"confirmation-dialog-title",colorMode:"light",titleBar:{title:r}}),n.a.createElement(c.DialogBody,{maxWidth:!1},i,u&&n.a.createElement(o.Alert,{type:"warning",variant:"outlined"},u)),n.a.createElement(c.DialogFooter,null,n.a.createElement(o.Button,{onClick:function(){return l()},color:"default",variant:"outlined",fullWidth:!0},"No"),n.a.createElement(o.Button,{onClick:function(){return s(),void a()},color:"primary",variant:"contained",autoFocus:!0,fullWidth:!0},"Yes")))};t.a=function(e){return Object(a.b)((function(e){return{message:e.notification.message,confirm:e.confirm.message}}),(function(e){return{removeNotification:function(){return e(l.c())},closeConfirm:function(){return e(s.a())}}}))((function(t){var i=t.message,r=t.removeNotification,a=t.confirm,s=t.closeConfirm,l=t.children;return n.a.createElement(n.a.Fragment,null,i&&i.message&&n.a.createElement(o.Snackbar,{message:i.message,open:null!==i,onClose:r,type:i.variant,action:i.action}),a&&n.a.createElement(u,{open:null!=a,title:a.title,message:a.message,OnConfirm:a.OnConfirm,onClose:function(){a.onClose&&a.onClose(),s()},onCancel:function(){a.onCancel&&a.onCancel(),s()}}),n.a.createElement(e,t,l))}))}},170:function(e,t,i){"use strict";i(510);var r=i(101);i.d(t,"f",(function(){return r.c}));i(135);var n=i(182);i.d(t,"a",(function(){return n.a})),i.d(t,"b",(function(){return n.d})),i.d(t,"c",(function(){return n.e})),i.d(t,"d",(function(){return n.h})),i.d(t,"e",(function(){return n.i}))},1708:function(e,t){},171:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return o}));var r="SET_FIRM",n="SET_FIRM_NAME",a="SET_PASSWORD_POLICY",o="SET_LEARNING_SETTINGS"},172:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"b",(function(){return o}));var r="SET_BRANDING",n="SET_ROLE_COURSE_FILTER",a="SET_ROLE_CALENDAR_FILTER",o="SET_IS_INITIAL_LOAD"},173:function(e,t,i){"use strict";i.d(t,"n",(function(){return n})),i.d(t,"o",(function(){return a})),i.d(t,"m",(function(){return o})),i.d(t,"e",(function(){return s})),i.d(t,"i",(function(){return l})),i.d(t,"l",(function(){return c})),i.d(t,"g",(function(){return d})),i.d(t,"j",(function(){return u})),i.d(t,"k",(function(){return h})),i.d(t,"f",(function(){return v})),i.d(t,"d",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"h",(function(){return m})),i.d(t,"b",(function(){return y})),i.d(t,"a",(function(){return g}));var r=i(61),n=function(e){return{type:r.o,payload:e}},a=function(){return{type:r.p,payload:null}},o=function(e){return{type:r.n,payload:e}},s=function(e){return{type:r.b,payload:e}},l=function(e){return{type:r.k,payload:e}},c=function(e){return{type:r.m,payload:e}},d=function(e){return{type:r.f,payload:e}},u=function(e){return{type:r.j,payload:e}},h=function(e){return{type:r.l,payload:e}},v=function(e){return{type:r.e,payload:e}},p=function(e){return{type:r.i,payload:e}},f=function(e){return{type:r.g,payload:e}},m=function(e){return{type:r.h,payload:e}},y=function(e){return{type:r.d,payload:e}},g=function(e){return{type:r.c,payload:e}}},175:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"e",(function(){return a})),i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return s}));var r="SET_COURSE_DETAIL_LOADING",n="SET_COURSE_DETAIL",a="SET_COURSE_SESSIONS_LOADING",o="SET_COURSE_SESSIONS",s="SET_COURSE_DETAIL_FAVORITE"},176:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"d",(function(){return o})),i.d(t,"e",(function(){return s}));var r="SET_EVALUATIONS",n="SET_EVALUATION_QUESTION_TYPES",a="SET_EVALUATION_REQEUST_BODY",o="SET_FORM_NUMBER_EXCLUDES",s="SET_FORM_NUMBER_STYLES"},1785:function(e,t,i){"use strict";i.r(t);var r=i(0),n=i.n(r),a=i(49),o=i.n(a),s=(i(1062),i(18)),l=i(45),c=i(8),d=i(53),u=i(290),h=i(1),v=i(672),p=i(7),f=i(1025),m=i(1026),y=i(1027),g=i(1028),b=i(1029),S=i(250),E=function(e){var t=Object(r.useState)(!1),i=Object(c.a)(t,2),n=i[0],a=i[1],o=Object(s.c)((function(e){return e.permissionSets})).userPermissionSets;return Object(r.useEffect)((function(){(o&&o.includes(e)||e===p.Kd.NotSet)&&a(!0)}),[e,a,o]),n},I=i(155),O=i(75),C=i(128),x=i(22),j=i.n(x),w=i(72),P=i.n(w),T=i(79),A=i.n(T),N=i(14),k=i(1039),D=i.n(k),L=function(e){return D.a.sanitize(null!==e&&void 0!==e?e:"")},J=i(12),F=i(348),B=i(41),R=Object(B.makeStyles)((function(){return Object(B.createStyles)({table:{borderSpacing:"0",tableLayout:"fixed"},tr:{minHeight:37,whiteSpace:"pre-wrap",overflowWrap:"break-word",pageBreakInside:"avoid"},th:{margin:"0",padding:"0.5rem",border:"0.25px solid #000000",position:"relative"},td:{margin:"0",padding:"0.5rem",border:"0.25px solid #000000",position:"relative",minHeight:37,whiteSpace:"pre-wrap",overflowWrap:"break-word",pageBreakInside:"avoid"},resizer:{display:"inline-block",height:"100",position:"absolute",right:"0",top:"50%",transform:"translate(0, -50%)",touchAction:"none","@media print":{display:"none !important"}}})}));function U(e){var t=e.columns,i=e.data,a=e.width,o=e.isResizing,s=R(),l=a/t.map((function(e){return e.width})).reduce((function(e,t){return e+t}),0),c=Object(r.useMemo)((function(){var e=t.reduce((function(e,t){return e+t.maxWidth||0}),0);return t.map((function(t){return o?t.maxWidth?t:Object(J.a)(Object(J.a)({},t),{},{maxWidth:a-e}):Object(J.a)(Object(J.a)({},t),{},{minWidth:l*t.width})}))}),[t,a,o,l]),d=Object(F.useTable)({columns:c||[],data:i,width:a,isResizing:o},F.useBlockLayout,F.useResizeColumns),u=d.getTableProps,h=d.getTableBodyProps,v=d.headerGroups,p=d.rows,f=d.prepareRow;return n.a.createElement("table",Object.assign({className:s.table},u()),n.a.createElement("thead",null,v.map((function(e){return n.a.createElement("tr",e.getHeaderGroupProps(),e.headers.map((function(e){return n.a.createElement("th",Object.assign({className:s.th},e.getHeaderProps({style:{minWidth:e.minWidth,width:e.width}})),n.a.createElement("span",null,e.render("Header")),o&&n.a.createElement("div",Object.assign({},e.getResizerProps(),{className:s.resizer}),"\u22ee"))})))}))),n.a.createElement("tbody",h(),p.map((function(e){return f(e),n.a.createElement("tr",Object.assign({},e.getRowProps(),{className:s.tr}),e.cells.map((function(e){return n.a.createElement("td",Object.assign({className:s.td},e.getCellProps({style:{minWidth:e.column.minWidth,width:e.column.width}})),e.render("Cell"))})))}))))}var G,q=i(15),M=i(16),z=function(e){return function(t){return q.d.getById(e,void 0).then((function(e){return e})).catch((function(e){var i;throw t(Object(M.a)({message:null!==(i=e.detail)&&void 0!==i?i:"Retrieval error",variant:"error"})),e}))}},W=function(e){return function(t){return q.d.getSessionFormDetails(e,void 0).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}},V=i(17),_=Object(V.makeStyles)((function(e){var t=e.spacing;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},pageName:{"@media print":{size:"landscape",zoom:"80% !important"}},boxName:{"@media print":{breakAfter:"always !important",pageBreakAfter:"always !important"}},elementSpacing:{marginTop:t(1)},td:{border:"1px solid #000000",pageBreakInside:"avoid",whiteSpace:"pre-wrap",overflowWrap:"break-word",padding:"8px"},data:{paddingLeft:"6px"},card:{pageBreakInside:"avoid"},tableStyle:{tableLayout:"fixed"},tableHeaderRow:{color:"#979797",pageBreakInside:"avoid"},tableRow:{border:"1px solid #000000",pageBreakInside:"avoid"},boxElement:{marginTop:t(1),"@media print":{width:1100}}})})),Y=Object(s.b)((function(){return{}}),(function(e){return{getAttendanceForm:function(t){return e(z(t))},getSessionDetails:function(t){return e(W(t))}}})),$=Object(d.o)(Y((function(e){var t,i,a,o,l,d,u,v,f,m,y,g,b,S,E,I,O=e.getAttendanceForm,C=e.getSessionDetails,j=e.match,w=_(),T=j.params,k=T.sessionId,D=T.attendanceFormId,J=Object(s.c)((function(e){return e.generalSettings.firmName})),F=Object(s.c)((function(e){var t;return null===(t=e.generalSettings.firm)||void 0===t?void 0:t.logoUrl})),B=Object(r.useState)(),R=Object(c.a)(B,2),G=R[0],q=R[1],M=Object(r.useState)(),z=Object(c.a)(M,2),W=z[0],V=z[1],Y=Object(r.useState)([]),$=Object(c.a)(Y,2),H=$[0],K=$[1],Q=Object(r.useState)([]),Z=Object(c.a)(Q,2),X=Z[0],ee=Z[1];Object(r.useEffect)((function(){C(+k).then((function(e){var t;q(e),K(null!==(t=null===e||void 0===e?void 0:e.sessionParticipants)&&void 0!==t?t:[])}))}),[C,k]),Object(r.useEffect)((function(){V(void 0),0!==+D?O(+D).then((function(e){if(void 0!==e)if(V(e),null===e||void 0===e?void 0:e.includeInstructorSignatureOnFirstRow){var t,i,r,n,a=null!==(t=null===G||void 0===G||null===(i=G.sessionInstructors)||void 0===i?void 0:i.map((function(e){var t;return null!==(t=e.userId)&&void 0!==t?t:0})))&&void 0!==t?t:[],o=null===G||void 0===G||null===(r=G.sessionParticipants)||void 0===r?void 0:r.filter((function(e){var t;return!a.includes(null!==(t=e.userId)&&void 0!==t?t:0)}));K((null!==(n=null===G||void 0===G?void 0:G.sessionInstructors)&&void 0!==n?n:[]).concat(null!==o&&void 0!==o?o:[]))}else{var s;K(null!==(s=null===G||void 0===G?void 0:G.sessionParticipants)&&void 0!==s?s:[])}return e.attendanceFormId})):V(void 0)}),[D,O,G]),Object(r.useEffect)((function(){if(W&&G){var e=Array();if(void 0!==(null===W||void 0===W?void 0:W.blankSignatureLinesNumber)){var t,i=null!==(t=null===W||void 0===W?void 0:W.blankSignatureLinesNumber)&&void 0!==t?t:0;Array.from({length:i},(function(e,t){return t+1})).forEach((function(t){var i=new p.he;i.sessionParticipantId=t,e.push(i)})),ee(e)}}else ee(void 0)}),[W,G]);var te=null!==(t=(null===W||void 0===W?void 0:W.information)&&(null===W||void 0===W?void 0:W.information.filter((function(e){return 1===e.column&&!0===e.includeForDisplay}))))&&void 0!==t?t:[],ie=null!==(i=(null===W||void 0===W?void 0:W.information)&&(null===W||void 0===W?void 0:W.information.filter((function(e){return 2===e.column&&!0===e.includeForDisplay}))))&&void 0!==i?i:[],re=null!==(a=(null===W||void 0===W?void 0:W.columns)&&W.columns.filter((function(e){return!0===e.includeForDisplay})))&&void 0!==a?a:[],ne=(null===G||void 0===G||null===(o=G.title)||void 0===o?void 0:o.trim())!==(null===G||void 0===G||null===(l=G.courseTitle)||void 0===l?void 0:l.trim())?"".concat(null===G||void 0===G?void 0:G.courseTitle," ").concat(Object(x.isEmpty)(null===G||void 0===G||null===(d=G.title)||void 0===d?void 0:d.trim())?"":"(".concat(null===G||void 0===G?void 0:G.title,")")):null===G||void 0===G?void 0:G.courseTitle,ae=null!==(u=null===G||void 0===G?void 0:G.courseFormat)&&void 0!==u?u:"",oe=(null===G||void 0===G?void 0:G.startDate)?Object(N.c)(null===G||void 0===G?void 0:G.startDate,"MMM DD, YYYY"):"",se=(null===G||void 0===G?void 0:G.endDate)?Object(N.c)(null===G||void 0===G?void 0:G.endDate,"MMM DD, YYYY"):"",le=(null===G||void 0===G?void 0:G.startTime)?null===G||void 0===G?void 0:G.startTime:"",ce=(null===G||void 0===G?void 0:G.endTime)&&(null===G||void 0===G?void 0:G.endTime)!==(null===G||void 0===G?void 0:G.startTime)?" - ".concat(null===G||void 0===G?void 0:G.endTime):"",de=null!==(v=null===G||void 0===G?void 0:G.timeZone)&&void 0!==v?v:"",ue=null!==(f=null===G||void 0===G?void 0:G.location)&&void 0!==f?f:"-",he=null!==(m=null===G||void 0===G?void 0:G.room)&&void 0!==m?m:"-",ve=se&&se!==oe?"".concat(oe," - ").concat(se):oe,pe=""===le&&""===ce?"-":ce?"".concat(le," ").concat(ce," ").concat(null===de?"":de):"".concat(le," ").concat(null===de?"":de),fe=null===(y=null!==(g=null===G||void 0===G?void 0:G.sessionInstructors)&&void 0!==g?g:[])||void 0===y?void 0:y.map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),me=null!==(b=null===G||void 0===G||null===(S=G.sessionLicenses)||void 0===S?void 0:S.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==b?b:[],ye=1100/re.length,ge=re.map((function(e){return function(e){var t;return{Header:"".concat(null!==(t=e.label)&&void 0!==t?t:""),accessor:"".concat(e.type),width:ye,Cell:function(t){var i=t.row.original,r="";if(void 0!==i.userId)switch(e.type){case p.n.Name:r="".concat(null===i||void 0===i?void 0:i.lastName,", ").concat(null===i||void 0===i?void 0:i.firstName," ").concat((null===W||void 0===W?void 0:W.includeMiddleName)?void 0===(null===i||void 0===i?void 0:i.middleName)||null===(null===i||void 0===i?void 0:i.middleName)?"":null===i||void 0===i?void 0:i.middleName:"");break;case p.n.Email:r="".concat(null===i||void 0===i?void 0:i.email);break;default:r=""}return n.a.createElement("div",{key:"".concat(e.type,"_data_row_cell"),style:{overflowWrap:"break-word"}},""!==r&&e.type===p.n.Name&&(null===i||void 0===i?void 0:i.isInstructor)?n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r," ",n.a.createElement("i",null,"(Instructor)")):n.a.createElement(n.a.Fragment,null,e.type===p.n.LicenseDetails&&(null===i||void 0===i?void 0:i.userLicenseDetails)&&(null===i||void 0===i?void 0:i.userLicenseDetails.length)>0?n.a.createElement(n.a.Fragment,null,(null===i||void 0===i?void 0:i.userLicenseDetails)&&(null===i||void 0===i?void 0:i.userLicenseDetails.map((function(t){return n.a.createElement(h.Column,{key:"".concat(e.type,"_data_row_cell_").concat(t.licenseId)},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(t.licenseName,": ").concat(""!==t.barNumber?L(t.barNumber):"-")}})))})))):n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r)))}}}(e)})),be=H.concat(null!==X&&void 0!==X?X:[]);return n.a.createElement(h.Box,{margin:"20px auto",maxWidth:"1100px"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:w.printButton},n.a.createElement(h.Box,{width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print")))),n.a.createElement(n.a.Fragment,null,void 0===W||void 0===G||void 0===X?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(h.Box,{className:w.pageName},n.a.createElement(h.Box,{className:w.elementSpacing},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.Grid,{container:!0,spacing:void 0},(null===W||void 0===W?void 0:W.headerIncludeFirmLogo)&&!Object(x.isEmpty)(F)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement("img",{src:F,alt:"Logo",width:"260px",height:"60px"})),n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"h5",color:"default",align:"center"},(null===W||void 0===W?void 0:W.isSystem)?J:null===W||void 0===W?void 0:W.headerFirmName)),n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"h6",color:"default",align:"center"},null===W||void 0===W?void 0:W.headerTitle)),!Object(x.isEmpty)(null===W||void 0===W?void 0:W.headerText)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.TextEditorView,{model:L(null!==(E=null===W||void 0===W?void 0:W.headerText)&&void 0!==E?E:"")}))))))),n.a.createElement(h.Box,{className:w.elementSpacing},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0,disableGutters:!0},n.a.createElement(h.Box,{ml:2,mr:2},n.a.createElement(h.Grid,{container:!0,spacing:void 0,alignContent:"center"},n.a.createElement(h.Hidden,{mdDown:0===te.length||0===ie.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),n.a.createElement(h.Grid,{item:!0,xs:0===ie.length?12:6,lg:0===ie.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:void 0},te.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Title:a=null!==ne&&void 0!==ne?ne:"";break;case p.o.Format:a=ae;break;case p.o.Instructor:a=fe.length>0?fe.join(", "):"-";break;case p.o.Credits:a="[No Credits]";break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6,className:w.data},n.a.createElement(n.a.Fragment,null,r===p.o.Credits&&(null===me||void 0===me?void 0:me.length)>0?n.a.createElement(n.a.Fragment,null,me&&me.map((function(e){var t,i,r="",a="",o=e&&e.licenseStatus===p.Dd.Pending,s=e&&e.licenseStatus===p.Dd.Denied;return n.a.createElement(h.Box,{key:"credits_".concat(e.licenseId),maxWidth:"350px"},null===(t=e.sessionLicenseCredits)||void 0===t?void 0:t.map((function(e){if(void 0!==e.creditValue&&e.creditValue>0){var t="".concat(e.creditName," ").concat(e.creditValue);r=r.concat(t,", ")}})),null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.map((function(e){"Reciprocal"===e.propertyLabel&&(a=a.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(a=a.concat("(".concat(e.propertyLabel,") ")))})),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==r?"".concat(r.slice(0,-2)," ").concat(""!==a?" - ".concat(a):""):"[No Credits]")}}),o&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Pending)")),s&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Denied)")))))}))):n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a)))))})))),n.a.createElement(h.Grid,{item:!0,xs:0===te.length?12:6,lg:0===te.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:void 0},ie.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Date:a=ve;break;case p.o.Location:a=ue;break;case p.o.Time:a=pe;break;case p.o.Room:a=he;break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6,className:w.data},n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a))))})))),n.a.createElement(h.Hidden,{mdDown:0===te.length||0===ie.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1})))))))),n.a.createElement(h.Box,{className:w.elementSpacing},n.a.createElement(U,{data:be,columns:ge,width:1100,isResizing:!0})),!Object(x.isEmpty)(null===W||void 0===W?void 0:W.footerText)&&n.a.createElement(h.Box,{className:w.elementSpacing,textAlign:"center"},n.a.createElement(h.TextEditorView,{model:L(null!==(I=null===W||void 0===W?void 0:W.footerText)&&void 0!==I?I:"")})))),void 0!==W&&void 0!==G&&void 0!==X&&n.a.createElement(h.Grid,{container:!0,spacing:"card",className:w.card},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center"},n.a.createElement(h.Box,{mt:3,mb:1},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("b",null,"Micron Systems, Inc."))),n.a.createElement(h.Row,null,n.a.createElement(h.Box,{mr:1,mt:1},n.a.createElement(h.Typography,{variant:"caption"},"Generated by")),n.a.createElement("img",{alt:"",width:"125",height:"30",src:"../../../../images/cemanager-logo.png"})),n.a.createElement(h.Box,{mb:3,mt:1},n.a.createElement(h.Typography,{variant:"caption"},"on ",Object(N.c)(new Date,"MMMM DD, YYYY")))))))}))),H=Object(V.makeStyles)((function(e){var t=e.spacing;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},boxProp:{marginTop:t(1),marginBottom:t(1),"@media print":{breakAfter:"always !important",pageBreakAfter:"always !important"}}})})),K=i(33),Q=i.n(K),Z=function(e){var t=e.getFullYear();if(t<=1975)return 1;if(t>=1976&&t<=1983)return 2;if(t>=1984&&t<=1990)return 3;if(t>=1991&&t<=2015){if(t%3===2)return 1;if(t%3===0)return 2;if(t%3===1)return 3}if(t>2015){if(t%3===2)return 3;if(t%3===0)return 1;if(t%3===1)return 2}return 0},X=9999,ee=100,te=101,ie=149,re=227,ne=228,ae=239,oe=240,se=262,le=333,ce=322,de=381,ue=397,he=405,ve=411,pe=446,fe=469,me=481,ye=490,ge=660,be=661,Se=666,Ee=676,Ie=679,Oe=1,Ce=2,xe=3,je=4,we=5,Pe=6,Te=7,Ae=8,Ne=9,ke=1,De=1,Le=2,Je=3,Fe=4,Be=10,Re=11,Ue=12,Ge="Live Faculty In Room",qe="Live Video/Audio Format",Me="Recorded Video/Audio Format",ze=1,We=2,Ve=4,_e=5,Ye=4,$e=5,He=6,Ke=7,Qe=8,Ze={PCAMID:5,PCAMReApprovalDate:6,FinancialHardship:9},Xe={RequestInNYYearEndReport:6,SelectNYLocation:7,AverageFee:8,FinancialHardship:9},et=17,tt=1,it=2,rt=3,nt=4,at=1,ot=2,st=3,lt=4,ct=5,dt=6,ut=7,ht=8,vt=1,pt=1,ft=2,mt=3,yt=18,gt=19,bt=20,St=21,Et=3,It=4,Ot=5,Ct=6,xt=7,jt=8,wt=9,Pt=10,Tt=11,At=22,Nt=23,kt=24,Dt=25,Lt=26,Jt=27,Ft=28,Bt=29,Rt=30,Ut=Object(B.makeStyles)((function(e){return Object(B.createStyles)({printButton:{"@media print":{display:"none !important"}},checkBox:{border:"#000000 1px solid",height:"16px",width:"16px",verticalAlign:"middle"},infoDescription:{borderBottom:"#000000 1px solid",fontSize:"10.5pt",fontFamily:"Arial",fontStyle:"italic",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},infoLabelDescription:{borderBottom:"#000000 4px solid",minWidth:"100px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},infoNumberDescription:{borderBottom:"#000000 1px solid",fontSize:"10.5pt",fontFamily:"Arial",fontStyle:"italic",maxWidth:"200px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},creditDescription:{borderBottom:"#000000 1px solid",fontSize:"10.5pt",fontFamily:"Arial",fontStyle:"italic",flex:1,marginLeft:"3px",minWidth:"50px",display:"inline-block",textAlign:"center"},infoContainer:{display:"flex"},infoLabel:{flex:0,fontFamily:"Arial",fontSize:"12.5pt",marginRight:"8px"},textBold:{fontFamily:"Arial",fontSize:"12.5pt",fontWeight:600},textUnderline:{textDecoration:"underline",fontFamily:"Arial",fontWeight:600,fontSize:"12.5pt"},tableInfoBox:{border:"#000000 1px solid",height:"40px",width:"100%",fontFamily:"Arial",fontSize:"12.5pt",backgroundColor:"#F0F8FF",padding:"6px"},table:{height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"820px !important",fontFamily:"Arial, Garamond, Georgia",fontSize:"12.5pt",whiteSpace:"nowrap",border:0},textheader:{fontWeight:"bold",fontFamily:"Arial",fontSize:"14pt",margin:"0 auto"},numberedLabel:{fontSize:"12.5pt",fontFamily:"Arial",fontWeight:600},fontSize12:{fontSize:"12.75pt",padding:"16px 0px",fontFamily:"Arial",letterSpacing:"0.01em"},footer:{fontSize:"12.75pt",fontFamily:"Arial",color:e.palette.grey[500]},image:{imageRendering:"auto",objectFit:"scale-down"},checkboxMarginLeft:{marginLeft:"8px",fontSize:"12.75pt",fontFamily:"Arial"},divCheckbox:{display:"flex",alignItems:"center",flex:1},divStyle:{display:"flex",justifyContent:"stretch",width:"100%"},tdAlignEnd:{textAlign:"end"},divDetails:{"@media print":{size:"letter !important",zoom:"75% !important"}},tblCACertificate2014:{width:"100%",pageBreakAfter:"auto"},systemIcon:{verticalAlign:"0"}})})),Gt=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b=e.certificate,S=e.isInstructor,E=e.licenseId,I=e.sessionDetails,O=e.userId,C=Ut(),j=(null===I||void 0===I?void 0:I.title)!==(null===I||void 0===I?void 0:I.courseTitle)?"".concat(null===I||void 0===I?void 0:I.courseTitle," (").concat(null===I||void 0===I?void 0:I.title,")"):null===I||void 0===I?void 0:I.courseTitle,w=(null===I||void 0===I?void 0:I.startDate)?Q()(null===I||void 0===I?void 0:I.startDate).format("MMMM DD, YYYY"):"",P=(null===I||void 0===I?void 0:I.endDate)?Q()(null===I||void 0===I?void 0:I.endDate).format("MMMM DD, YYYY"):"",T=P&&P!==w?"".concat(w," - ").concat(P):w,A=(null===I||void 0===I?void 0:I.startTime)?null===I||void 0===I?void 0:I.startTime:"",k=(null===I||void 0===I?void 0:I.endTime)&&(null===I||void 0===I?void 0:I.endTime)!==(null===I||void 0===I?void 0:I.startTime)?" - ".concat(null===I||void 0===I?void 0:I.endTime):"",D=null!==(t=null===I||void 0===I?void 0:I.timeZone)&&void 0!==t?t:"",L=""===A&&""===k?"":k?"".concat(A," ").concat(k," ").concat(null===D?"":D):"".concat(A," ").concat(null===D?"":D),J=null!==(i=null===I||void 0===I||null===(r=I.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",F=null!==(a=null===I||void 0===I||null===(o=I.location)||void 0===o?void 0:o.city)&&void 0!==a?a:"",B=null!==(s=null===I||void 0===I||null===(l=I.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",R=null!==(c=null===I||void 0===I?void 0:I.provider)&&void 0!==c?c:"",U="";U=Object(x.isEmpty)(F)&&Object(x.isEmpty)(B)?"".concat(J):"".concat(J," ").concat((null===b||void 0===b?void 0:b.includeCity)||(null===b||void 0===b?void 0:b.includeState)?"(".concat((null===b||void 0===b?void 0:b.includeCity)?F:"").concat((null===b||void 0===b?void 0:b.includeState)&&!Object(x.isEmpty)(B)?(null===b||void 0===b?void 0:b.includeCity)&&!Object(x.isEmpty)(F)?", ".concat(B):B:"",")"):"");var G=(null===I||void 0===I?void 0:I.sessionInstructors)&&(null===I||void 0===I?void 0:I.sessionInstructors.find((function(e){return e.userId===O}))),q=(null===I||void 0===I?void 0:I.sessionParticipants)&&(null===I||void 0===I?void 0:I.sessionParticipants.find((function(e){return e.userId===O}))),M=S?G:q,z="".concat(M.firstName," ").concat((null===b||void 0===b?void 0:b.includeMiddleName)?"".concat(M.middleName):""," ").concat(M.lastName),W="".concat((null===b||void 0===b?void 0:b.includeBarNumber)&&null!==(d=null===M||void 0===M?void 0:M.licenseBarNumber)&&void 0!==d?d:""),V=null===M||void 0===M?void 0:M.caLawParticipatory,_=null===M||void 0===M||null===(u=M.userLicenseCreditValues)||void 0===u?void 0:u.filter((function(e){return e.licenseId===E})),Y=function(e){var t,i=null===I||void 0===I||null===(t=I.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===te})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(M.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},$=Y(Object(x.sum)(null===_||void 0===_?void 0:_.map((function(e){return e.value})))),H=Y(null===_||void 0===_||null===(v=_.find((function(e){return e.creditId===Oe})))||void 0===v?void 0:v.value),K=Y(null===_||void 0===_||null===(f=_.find((function(e){return e.creditId===xe})))||void 0===f?void 0:f.value),Z=Y(null===_||void 0===_||null===(m=_.find((function(e){return e.creditId===Ce})))||void 0===m?void 0:m.value),X=Y(null===_||void 0===_||null===(y=_.find((function(e){return e.creditId===we})))||void 0===y?void 0:y.value),ee=M.completionDate?Q()(M.completionDate).format("MMMM DD, YYYY"):"",ie=(null===I||void 0===I?void 0:I.isIndividualSessionDateAllowed)?ee:T;return n.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",className:C.divDetails},n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Table,{id:"tblCACertificate2014",className:C.tblCACertificate2014},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:C.table,style:{padding:0}},n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},n.a.createElement(h.Typography,{className:C.textheader},"CERTIFICATE OF"," ".concat(S?"INSTRUCTION":"ATTENDANCE"," FOR CALIFORNIA MCLE"))),n.a.createElement(h.Box,{className:C.tableInfoBox},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{className:C.textBold,style:{display:"flex"}},"Sections 1 and 2\xa0",n.a.createElement(h.Typography,{className:C.textUnderline},"must"),"\xa0be completed by Provider"))),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},n.a.createElement(h.Box,{className:C.infoLabel},n.a.createElement(h.Typography,{className:C.numberedLabel},"1. PROVIDER INFORMATION (please print)")),n.a.createElement(h.Typography,{className:C.infoLabelDescription})),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Provider Name:"),n.a.createElement(h.Typography,{className:C.infoDescription},(null===b||void 0===b?void 0:b.locationValue)?"".concat(R," (").concat(null===b||void 0===b?void 0:b.locationValue,")"):R)),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Provider Number:"),n.a.createElement(h.Typography,{className:C.infoDescription},null!==(g=null===b||void 0===b?void 0:b.licenseProviderNumber)&&void 0!==g?g:"")),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Title of Activity:"),n.a.createElement(h.Typography,{className:C.infoDescription},j)),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Box,{className:C.divStyle},n.a.createElement(h.Typography,{className:C.infoLabel},"Date(s) of Activity:"),n.a.createElement(h.Typography,{className:C.infoDescription},ie)),n.a.createElement(h.Box,{className:C.divStyle},n.a.createElement(h.Typography,{className:C.infoLabel},"Time of Activity:"),n.a.createElement(h.Typography,{className:C.infoDescription},L))),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Location of Activity (City/State):"),n.a.createElement(h.Typography,{className:C.infoDescription},(null===b||void 0===b?void 0:b.includeLocation)&&!Object(x.isEmpty)(U)?U:"Not Applicable")),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},n.a.createElement(h.Box,{className:C.infoLabel},n.a.createElement(h.Typography,{className:C.numberedLabel},"2. ACTIVITY INFORMATION")),n.a.createElement(h.Typography,{className:C.infoLabelDescription})),n.a.createElement(h.Box,{className:C.infoLabel,style:{padding:"4px 0px 4px 16px"}},"This Activity qualifies for:",n.a.createElement(h.Box,{className:C.divStyle,style:{padding:"4px 16px"}},n.a.createElement(h.Box,{className:C.divCheckbox},n.a.createElement(h.Typography,{className:C.checkBox},!0===V&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),n.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Participatory Credit")),n.a.createElement(h.Box,{className:C.divCheckbox},n.a.createElement(h.Typography,{className:C.checkBox},!1===V&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),n.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Self-study Credit")))),n.a.createElement(h.Box,{style:{padding:"4px 0px 4px 16px"}},"Total California MCLE Credit Hours for the above activity:",n.a.createElement(h.Typography,{className:C.creditDescription},"0"===$?"":$),", including",n.a.createElement("br",null),"the following sub-field credits:",n.a.createElement(h.Box,{style:{padding:"4px 16px"}},n.a.createElement(h.Box,{className:C.divCheckbox},n.a.createElement(h.Typography,{className:C.checkBox},"0"!==H&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),n.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Legal Ethics:",n.a.createElement(h.Typography,{className:C.creditDescription},"0"===H?"":H))),n.a.createElement(h.Box,{className:C.divCheckbox},n.a.createElement(h.Typography,{className:C.checkBox},"0"!==K&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),n.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Recognition and Elimination of Bias:",n.a.createElement(h.Typography,{className:C.creditDescription},"0"===K?"":K))),n.a.createElement(h.Box,{className:C.divCheckbox},n.a.createElement(h.Typography,{className:C.checkBox},"0"!==X&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),n.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Implicit Bias:",n.a.createElement(h.Typography,{className:C.creditDescription},"0"===X?"":X))),n.a.createElement(h.Box,{className:C.divCheckbox},n.a.createElement(h.Typography,{className:C.checkBox},"0"!==Z&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),n.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Competence Issues:",n.a.createElement(h.Typography,{className:C.creditDescription},"0"===Z?"":Z))))),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},n.a.createElement(h.Typography,{className:C.infoLabel},n.a.createElement(h.Box,{className:C.infoContainer},n.a.createElement(h.Typography,{className:C.textBold},"Provider Signature")," (authorized representative):")),n.a.createElement(h.Box,{className:C.infoDescription},void 0!==(null===b||void 0===b?void 0:b.validatorSignatureId)&&0!==(null===b||void 0===b?void 0:b.validatorSignatureId)&&n.a.createElement("img",{alt:"signature",src:null===b||void 0===b?void 0:b.signatureUrl,width:200,height:25,className:C.image}))),n.a.createElement(h.Box,{className:C.tableInfoBox},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{className:C.textBold,style:{display:"flex"}},"Section 3 is to be completed by the Attorney\xa0",n.a.createElement(h.Typography,{className:C.textUnderline},"after"),"\xa0participation in the above-referenced activity"))),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},n.a.createElement(h.Box,{className:C.infoLabel},n.a.createElement(h.Typography,{className:C.numberedLabel},"3. ATTORNEY INFORMATION (please print)")),n.a.createElement(h.Typography,{className:C.infoLabelDescription})),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Name of Attorney:"),n.a.createElement(h.Typography,{className:C.infoDescription},z)),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Attorney California State Bar Number:"),n.a.createElement(h.Typography,{className:C.infoNumberDescription},W)),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.fontSize12},"By signing below, I certify under penalty of perjury that I participated in all of the activity described above and am ",n.a.createElement("br",null),"therefore entitled to claim the California MCLE credit hours noted above.")),n.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},n.a.createElement(h.Typography,{className:C.infoLabel},"Attorney Signature:"),n.a.createElement(h.Box,{className:C.infoDescription},(null===b||void 0===b?void 0:b.includeParticipantSignature)&&!Object(x.isEmpty)(null===M||void 0===M?void 0:M.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===M||void 0===M?void 0:M.signatureUrl,width:200,height:25,className:C.image}))))))),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement(h.Box,{className:C.tdAlignEnd},n.a.createElement(h.Typography,{className:C.footer},"MCLE Certificate of Attendance 2022-08"))))},qt=Object(B.makeStyles)((function(){return Object(B.createStyles)({printButton:{"@media print":{display:"none !important"}},infoDescription:{borderBottom:"#000000 1px solid",fontSize:"12pt",minWidth:"300px",flex:1,overflowWrap:"anywhere"},infoNumberDescription:{borderBottom:"#000000 1px solid",fontSize:"12pt",fontFamily:"Arial",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},infoContainer:{display:"flex"},table:{height:"100%",width:"1095px",alignItems:"center",margin:"0 auto",maxWidth:"900px !important",fontSize:"12.5pt",whiteSpace:"nowrap",border:"solid 6px #006a8e",outline:"solid 2px #006a8e",outlineOffset:"-7px",padding:"25px 45px 0px"},image:{imageRendering:"auto",objectFit:"scale-down"},divStyle:{display:"flex",justifyContent:"stretch",width:"100%"},divDetails:{"@media print":{size:"letter !important",zoom:"75% !important"}},infoLabel:{flex:0,fontFamily:"Bookman Old Style",fontStyle:"normal",fontWeight:"bold",textDecoration:"none",fontSize:"14pt",margin:"0pt"},infoParagraph:{fontFamily:"Bookman Old Style",fontStyle:"normal",fontWeight:"bold",width:"100%",textAlign:"center",whiteSpace:"pre-wrap",overflowWrap:"anywhere",flex:1},titleHeader:{fontFamily:"Bookman Old Style",fontSize:"30pt",textAlign:"center",margin:"-15px auto",padding:"0px"},blueText:{fontFamily:"Bookman Old Style",color:"#2d74b5",fontSize:"30pt",display:"inline"},blackSmallText:{fontFamily:"Bookman Old Style",color:"black",fontSize:"10pt",display:"inline",fontWeight:"normal"},blackSmallText2:{fontFamily:"Bookman Old Style",color:"black",fontSize:"12pt",display:"inline",fontWeight:"normal"},licenseeNameField:{width:"310px",height:"65px",textAlign:"center"},barNumberField:{width:"140px",height:"65px",textAlign:"center"},signatureField:{width:"280px",height:"65px",textAlign:"center"},signatureFieldLabel:{fontFamily:"Bookman Old Style",fontSize:"12pt",fontWeight:"bold",borderTop:"1px solid black",textAlign:"center",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},creditTable:{borderSpacing:"30px",borderCollapse:"collapse"},creditTableHeader:{height:"33px","& td":{border:"1pt solid #006a8e",textAlign:"center",fontFamily:"Bookman Old Style",fontStyle:"normal",fontWeight:"bold",fontSize:"12pt",lineHeight:"18px"},"& > :first-child":{width:"225pt"},"& > :nth-child(2)":{width:"60pt"}},creditTableRowCompletionColors:{"& td":{backgroundColor:"#2D74B5",color:"white"}},creditTableRowAttendaceColors:{"& td":{backgroundColor:"white",color:"#006a90"}},creditTableRowCols:{height:"17px","& td":{border:"1pt solid #006a8e",fontFamily:"Bookman Old Style",fontStyle:"normal",fontSize:"11pt",fontWeight:400,padding:"0px",margin:"0px",lineHeight:"20px"},"& > :first-child":{width:"225pt",textAlign:"right",paddingRight:"4pt"},"& > :nth-child(2)":{width:"60pt",textAlign:"center"}},creditTableRowTotal:{height:"17px","& td":{fontFamily:"Bookman Old Style",fontStyle:"normal",lineHeight:0},"& > :first-child":{border:0,fontWeight:"bold",color:"#2D74B5",width:"225pt",textAlign:"right",paddingRight:"4pt",fontSize:"12pt"},"& > :nth-child(2)":{border:"1pt solid #006a8e",width:"60pt",textAlign:"center",fontSize:"11pt"}}})})),Mt=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w=e.certificate,P=e.isInstructor,T=e.licenseId,A=e.sessionDetails,k=e.userId,D=e.isAttendance,L=qt(),J=(null===A||void 0===A?void 0:A.title)!==(null===A||void 0===A?void 0:A.courseTitle)?"".concat(null===A||void 0===A?void 0:A.courseTitle," (").concat(null===A||void 0===A?void 0:A.title,")"):null===A||void 0===A?void 0:A.courseTitle,F=(null===A||void 0===A?void 0:A.startDate)?Q()(null===A||void 0===A?void 0:A.startDate).format("MMMM DD, YYYY"):"",B=(null===A||void 0===A?void 0:A.endDate)?Q()(null===A||void 0===A?void 0:A.endDate).format("MMMM DD, YYYY"):"",R=B&&B!==F?"".concat(F," - ").concat(B):F,U=(null===A||void 0===A?void 0:A.startTime)?null===A||void 0===A?void 0:A.startTime:"",G=(null===A||void 0===A?void 0:A.endTime)&&(null===A||void 0===A?void 0:A.endTime)!==(null===A||void 0===A?void 0:A.startTime)?" - ".concat(null===A||void 0===A?void 0:A.endTime):"",q=null!==(t=null===A||void 0===A?void 0:A.timeZone)&&void 0!==t?t:"",M=""===U&&""===G?"":G?"".concat(U," ").concat(G," ").concat(null===q?"":q):"".concat(U," ").concat(null===q?"":q),z=null!==(i=null===A||void 0===A||null===(r=A.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",W=null!==(a=null===A||void 0===A||null===(o=A.location)||void 0===o?void 0:o.city)&&void 0!==a?a:"",V=null!==(s=null===A||void 0===A||null===(l=A.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",_=null!==(c=null===A||void 0===A?void 0:A.provider)&&void 0!==c?c:"",Y=null!==(d=null===A||void 0===A?void 0:A.courseFormat)&&void 0!==d?d:"",$="";$=Object(x.isEmpty)(W)&&Object(x.isEmpty)(V)?"".concat(z):"".concat(W).concat(Object(x.isEmpty)(V)?"":Object(x.isEmpty)(W)?V:", ".concat(V));var H=(null===A||void 0===A?void 0:A.sessionInstructors)&&(null===A||void 0===A?void 0:A.sessionInstructors.find((function(e){return e.userId===k}))),K=(null===A||void 0===A?void 0:A.sessionParticipants)&&(null===A||void 0===A?void 0:A.sessionParticipants.find((function(e){return e.userId===k}))),Z=P?H:K,X="".concat(Z.firstName," ").concat((null===w||void 0===w?void 0:w.includeMiddleName)?"".concat(null!==(u=Z.middleName)&&void 0!==u?u:""):""," ").concat(Z.lastName),ee="".concat((null===w||void 0===w?void 0:w.includeBarNumber)&&null!==(v=null===Z||void 0===Z?void 0:Z.licenseBarNumber)&&void 0!==v?v:""),ie=null===Z||void 0===Z?void 0:Z.caLawParticipatory,re=Z.completionDate?Q()(Z.completionDate).format("MMMM DD, YYYY"):"",ne=(null===A||void 0===A?void 0:A.isIndividualSessionDateAllowed)?re:R,ae=!0;ie||["college course","committee and firm meetings","Conference","digital video disc with group participation","group internet-based","group Live","live classroom","Live satellite Broadcast","live simultaneous videoconference","mock trial","moot court","officer/committee member","peer review","pro bono","simultaneous qebcast","specialist committee","structured coaching/mentoring","teleconference","videoconference approved for newly admitted attorneys","webconference","webinar"].includes(Y.toLowerCase())?ae=!0:ie&&!["audio cd","audio file","audiotape","cd-rom (audio/video)","compact disc (audio only)","digital video disc","distant learning","independent study","online audio","online course","online video","publication","reading of professional journals/publication","research","self study","subscription","video cd","video file (vodcast, etc.)","videotape (for individual viewing)"].includes(Y.toLowerCase())||(ae=!1);var oe,se,le,ce,de,ue,he,ve,pe,fe=null===Z||void 0===Z||null===(f=Z.userLicenseCreditValues)||void 0===f?void 0:f.filter((function(e){return e.licenseId===T})),me=function(e){var t,i=null===A||void 0===A||null===(t=A.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===te})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(Z.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"};return oe=me(null===fe||void 0===fe||null===(m=fe.find((function(e){return e.creditId===je})))||void 0===m?void 0:m.value),se=me(null===fe||void 0===fe||null===(y=fe.find((function(e){return e.creditId===Oe})))||void 0===y?void 0:y.value),le=me(null===fe||void 0===fe||null===(g=fe.find((function(e){return e.creditId===xe})))||void 0===g?void 0:g.value),ce=me(null===fe||void 0===fe||null===(b=fe.find((function(e){return e.creditId===we})))||void 0===b?void 0:b.value),de=me(null===fe||void 0===fe||null===(S=fe.find((function(e){return e.creditId===Pe})))||void 0===S?void 0:S.value),ue=me(null===fe||void 0===fe||null===(E=fe.find((function(e){return e.creditId===Te})))||void 0===E?void 0:E.value),he=me(null===fe||void 0===fe||null===(I=fe.find((function(e){return e.creditId===Ae})))||void 0===I?void 0:I.value),ve=me(null===fe||void 0===fe||null===(O=fe.find((function(e){return e.creditId===Ne})))||void 0===O?void 0:O.value),pe=me(Object(x.sum)(null===fe||void 0===fe||null===(C=fe.filter((function(e){return e.creditId!==Ce})))||void 0===C?void 0:C.map((function(e){return e.value})))),n.a.createElement(h.Box,{maxWidth:"900px",margin:"0 auto",className:L.divDetails},n.a.createElement(h.Box,{style:{alignItems:"center"}},n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:L.table},n.a.createElement(h.Box,{style:{padding:"16px 0px 20px 0px"}},n.a.createElement(h.Typography,{className:L.titleHeader},"California MCLE"),n.a.createElement(h.Typography,{className:L.titleHeader},"Certificate of\xa0",n.a.createElement(h.Typography,{variant:"body1",className:L.blueText},(void 0===D?ae:D)?"Attendance":"Completion"))),n.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},n.a.createElement(h.Box,{className:L.divStyle},n.a.createElement(h.Typography,{className:L.infoLabel},"Provider Name:\xa0"),n.a.createElement(h.Typography,{className:L.infoDescription},(null===w||void 0===w?void 0:w.locationValue)?"".concat(_," (").concat(null===w||void 0===w?void 0:w.locationValue,")"):_)),n.a.createElement(h.Box,{className:L.divStyle,style:{maxWidth:"245px"}},n.a.createElement(h.Typography,{className:L.infoLabel},"Provider No:\xa0"),n.a.createElement(h.Typography,{className:L.infoNumberDescription},null!==(j=null===w||void 0===w?void 0:w.licenseProviderNumber)&&void 0!==j?j:""))),n.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},n.a.createElement(h.Typography,{className:L.infoLabel},"Title of Activity:\xa0"),n.a.createElement(h.Typography,{className:L.infoDescription},J)),n.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},n.a.createElement(h.Typography,{className:L.infoLabel},"Location of Activity\xa0",n.a.createElement(h.Typography,{variant:"body1",className:L.blackSmallText},"(",n.a.createElement("i",null,"City, State/Country/Remote"),")"),":\xa0"),n.a.createElement(h.Typography,{className:L.infoDescription},(null===w||void 0===w?void 0:w.includeLocation)&&!Object(x.isEmpty)($)?$:"Not Applicable",", ",Y)),n.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},n.a.createElement(h.Typography,{className:L.infoLabel},"Date & Time of the Activity:\xa0"),n.a.createElement(h.Typography,{className:L.infoDescription},ne," ",M)),n.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"20px 13px"}},n.a.createElement(h.Typography,{className:L.infoParagraph,style:{fontSize:"14pt"}},"Minimum Continuing Legal Education (MCLE) Credit Hours Awarded for the Above Activity")),n.a.createElement(h.Box,{className:L.infoContainer,style:{justifyContent:"center"}},n.a.createElement("table",{className:L.creditTable},n.a.createElement("tr",{className:L.creditTableHeader+" "+((void 0===D?ae:D)?L.creditTableRowAttendaceColors:L.creditTableRowCompletionColors)},n.a.createElement("td",null,"Credit Type"),n.a.createElement("td",null,"Credit",n.a.createElement("br",null),"Hours")),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"General MCLE"),n.a.createElement("td",null,oe)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Legal Ethics"),n.a.createElement("td",null,se)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Recognition & Elimination of Bias"),n.a.createElement("td",null,le)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Implicit Bias"),n.a.createElement("td",null,ce)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Prevention & Detection Competence"),n.a.createElement("td",null,de)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Wellness Competence"),n.a.createElement("td",null,ue)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Technology in the Practice of Law"),n.a.createElement("td",null,he)),n.a.createElement("tr",{className:L.creditTableRowCols},n.a.createElement("td",null,"Civility in the Legal Profession"),n.a.createElement("td",null,ve)),n.a.createElement("tr",{className:L.creditTableRowTotal},n.a.createElement("td",null,"Total"),n.a.createElement("td",null,pe)))),n.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"20px 24px"}},n.a.createElement(h.Typography,{className:L.infoParagraph,style:{fontSize:"12pt"}},"This section is to be completed by the California Licensee and/or the Provider after participation in the activity")),n.a.createElement(h.Box,{className:L.infoContainer,style:{justifyContent:"space-between"}},n.a.createElement("div",{className:L.licenseeNameField},Object(x.isEmpty)(X)?n.a.createElement("div",{style:{marginTop:"25px"}}):X,n.a.createElement("div",{className:L.signatureFieldLabel},"Name of CA Licensee\xa0",n.a.createElement("span",{className:L.blackSmallText},"(",n.a.createElement("i",null,"print name"),")"))),n.a.createElement("div",{className:L.barNumberField},Object(x.isEmpty)(ee)?n.a.createElement("div",{style:{marginTop:"25px"}}):ee,n.a.createElement("div",{className:L.signatureFieldLabel},"CA Bar Number")),n.a.createElement("div",{className:L.signatureField},Object(x.isEmpty)(null===Z||void 0===Z?void 0:Z.signatureUrl)?n.a.createElement("div",{style:{marginTop:"25px"}}):n.a.createElement("img",{alt:"signature",src:null===Z||void 0===Z?void 0:Z.signatureUrl,width:200,height:20,className:L.image}),n.a.createElement("div",{className:L.signatureFieldLabel},"Signature of CA Licensee")))))))))},zt=Object(V.makeStyles)((function(){return Object(V.createStyles)({divHeader:{verticalAlign:"center",paddingTop:"20px",display:"inline-block"},h1Header:{fontSize:"12pt",marginBottom:"10px",fontWeight:"bolder",textAlign:"center",fontFamily:"Arial",letterSpacing:"0.01em"},h3Header:{textAlign:"center",fontSize:"13pt",marginBottom:"5px",marginTop:"5px",fontWeight:800,fontFamily:"Arial",letterSpacing:"0.01em"},pHeader:{textAlign:"left",marginBottom:"45px",marginTop:"0px",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},certificatedataTDHeader:{border:"#000000 1px solid",padding:"5px",overflowWrap:"break-word",overflow:"normal",whiteSpace:"normal",justifyContent:"center",alignItems:"center",display:"flex",fontFamily:"Arial",fontSize:"10pt",letterSpacing:"0.01em"},certificatedataTD:{border:"#000000 1px solid",padding:"5px",overflowWrap:"break-word",overflow:"normal",whiteSpace:"normal",fontFamily:"Arial",fontSize:"10pt",letterSpacing:"0.01em"},certificateDataHeader:{fontSize:"9pt",textAlign:"center",display:"flex"},lineText:{minWidth:"300px",whiteSpace:"pre-wrap",textAlign:"left",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},courseIdDescription:{borderBottom:"#000000 1px solid",flex:1,marginLeft:"3px",minWidth:"140px",display:"inline-block",textAlign:"left",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},styleNoWrap:{whiteSpace:"nowrap"},divStyle:{display:"flex",justifyContent:"stretch",width:"100%"},styleFlexWithBorder:{flex:1,borderBottom:"1px solid",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},signatureContainer:{display:"flex",flexBasis:"60%",alignItems:"flex-end",paddingRight:"8px"},signatureLabel:{paddingRight:"8px",minWidth:"180px",textAlign:"left",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},dateContainer:{display:"flex",flexBasis:"40%",alignItems:"flex-end"},dateLabel:{paddingRight:"8px",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},signatureSize:{width:200,height:25},barNumberContainer:{display:"flex",flexBasis:"40%",alignItems:"flex-end",paddingRight:"8px"},barNumberLabel:{paddingRight:"8px",minWidth:"180px",textAlign:"left",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},nameContainer:{display:"flex",flexBasis:"60%",alignItems:"flex-end"},nameLabel:{paddingRight:"8px",textAlign:"left",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},creditDescription:{borderBottom:"#000000 1px solid",flex:1,marginLeft:"3px",minWidth:"50px",display:"inline-block",textAlign:"center",fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"},divDetails:{"@media print":{size:"letter !important",zoom:"80% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"}},desc:{fontFamily:"Arial",fontSize:"11pt",letterSpacing:"0.01em"}})})),Wt=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j=e.certificate,w=e.isInstructor,P=e.licenseId,T=e.sessionDetails,A=e.userId,k=zt(),D=(null===T||void 0===T?void 0:T.title)!==(null===T||void 0===T?void 0:T.courseTitle)?"".concat(null===T||void 0===T?void 0:T.courseTitle," (").concat(null===T||void 0===T?void 0:T.title,")"):null===T||void 0===T?void 0:T.courseTitle,L=(null===T||void 0===T?void 0:T.startDate)?Q()(null===T||void 0===T?void 0:T.startDate).format("MMMM DD, YYYY"):"",J=(null===T||void 0===T?void 0:T.endDate)?Q()(null===T||void 0===T?void 0:T.endDate).format("MMMM DD, YYYY"):"",F=J&&J!==L?"".concat(L," - ").concat(J):L,B=null!==(t=null===T||void 0===T||null===(i=T.location)||void 0===i?void 0:i.city)&&void 0!==t?t:"",R=null!==(r=null===T||void 0===T||null===(a=T.location)||void 0===a?void 0:a.state)&&void 0!==r?r:"",U="";U=Object(x.isEmpty)(B)&&Object(x.isEmpty)(R)?"":"".concat((null===j||void 0===j?void 0:j.includeCity)||(null===j||void 0===j?void 0:j.includeState)?"".concat((null===j||void 0===j?void 0:j.includeCity)?B:"").concat((null===j||void 0===j?void 0:j.includeState)&&!Object(x.isEmpty)(R)?(null===j||void 0===j?void 0:j.includeCity)&&!Object(x.isEmpty)(B)?", ".concat(R):R:""):"");var G=null!==(o=(C=w?(null===T||void 0===T?void 0:T.sessionInstructors)&&(null===T||void 0===T?void 0:T.sessionInstructors.find((function(e){return e.userId===A}))):(null===T||void 0===T?void 0:T.sessionParticipants)&&(null===T||void 0===T?void 0:T.sessionParticipants.find((function(e){return e.userId===A})))).lastName)&&void 0!==o?o:"",q="".concat((null===j||void 0===j?void 0:j.includeBarNumber)&&null!==(s=null===(l=C)||void 0===l?void 0:l.licenseBarNumber)&&void 0!==s?s:""),M=C.completionDate?Q()(C.completionDate).format("MMMM DD, YYYY"):"",z=(null===T||void 0===T?void 0:T.isIndividualSessionDateAllowed)?M:F,W=function(e){var t,i=null===T||void 0===T||null===(t=T.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===P})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(C.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},V=null===T||void 0===T||null===(c=T.sessionLicenses)||void 0===c||null===(d=c.find((function(e){return e.licenseId===P})))||void 0===d?void 0:d.sessionLicenseCredits,_=null!==(u=null===T||void 0===T||null===(v=T.approvalCodes)||void 0===v||null===(f=v.find((function(e){return e.licenseId===P})))||void 0===f?void 0:f.propertyValue)&&void 0!==u?u:"",Y=null===(m=C)||void 0===m||null===(y=m.userLicenseCreditValues)||void 0===y?void 0:y.filter((function(e){return e.licenseId===P})),$=W(Object(x.sum)(null===V||void 0===V?void 0:V.map((function(e){return e.creditValue})))),H=W(Object(x.sum)(null===V||void 0===V||null===(g=V.filter((function(e){return e.creditId===vt})))||void 0===g?void 0:g.map((function(e){return e.creditValue})))),K=W(Object(x.sum)(null===Y||void 0===Y?void 0:Y.map((function(e){return e.value})))),Z=W(Object(x.sum)(null===Y||void 0===Y||null===(b=Y.filter((function(e){return e.creditId===vt})))||void 0===b?void 0:b.map((function(e){return e.value}))));return n.a.createElement(h.Box,{style:{border:"5px double #000000"},maxWidth:"900px",margin:"0 auto",className:k.divDetails},n.a.createElement(h.Box,{style:{alignItems:"center"}},n.a.createElement(h.Table,{id:"tblCertificate",style:{width:"100%",pageBreakAfter:"auto",display:"block",margin:"25px",marginRight:"25px"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"center",padding:0,border:"none"}},n.a.createElement(h.Box,{className:k.divHeader},n.a.createElement(h.Typography,{className:k.h1Header},"Colorado Supreme Court ",n.a.createElement("br",null),"Office of Continuing Legal & Judicial Education ",n.a.createElement("br",null),"1300 Broadway, Suite 510 ",n.a.createElement("br",null),"Denver, CO 80203 ",n.a.createElement("br",null),"(303) 928-7771 ",n.a.createElement("br",null),n.a.createElement(h.Typography,{className:k.desc,style:{textDecoration:"underline",fontWeight:"bold"}},"www.coloradosupremecourt.us")),n.a.createElement(h.Typography,{className:k.h3Header},"NOTICE OF ACCREDITATION")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"left",padding:0,border:"none"}},n.a.createElement(h.Typography,{className:k.pHeader},"The Board has accredited the following continuing legal education seminar under Rule 260:"))),n.a.createElement(h.TableRow,{className:k.certificateDataHeader},n.a.createElement(h.TableCell,{width:"25%",className:k.certificatedataTDHeader},"NAME OF SEMINAR"),n.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTDHeader},"LOCATION"),n.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTDHeader},"DATE"),n.a.createElement(h.TableCell,{width:"16%",className:k.certificatedataTDHeader},"SPONSOR"),n.a.createElement(h.TableCell,{width:"10%",className:k.certificatedataTDHeader},"GENERAL",n.a.createElement("br",null)," CREDITS"),n.a.createElement(h.TableCell,{width:"9%",className:k.certificatedataTDHeader},"ETHICS",n.a.createElement("br",null)," CREDITS")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{width:"100%"})),n.a.createElement(h.TableRow,{className:k.certificateDataHeader},n.a.createElement(h.TableCell,{width:"25%",className:k.certificatedataTD},D),n.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTD},(null===j||void 0===j?void 0:j.includeLocation)?U:""),n.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTD},z),n.a.createElement(h.TableCell,{width:"16%",className:k.certificatedataTD},null!==(S=null===T||void 0===T?void 0:T.provider)&&void 0!==S?S:""),n.a.createElement(h.TableCell,{width:"10%",className:k.certificatedataTD},$),n.a.createElement(h.TableCell,{width:"9%",className:k.certificatedataTD},H)),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"justify",padding:0,border:"none"}},n.a.createElement(h.Typography,{className:k.desc},n.a.createElement("br",null),"Colorado attorneys and judges who attend the entire seminar may claim the credits indicated. If any Ethics Credits are ",n.a.createElement("br",null)," indicated, they may be claimed by attending those parts of seminar indicated below the seminar's name. Ethics credits are",n.a.createElement("br",null)," NOT IN ADDITION TO General Credits. General and Ethics Credits are NOT added to or subtracted from each other. This",n.a.createElement("br",null),"accreditation is awarded provided the sponsor permits the Board's staff to attend the seminar, gives every Colorado attorney",n.a.createElement("br",null)," and judge attending a copy of this combined notice/affidavit form; accepts at the seminar, this form after it is executed by",n.a.createElement("br",null)," attending Colorado attorneys and judges; and delivers the executed forms to the Board within 10 days after the seminar.",n.a.createElement("br",null),n.a.createElement("br",null),"Date Reviewed: _________________",n.a.createElement("br",null),n.a.createElement(h.Typography,{className:k.h3Header},"AFFIDAVIT"),"INSTRUCTIONS: Colorado attorneys and judges may report CLE Credits earned at this seminar by logging into the Online",n.a.createElement("br",null)," CLE Transcripts. You can access the online entry of Affidavits by visiting http://www.cletrack.com. Click on CLE Transcripts,",n.a.createElement("br",null)," login and select Enter Online Affidavits. You can enter your affidavit using the Course ID located at the bottom of this page.",n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement(h.Typography,{className:k.desc,style:{fontWeight:"bold"}},"DO NOT CLAIM THESE CREDITS ON ANY OTHER AFFIDAVIT"),n.a.createElement("br",null),"CERTIFICATION OF ".concat(w?"INSTRUCTION":"ATTENDANCE",": "),"By signing below I certify that I am entitled to claim:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"justify",padding:0,border:"none"}},n.a.createElement(h.Box,{className:k.lineText,style:{textAlign:"center",marginTop:"20px"}},n.a.createElement(h.Typography,{className:k.creditDescription},K),"\xa0General Credits \xa0",n.a.createElement(h.Typography,{className:k.creditDescription},Z),"\xa0Ethics Credits"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{textAlign:"justify",padding:0,border:"none"}},n.a.createElement(h.Box,{className:k.divStyle,style:{marginTop:"20px"}},n.a.createElement(h.Box,{className:k.barNumberContainer},n.a.createElement(h.Box,{className:k.barNumberLabel,style:{minWidth:"90px"}},"ATTY NUMBER"),n.a.createElement(h.Box,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeBarNumber)&&q)),n.a.createElement(h.Box,{className:k.nameContainer},n.a.createElement(h.Box,{className:k.nameLabel},"LAST NAME (print):"),n.a.createElement(h.Box,{className:k.styleFlexWithBorder},G))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{textAlign:"justify",padding:0,border:"none"}},n.a.createElement(h.Box,{className:k.divStyle,style:{marginTop:(null===j||void 0===j?void 0:j.includeParticipantSignature)&&!Object(x.isEmpty)(null===(E=C)||void 0===E?void 0:E.signatureUrl)?"0px":"20px"}},n.a.createElement(h.Box,{className:k.signatureContainer},n.a.createElement(h.Box,{className:k.signatureLabel,style:{minWidth:"90px"}},"SIGNATURE"),n.a.createElement(h.Box,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeParticipantSignature)&&!Object(x.isEmpty)(null===(I=C)||void 0===I?void 0:I.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===(O=C)||void 0===O?void 0:O.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),n.a.createElement(h.Box,{className:k.dateContainer},n.a.createElement(h.Box,{className:k.dateLabel},"DATE"),n.a.createElement(h.Box,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}}))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"justify",padding:0,display:"flex",border:"none"}},n.a.createElement(h.Box,{className:k.lineText,style:{marginTop:"20px",textAlign:"left",display:"flex"}},n.a.createElement(h.Typography,{className:k.desc,style:{fontWeight:"bold"}},"COURSE ID:"),n.a.createElement(h.Typography,{className:k.courseIdDescription},_)))))),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement("br",null)))},Vt=i(682),_t=i(1798),Yt=Object(Vt.a)((function(){return Object(_t.a)({infoContainer:{display:"flex"},signatureField:{width:"330px",fontWeight:600,textAlign:"center",paddingLeft:"15px",paddingRight:"15px"},label:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",textAlign:"center",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},titleLabel:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"center"},divDetails:{paddingRight:"16px",paddingLeft:"16px","@media print":{size:"letter !important",zoom:"80% !important"}}})})),$t=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I=e.certificate,O=e.isInstructor,C=e.licenseId,j=e.sessionDetails,w=e.userId,P=Yt(),T=(null===j||void 0===j?void 0:j.title)!==(null===j||void 0===j?void 0:j.courseTitle)?"".concat(null===j||void 0===j?void 0:j.courseTitle," (").concat(null===j||void 0===j?void 0:j.title,")"):null===j||void 0===j?void 0:j.courseTitle,A=null!==(t=null===j||void 0===j?void 0:j.courseFormat)&&void 0!==t?t:"",k=(null===j||void 0===j?void 0:j.startDate)?Q()(null===j||void 0===j?void 0:j.startDate).format("MMMM DD, YYYY"):"",D=(null===j||void 0===j?void 0:j.endDate)?Q()(null===j||void 0===j?void 0:j.endDate).format("MMMM DD, YYYY"):"",J=(null===j||void 0===j?void 0:j.startTime)?null===j||void 0===j?void 0:j.startTime:"",F=(null===j||void 0===j?void 0:j.endTime)&&(null===j||void 0===j?void 0:j.endTime)!==(null===j||void 0===j?void 0:j.startTime)?" - ".concat(null===j||void 0===j?void 0:j.endTime):"",B=null!==(i=null===j||void 0===j?void 0:j.timeZone)&&void 0!==i?i:"",R=D&&D!==k?"".concat(k," - ").concat(D):k,U=""===J&&""===F?"-":F?"".concat(J," ").concat(F," ").concat(null===B?"":B):"".concat(J," ").concat(null===B?"":B),G=O?null!==(r=null===j||void 0===j||null===(a=j.sessionInstructors)||void 0===a?void 0:a.filter((function(e){return e.userId===w})))&&void 0!==r?r:[]:null!==(o=null===j||void 0===j?void 0:j.sessionInstructors)&&void 0!==o?o:[],q=null===G||void 0===G?void 0:G.map((function(e){return"".concat(e.firstName).concat((null===I||void 0===I?void 0:I.includeMiddleName)&&!Object(x.isEmpty)(e.middleName)?" ".concat(e.middleName," "):" ").concat(e.lastName)})),M=null!==(s=null===j||void 0===j||null===(l=j.location)||void 0===l?void 0:l.name)&&void 0!==s?s:"",z=null!==(c=null===j||void 0===j||null===(d=j.location)||void 0===d?void 0:d.city)&&void 0!==c?c:"",W=null!==(u=null===j||void 0===j||null===(v=j.location)||void 0===v?void 0:v.state)&&void 0!==u?u:"",V="On-demand"===(null!==(f=null===j||void 0===j?void 0:j.formatCategory)&&void 0!==f?f:""),_="";_=Object(x.isEmpty)(z)&&Object(x.isEmpty)(W)?"".concat(M):"".concat(M," ").concat((null===I||void 0===I?void 0:I.includeCity)||(null===I||void 0===I?void 0:I.includeState)?"(".concat((null===I||void 0===I?void 0:I.includeCity)?z:"").concat((null===I||void 0===I?void 0:I.includeState)&&!Object(x.isEmpty)(W)?(null===I||void 0===I?void 0:I.includeCity)&&!Object(x.isEmpty)(z)?", ".concat(W):W:"",")"):""),E=O?(null===j||void 0===j?void 0:j.sessionInstructors)&&(null===j||void 0===j?void 0:j.sessionInstructors.find((function(e){return e.userId===w}))):(null===j||void 0===j?void 0:j.sessionParticipants)&&(null===j||void 0===j?void 0:j.sessionParticipants.find((function(e){return e.userId===w})));var Y="".concat(E.firstName," ").concat((null===I||void 0===I?void 0:I.includeMiddleName)?"".concat(E.middleName):""," ").concat(E.lastName),$=null!==(m=E.licenseBarNumber)&&void 0!==m?m:"",H=Object(x.uniq)(null===(y=E)||void 0===y||null===(g=y.userLicenseCreditValues)||void 0===g?void 0:g.map((function(e){return e.licenseId}))),K=E.completionDate?Q()(E.completionDate).format("MMMM DD, YYYY"):"",Z=(null===j||void 0===j?void 0:j.isIndividualSessionDateAllowed)?K:R,X=E.completionDate?Q()(E.completionDate).format("LT"):"-",ee=V?X:U,te=function(){if(0!==C){var e,t,i,r,a,o,s,l,c,d,u,v,f,m,y=null!==(e=null===j||void 0===j||null===(t=j.approvalCodes)||void 0===t||null===(i=t.find((function(e){return e.licenseId===C})))||void 0===i?void 0:i.propertyValue)&&void 0!==e?e:"",g=null!==(r=E.userLicenseCreditValues&&(null===(a=E.userLicenseCreditValues[0])||void 0===a?void 0:a.licenseName))&&void 0!==r?r:"",b=C===ce?null!==(o=null===(s=E)||void 0===s||null===(l=s.userLicenseCreditValues)||void 0===l||null===(c=l.find((function(e){return e.creditId===ke})))||void 0===c?void 0:c.value)&&void 0!==o?o:0:Object(x.sum)(null===(d=E.userLicenseCreditValues)||void 0===d?void 0:d.map((function(e){return e.value}))),S=null===j||void 0===j||null===(u=j.sessionLicenses)||void 0===u?void 0:u.find((function(e){return e.licenseId===C})),O=(null===S||void 0===S?void 0:S.licenseStatus)===p.Dd.Pending,w=(null===S||void 0===S?void 0:S.licenseStatus)===p.Dd.Denied,P=S&&S.expirationDate&&null!==S.expirationDate&&Object(N.d)(S.expirationDate)<=Object(N.d)(E.completionDate),T=function(e){return e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},A=C===Se&&(null===(v=E)||void 0===v||null===(f=v.userLicensePropertyValues)||void 0===f?void 0:f.find((function(e){return 4===e.propertyId&&!0===e.valueBit})))?" (Verified E-CLE or Bar Sponsored Remote Group CLE)":"";return n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle1",color:"inherit",weight:"bold"},n.a.createElement("b",null,g)),(null===I||void 0===I?void 0:I.includeApprovalCode)&&!Object(x.isEmpty)(y)&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold"},n.a.createElement("b",null,"Approval Code:")),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},y))),!P&&!O&&!w&&(null===(m=E.userLicenseCreditValues)||void 0===m?void 0:m.filter((function(e){return 0!==e.value})).map((function(e){return n.a.createElement(h.Row,{key:e.creditId},n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold"},T(e.value)),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},e.creditName)))}))),C!==le&&n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},"For a total of ",n.a.createElement("b",null,P||O||w?(0).toFixed(1):T(b))," ","Credits"),C===Se&&n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},A))}var k=0;return n.a.createElement(n.a.Fragment,null,H.length>7?n.a.createElement("span",{style:{textAlign:"center"}},H.map((function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b;k+=1;var S=null!==(t=null===j||void 0===j||null===(i=j.approvalCodes)||void 0===i||null===(r=i.find((function(t){return t.licenseId===e})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",O=null!==(a=null===(o=E)||void 0===o||null===(s=o.userLicenseCreditValues)||void 0===s?void 0:s.filter((function(t){return t.licenseId===e}))[0].licenseName)&&void 0!==a?a:"",C=null===(l=E)||void 0===l||null===(c=l.userLicenseCreditValues)||void 0===c||null===(d=c.filter((function(t){return t.licenseId===e&&0!==t.value})))||void 0===d?void 0:d.map((function(e){return"".concat(e.creditName," ").concat(e.value)})),w=null===(u=E)||void 0===u||null===(v=u.userLicensePropertyValues)||void 0===v?void 0:v.find((function(t){return t.licenseId===e&&"Reciprocal"===t.propertyLabel&&!0===t.valueBit})),P=e===ye&&(null===(f=E)||void 0===f||null===(m=f.userLicensePropertyValues)||void 0===m?void 0:m.find((function(e){return 3===e.propertyId&&!0===e.valueBit})))?" (Transitional)":"",T=e===Se&&(null===(y=E)||void 0===y||null===(g=y.userLicensePropertyValues)||void 0===g?void 0:g.find((function(e){return 4===e.propertyId&&!0===e.valueBit})))?" (Verified E-CLE or Bar Sponsored Remote Group CLE)":"",A=null===j||void 0===j||null===(b=j.sessionLicenses)||void 0===b?void 0:b.find((function(t){return t.licenseId===e})),D=(null===A||void 0===A?void 0:A.licenseStatus)===p.Dd.Pending,L=(null===A||void 0===A?void 0:A.licenseStatus)===p.Dd.Denied,J=A&&A.expirationDate&&null!==A.expirationDate&&Object(N.d)(A.expirationDate)<=Object(N.d)(E.completionDate);return n.a.createElement("span",{key:e},n.a.createElement(h.Typography,{variant:"caption",color:"inherit",display:"inline"},n.a.createElement("b",null,O.toUpperCase()),n.a.createElement(n.a.Fragment,null,"".concat(C&&0===C.length||J||L?" 0 Credits":" ".concat(null===C||void 0===C?void 0:C.join(", ")).concat(P).concat(T)).concat(Object(x.isEmpty)(S)||!0!==(null===I||void 0===I?void 0:I.includeApprovalCode)?"":" (Approval Code: ".concat(S,")")).concat(D?" (Pending)":"").concat(void 0!==w?" (Reciprocal)":"").concat(k!==H.length?", ":""))))}))):n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},H.map((function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b;k+=1;var S=null!==(t=null===j||void 0===j||null===(i=j.approvalCodes)||void 0===i||null===(r=i.find((function(t){return t.licenseId===e})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",O=null!==(a=null===(o=E)||void 0===o||null===(s=o.userLicenseCreditValues)||void 0===s?void 0:s.filter((function(t){return t.licenseId===e}))[0].licenseName)&&void 0!==a?a:"",C=null===(l=E)||void 0===l||null===(c=l.userLicenseCreditValues)||void 0===c||null===(d=c.filter((function(t){return t.licenseId===e&&0!==t.value})))||void 0===d?void 0:d.map((function(e){return"".concat(e.creditName," ").concat(e.value)})),w=null===(u=E)||void 0===u||null===(v=u.userLicensePropertyValues)||void 0===v?void 0:v.find((function(t){return t.licenseId===e&&"Reciprocal"===t.propertyLabel&&!0===t.valueBit})),P=e===ye&&(null===(f=E)||void 0===f||null===(m=f.userLicensePropertyValues)||void 0===m?void 0:m.find((function(e){return 3===e.propertyId&&!0===e.valueBit})))?" (Transitional)":"",T=e===Se&&(null===(y=E)||void 0===y||null===(g=y.userLicensePropertyValues)||void 0===g?void 0:g.find((function(e){return 4===e.propertyId&&!0===e.valueBit})))?" (Verified E-CLE or Bar Sponsored Remote Group CLE)":"",A=null===j||void 0===j||null===(b=j.sessionLicenses)||void 0===b?void 0:b.find((function(t){return t.licenseId===e})),D=(null===A||void 0===A?void 0:A.licenseStatus)===p.Dd.Pending,L=(null===A||void 0===A?void 0:A.licenseStatus)===p.Dd.Denied,J=A&&A.expirationDate&&null!==A.expirationDate&&Object(N.d)(A.expirationDate)<=Object(N.d)(E.completionDate);return n.a.createElement(h.Expanded,{key:e,maxWidth:700},n.a.createElement(h.Typography,{variant:"caption",color:"inherit",align:"center"},n.a.createElement("b",null,O.toUpperCase()),n.a.createElement(n.a.Fragment,null,"".concat(C&&0===C.length||J||L?" 0 Credits":" ".concat(null===C||void 0===C?void 0:C.join(", ")).concat(P).concat(T)).concat(Object(x.isEmpty)(S)||!0!==(null===I||void 0===I?void 0:I.includeApprovalCode)?"":" (Approval Code: ".concat(S,")")).concat(D?" (Pending)":"").concat(void 0!==w?" (Reciprocal)":"").concat(k!==H.length?";":""))))}))))};return n.a.createElement(h.Box,{style:{border:"5px double #BDBDBD"},maxWidth:"855px",margin:"0 auto"},n.a.createElement(h.Box,{className:P.divDetails},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:4,mb:2},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},(null===I||void 0===I?void 0:I.includeFirmName)&&!Object(x.isEmpty)(null===I||void 0===I?void 0:I.firmName)&&n.a.createElement(h.Typography,{variant:"h6",color:"inherit",align:"center",style:{letterSpacing:"0.25em",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},null===I||void 0===I?void 0:I.firmName),(null===I||void 0===I?void 0:I.includeFirmLogo)&&!Object(x.isEmpty)(null===I||void 0===I?void 0:I.firmLogoUrl)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement("img",{src:null===I||void 0===I?void 0:I.firmLogoUrl,alt:"Logo",width:"320px",height:"80px"})),0!==(null===I||void 0===I?void 0:I.locationId)&&n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{letterSpacing:"0.15em",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},-1===(null===I||void 0===I?void 0:I.locationId)?_:null===I||void 0===I?void 0:I.locationValue)))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:2,mb:2},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h6",color:"inherit",style:{letterSpacing:"0.10em"}},"CERTIFICATE OF ".concat(O?"INSTRUCTION":V?"COMPLETION":"ATTENDANCE")),H.length>0&&n.a.createElement(h.Typography,{variant:"h6",color:"inherit",style:{letterSpacing:"0.10em"}},"Continuing Education Program")))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},n.a.createElement("u",null,"Course")),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},T)),n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Format: ",A))),!O&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},n.a.createElement("u",null,"".concat(V?"Participant":"Attendee"))),n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},Y),(null===I||void 0===I?void 0:I.includeBarNumber)&&!Object(x.isEmpty)($)&&n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Bar Number: ",$))),(null===I||void 0===I?void 0:I.includeInstructorName)&&!Object(x.isEmpty)(q)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},n.a.createElement("u",null,"Instructor")),n.a.createElement(h.Box,{maxWidth:"500px"},n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},q.join(", "))))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},n.a.createElement("u",null,"Date ".concat(O?"Taught":V?"Completed":"Attended"))),n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},Z),(null===I||void 0===I?void 0:I.includeLocation)&&!Object(x.isEmpty)(_)&&n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Location: ",_),(null===I||void 0===I?void 0:I.includeTime)&&n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Time: ",null!==ee&&void 0!==ee?ee:"-"))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},"This document certifies that the ".concat(O?"Instructor taught":V?"participant completed":"Attendee participated")),n.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},"".concat(O||V?"":"in ","this program ").concat(H.length>0?"and has earned the following credits:":"")))),H.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(te,null)),((null===I||void 0===I?void 0:I.includeValidatorSignatureLine)||(null===I||void 0===I?void 0:I.includeParticipantSignature))&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{height:"16px"})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement("div",{className:P.infoContainer,style:{justifyContent:"center"}},n.a.createElement("div",{className:P.infoContainer,style:{alignItems:"flex-start"}},(null===I||void 0===I?void 0:I.includeValidatorSignatureLine)&&n.a.createElement("div",{className:P.signatureField,style:{paddingLeft:(null===I||void 0===I?void 0:I.includeParticipantSignature)?"30px":"15px"}},Object(x.isEmpty)(null===I||void 0===I?void 0:I.signatureUrl)?n.a.createElement("div",{style:{width:200,height:32}}):n.a.createElement("img",{alt:"signature",src:null===I||void 0===I?void 0:I.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),n.a.createElement("div",{className:P.label},null===I||void 0===I?void 0:I.validatorName),n.a.createElement("div",{className:P.titleLabel},null===I||void 0===I?void 0:I.validatorTitle)),(null===I||void 0===I?void 0:I.includeParticipantSignature)&&n.a.createElement("div",{className:P.signatureField,style:{paddingLeft:(null===I||void 0===I?void 0:I.includeValidatorSignatureLine)?"30px":"15px"}},Object(x.isEmpty)(null===(b=E)||void 0===b?void 0:b.signatureUrl)?n.a.createElement("div",{style:{width:200,height:32}}):n.a.createElement("img",{alt:"signature",src:null===(S=E)||void 0===S?void 0:S.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),n.a.createElement("div",{className:P.label},Y),n.a.createElement("div",{className:P.titleLabel},"".concat(O?"Instructor":V?"Participant":"Attendee"))))))),!Object(x.isEmpty)(null===I||void 0===I?void 0:I.accreditedProvider)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{ml:2,mr:2,mt:2,mb:Object(x.isEmpty)(null===I||void 0===I?void 0:I.additionalText)?4:1},n.a.createElement(h.TextEditorView,{model:L(null===I||void 0===I?void 0:I.accreditedProvider)}))),!Object(x.isEmpty)(null===I||void 0===I?void 0:I.additionalText)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{ml:2,mr:2,mb:4},n.a.createElement(h.TextEditorView,{model:L(null===I||void 0===I?void 0:I.additionalText)}))))))},Ht=i(57),Kt=Object(V.makeStyles)((function(e){e.spacing;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},styleBorder:{border:"#000000 1px solid"},styleForm4:{fontWeight:"bold",textAlign:"right",fontSize:"10pt",padding:"2px 14px"},styleTitleForm:{fontWeight:"bold",textAlign:"center",fontSize:"20pt"},styleTitleUnderlineForm:{fontWeight:"bold",textDecoration:"underline"},textSize10:{fontSize:"10pt",fontFamily:"Times New Roman, Garamond, Courier"},textSize11:{fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},textSize11b:{fontSize:"11pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Courier"},textSize12:{fontSize:"12pt",fontFamily:"Times New Roman, Garamond, Courier"},textSize12b:{fontSize:"12pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Courier"},textSize13:{fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Courier"},textSize14:{fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Courier"},textSize20:{fontSize:"20pt",fontFamily:"Times New Roman, Garamond, Courier"},textSize20b:{fontSize:"20pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Courier"},table:{height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"890px !important",fontFamily:"Times New Roman, Garamond, Courier"},instructorTable:{width:"100%",pageBreakBefore:"always",fontFamily:"Times New Roman, Garamond, Courier",paddingLeft:"20px",paddingRight:"20px"},styleNoWrap:{whiteSpace:"nowrap"},styleItalic:{fontStyle:"italic",fontFamily:"Times New Roman, Garamond, Courier"},styleBold:{fontWeight:"bold",fontFamily:"Times New Roman, Garamond, Courier"},dateField:{width:"200px",fontWeight:600,textAlign:"center",marginRight:"30px"},signatureField:{width:"350px",fontWeight:600,textAlign:"center",marginLeft:"15px",marginRight:"15px"},label:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",fontWeight:"bolder"},dataLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",minWidth:"180px",textAlign:"right"},infoContainer:{display:"flex"},infoLabel:{flex:0,marginRight:"24px",minWidth:"156px",textAlign:"right",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},tdLabel:{marginRight:"24px",minWidth:"156px",textAlign:"right"},infoDescription:{borderBottom:"#000000 1px solid",fontSize:"10.5pt",minWidth:"500px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Courier"},tdInfoDescription:{borderBottom:"#000000 1px solid",fontSize:"10.5pt",minWidth:"500px",whiteSpace:"pre-wrap",textAlign:"left"},divStyle:{display:"flex",justifyContent:"stretch",width:"100%"},listStyleType:{listStyleType:"none"},tdPRStyle:{verticalAlign:"top",width:"10%",paddingRight:"0.5em",textAlign:"center"},divLabelContainer:{display:"flex",flexBasis:"85%",alignItems:"flex-start"},divLabelValue:{paddingRight:"24px",minWidth:"180px",textAlign:"left"},divFieldContainer:{display:"flex",flexBasis:"15%",alignItems:"flex-end"},divFieldValue:{flex:1,borderBottom:"1px solid",whiteSpace:"pre-wrap",textAlign:"right",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},darkOrange:{color:"darkorange",fontFamily:"Times New Roman, Garamond, Courier"},divDataContainer:{display:"flex",flexBasis:"60%",alignItems:"flex-start"},divDataV2Container:{display:"flex",flexBasis:"40%",fontFamily:"Times New Roman, Garamond, Courier"},divDataValue:{paddingRight:"24px",minWidth:"180px",textAlign:"right",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},styleFlexWithBorder:{flex:1,fontSize:"10.5pt",borderBottom:"1px solid",fontFamily:"Times New Roman, Garamond, Courier"},styleFlexWithBorderAttNum:{flex:1,borderBottom:"1px solid",whiteSpace:"pre-wrap",overflowWrap:"anywhere",minHeight:"21.11px",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},signatureContainer:{display:"flex",flexBasis:"70%",alignItems:"flex-end",paddingRight:"8px"},signatureLabel:{paddingRight:"8px",minWidth:"180px",textAlign:"right",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},dateContainer:{display:"flex",flexBasis:"30%",alignItems:"flex-end"},dateLabel:{paddingRight:"8px",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},signatureSize:{width:150,height:"auto"},styleCredit:{textAlign:"right",borderBottom:"1px solid",fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Courier"},divDetails:{"@media print":{size:"letter !important",zoom:"75% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"},"& td":{height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"890px !important",fontFamily:"Times New Roman, Garamond, Courier",border:"none"}}})})),Qt=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j=e.certificate,w=e.isInstructor,P=e.licenseId,T=e.sessionDetails,A=e.userId,k=Kt(),D=null!==(t=null===T||void 0===T?void 0:T.courseTitle)&&void 0!==t?t:"",L=null!==(i=null===T||void 0===T?void 0:T.title)&&void 0!==i?i:"",J=(null===T||void 0===T?void 0:T.startDate)?Q()(null===T||void 0===T?void 0:T.startDate).format("MMMM DD, YYYY"):"",F=(null===T||void 0===T?void 0:T.endDate)?Q()(null===T||void 0===T?void 0:T.endDate).format("MMMM DD, YYYY"):"",B=F&&F!==J?"".concat(J," - ").concat(F):J,R=(null===T||void 0===T?void 0:T.startTime)?null===T||void 0===T?void 0:T.startTime:"",U=(null===T||void 0===T?void 0:T.endTime)&&(null===T||void 0===T?void 0:T.endTime)!==(null===T||void 0===T?void 0:T.startTime)?"".concat(null===T||void 0===T?void 0:T.endTime):"",G=null!==(r=null===T||void 0===T?void 0:T.timeZone)&&void 0!==r?r:"",q=null!==(a=null===T||void 0===T||null===(o=T.location)||void 0===o?void 0:o.name)&&void 0!==a?a:"",M=null!==(s=null===T||void 0===T||null===(l=T.location)||void 0===l?void 0:l.city)&&void 0!==s?s:"",z=null!==(c=null===T||void 0===T||null===(d=T.location)||void 0===d?void 0:d.state)&&void 0!==c?c:"",W=null!==(u=null===T||void 0===T?void 0:T.provider)&&void 0!==u?u:"",V="";V=Object(x.isEmpty)(M)&&Object(x.isEmpty)(z)?"".concat(q):"".concat(q," ").concat((null===j||void 0===j?void 0:j.includeCity)||(null===j||void 0===j?void 0:j.includeState)?"(".concat((null===j||void 0===j?void 0:j.includeCity)?M:"").concat((null===j||void 0===j?void 0:j.includeState)&&!Object(x.isEmpty)(z)?(null===j||void 0===j?void 0:j.includeCity)&&!Object(x.isEmpty)(M)?", ".concat(z):z:"",")"):"");var _=(null===T||void 0===T?void 0:T.sessionInstructors)&&(null===T||void 0===T?void 0:T.sessionInstructors.find((function(e){return e.userId===A}))),Y=(null===T||void 0===T?void 0:T.sessionParticipants)&&(null===T||void 0===T?void 0:T.sessionParticipants.find((function(e){return e.userId===A}))),$=w?_:Y,H="".concat($.firstName," ").concat((null===j||void 0===j?void 0:j.includeMiddleName)?"".concat($.middleName):""," ").concat($.lastName),K="".concat((null===j||void 0===j?void 0:j.includeBarNumber)&&null!==(v=null===$||void 0===$?void 0:$.licenseBarNumber)&&void 0!==v?v:""),Z=function(e){var t,i=null===T||void 0===T||null===(t=T.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===de})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},X=null===T||void 0===T||null===(f=T.sessionLicenses)||void 0===f||null===(m=f.find((function(e){return e.licenseId===de})))||void 0===m?void 0:m.sessionLicenseCredits,ee=Z(Object(x.sum)(null===X||void 0===X?void 0:X.map((function(e){return e.creditValue})))),te=null===$||void 0===$||null===(y=$.userLicenseCreditValues)||void 0===y?void 0:y.filter((function(e){return e.licenseId===P})),ie=Z(Object(x.sum)(null===te||void 0===te?void 0:te.map((function(e){return e.value})))),re=Z(Object(x.sum)(null===te||void 0===te?void 0:te.filter((function(e){return e.creditId!==Fe})).map((function(e){return e.value})))),ne=Z(null===te||void 0===te||null===(g=te.find((function(e){return e.creditId===De})))||void 0===g?void 0:g.value),ae=Z(null===te||void 0===te||null===(b=te.find((function(e){return e.creditId===Le})))||void 0===b?void 0:b.value),oe=Z(null===te||void 0===te||null===(S=te.find((function(e){return e.creditId===Je})))||void 0===S?void 0:S.value),se=null===$||void 0===$||null===(E=$.userLicensePropertyValues)||void 0===E?void 0:E.filter((function(e){return e.licenseId===de})),le=!1,ce=w?function(){if(w){if(null===se||void 0===se?void 0:se.find((function(e){return e.propertyId===Re&&null!==e.valueChar})))return le=!0,"PANELIST";if(null===se||void 0===se?void 0:se.find((function(e){return e.propertyId===Be&&null!==e.valueChar})))return le=!1,"INDIVIDUAL"}return"INDIVIDUAL"}():"",ue=function(e){var t,i=null===T||void 0===T||null===(t=T.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===de})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||n||a?"0":e||"0"},he=ue(null===se||void 0===se||null===(I=se.find((function(e){return e.propertyId===Be})))||void 0===I?void 0:I.valueChar),ve=ue(null===se||void 0===se||null===(O=se.find((function(e){return e.propertyId===Re})))||void 0===O?void 0:O.valueChar),pe=void 0!==(null===se||void 0===se?void 0:se.find((function(e){return e.propertyId===Ue})))?ue(null===se||void 0===se||null===(C=se.find((function(e){return e.propertyId===Ue})))||void 0===C?void 0:C.valueChar):"",fe=function(e){var t=e-Math.floor(e);return t=t>=.75?.75:t>=.5?.5:t>=.25?.25:0,t=Math.floor(e)+t},me=Number(he)+Number(ve),ye=Object(x.isEmpty)(pe)?6*me:Number(pe),ge=me+ye,be=fe(Number(ie)),Se=Number(re)/Number(ie),Ee=Math.round(Se*me),Ie=Math.round(Se*ye),Oe=Math.round(Se*ge),Ce=fe(Number(re)),xe=$.completionDate?Q()($.completionDate).format("MMMM DD, YYYY"):"",je=(null===T||void 0===T?void 0:T.isIndividualSessionDateAllowed)?xe:B,we=Number(ie)>=Number(ee);return n.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",style:{width:"100%",alignItems:"center"},className:k.divDetails},n.a.createElement(h.Table,{id:"tblILCertificate",style:{width:"100%",pageBreakAfter:"auto"},className:k.table},n.a.createElement(h.TableBody,{className:w?"":k.styleBorder},n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleForm4},w?le?"Form 10a2":"Form 10a1":"Form 4")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{padding:0}},n.a.createElement(h.Typography,{className:k.textSize20b},"ILLINOIS ACCREDITED MCLE COURSE"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{display:"flex",padding:"3px 14px"}},w&&n.a.createElement(h.Typography,{className:k.textSize12b,style:{margin:"0 auto"}},n.a.createElement(h.Box,{className:k.infoContainer},"TEACHING CERTIFICATE\xa0",!Object(x.isEmpty)(ce)&&n.a.createElement(n.a.Fragment,null,"--\xa0",n.a.createElement(h.Typography,{className:k.darkOrange,style:{fontSize:"12pt",fontWeight:"bolder"}},ce)))),!w&&n.a.createElement(h.Typography,{className:k.textSize12b,style:{margin:"0 auto"}},"ATTENDANCE CERTIFICATE"))),w&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.textSize11,style:{textAlign:"left",padding:"3px 14px"}},n.a.createElement(h.Box,{style:{display:"flex"}},le&&"A panelist is an attorney who teaches a CLE course or course session together with at least one other teacher. ","Any Illinois attorney who qualifies as a teacher at a CLE-approved course under MCLE Rule\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"795(d)(5)"),", or at a bar or professional"),n.a.createElement(h.Box,{style:{display:"flex"}},"association meeting under MCLE Rule\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"795(d)(3)"),", can be issued teaching credit. MCLE credit includes: Presentation time plus"),"preparation time (six times the presentation time).")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12.5pt",padding:"14px 14px 0 14px"}},"SECTION A: PROVIDER COMPLETES THIS SECTION")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 30px"}},n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.infoLabel},"Provider Name:"),n.a.createElement(h.Typography,{className:k.infoDescription},n.a.createElement(h.Box,{className:k.infoContainer},W,"\xa0",(null===j||void 0===j?void 0:j.locationValue)&&n.a.createElement(h.Typography,{className:k.textSize11},"(",null===j||void 0===j?void 0:j.locationValue,")")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 23px"}},n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.infoLabel,style:{marginRight:"31px",letterSpacing:"0.19pt"}},"CLE Course/Activity Title:"),n.a.createElement(h.Typography,{className:k.infoDescription},D," ",w||L===D?"":"(".concat(L,")"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 30px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divDataContainer},n.a.createElement(h.Typography,{className:k.divDataValue},"Course/Activity Date(s):"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder},je)),n.a.createElement(h.Box,{className:k.divDataV2Container},n.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"24px",textAlign:"left"}},"Location:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"}},(null===j||void 0===j?void 0:j.includeLocation)?"".concat(V):""))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 30px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divDataContainer},n.a.createElement(h.Typography,{className:k.divDataValue},"Attorney Name:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},H)),n.a.createElement(h.Box,{className:k.divDataV2Container,style:{alignItems:"flex-start"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"24px",textAlign:"left"}},"Attorney ARDC #:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorderAttNum,style:{paddingRight:"24px",textAlign:"left"}},K))))),w&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"5px 15px 0px 14px"}},n.a.createElement(h.Box,{className:k.infoContainer,style:{alignItems:"flex-end"}},n.a.createElement(h.Typography,{className:k.infoLabel},n.a.createElement(h.Box,{className:k.infoContainer},"Session Title\xa0",n.a.createElement(h.Typography,{className:k.textSize10,style:{fontSize:"8.25pt",paddingTop:"2px"}},"(if different from")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 42px"}},n.a.createElement(h.Box,{className:k.infoContainer,style:{alignItems:"flex-end"}},n.a.createElement(h.Typography,{className:k.textSize10,style:{fontSize:"8.25pt",paddingBottom:"3px",paddingRight:"11px",marginRight:"14px"}},"Course/Activity Title above):"),n.a.createElement(h.Typography,{className:k.infoDescription},D!==L?L:"")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 15px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divDataContainer,style:{alignItems:"flex-end"}},n.a.createElement(h.Typography,{className:k.divDataValue},"Session Taught Start Time:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder},R)),n.a.createElement(h.Box,{className:k.divDataV2Container,style:{alignItems:"flex-end"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"24px"}},"Session Taught End Time:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}},Object(x.isEmpty)(U)?"":"".concat(U," ").concat(G))))))),w&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.textSize12,style:{fontWeight:"bolder",padding:"5px 14px"}},"From MCLE TEACHING CREDIT CALCULATION WORKSHEET")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.textSize12,style:{fontWeight:"bolder",padding:"0px 0px 0px 113px"}},"TOTAL MCLE Teaching Credit")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.textSize11,style:{flex:"85%",padding:"0px 0px 0px 113px"}},"(from CLE Calculation Worksheet, Line 4)"),n.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},n.a.createElement(h.Typography,{className:k.styleCredit},ie)),n.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 0px 0px 137px"}},n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.darkOrange,style:{fontSize:"11pt"}},"Including"),"\xa0",n.a.createElement(h.Typography,{className:k.textSize12,style:{fontWeight:"bolder"}},"TOTAL Professional Responsibility Credits")))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.textSize11,style:{flex:"75%",padding:"0px 0px 0px 137px"}},"(from CLE Calculation Worksheet, Line 4PR)"),n.a.createElement(h.TableCell,{className:k.darkOrange,style:{fontSize:"11pt",flex:"10%",padding:"2px"}},"Including:"),n.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},n.a.createElement(h.Typography,{className:k.styleCredit},re)),n.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),n.a.createElement(h.TableRow,{className:k.styleNoWrap},n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"10px 200px 0px 200px"}},n.a.createElement(h.Typography,{className:k.textSize12},"Professional Responsibility Credit Area:"),n.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},n.a.createElement("img",{alt:"check",src:"0"===ne?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Diversity/Inclusion"),n.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},n.a.createElement("img",{alt:"check",src:"0"===ae?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Mental Health and Substance Abuse"),n.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},n.a.createElement("img",{alt:"check",src:"0"===oe?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Other PR Areas"))),n.a.createElement(h.TableRow,{style:{padding:"2px 14px"}},n.a.createElement(h.TableCell,{className:k.textSize11},"By signing below, I certify that the attorney identified above was an instructor at this course. I have prepared Section A and the MCLE",n.a.createElement("br",null)," Teaching Credit Calculation Worksheet.")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 14px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.signatureContainer},n.a.createElement(h.Typography,{className:k.signatureLabel},"Provider Representative Signature:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeValidatorSignatureLine)&&void 0!==(null===j||void 0===j?void 0:j.validatorSignatureId)&&0!==(null===j||void 0===j?void 0:j.validatorSignatureId)&&n.a.createElement("img",{alt:"signature",src:null===j||void 0===j?void 0:j.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto"}}))),n.a.createElement(h.Box,{className:k.dateContainer},n.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}},je))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 14px"}},n.a.createElement("hr",null))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12pt"}},"SECTION B: ATTORNEY COMPLETES THIS SECTION")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"By Court Rule a repeat presentation of the same material counts at one-half the original credits. No further hours may be earned"),n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer},"for additional presentations of the same material. MCLE Rule\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"795(d)(5)"),".")),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Attorneys are responsible for their own recordkeeping. Do not submit this form to the Illinois MCLE Board. In the event that"),n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer},"you are audited by the Illinois MCLE Board, you will be required to submit this form. MCLE Rule\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"796(f)(1)"),".")),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"If approved for professional responsibility, the total credit claimed cannot exceed the Total MCLE Teaching Credit."))),n.a.createElement(h.TableRow,{style:{padding:"2px 14px"}},n.a.createElement(h.TableCell,{className:k.textSize11},"By signing below, I certify that I participated in the course or activity described above as a teacher, and that I am entitled to claim",n.a.createElement("br",null)," the number of Illinois MCLE credit hours as described above.")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.signatureContainer},n.a.createElement(h.Typography,{className:k.signatureLabel,style:{minWidth:"123px"}},"Attorney Signature:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeParticipantSignature)&&!Object(x.isEmpty)(null===$||void 0===$?void 0:$.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===$||void 0===$?void 0:$.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),n.a.createElement(h.Box,{className:k.dateContainer},n.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}})))))),!w&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,{style:{display:"flex",padding:"0 14px"}},n.a.createElement(h.TableCell,{className:k.textSize11,style:{textAlign:"right",padding:"5px 0px 0px 14px"}},"Attorney's participation",n.a.createElement("br",null),"method:"),n.a.createElement(h.TableCell,{style:{width:"17%",height:"0%",textOverflow:"unset"}},n.a.createElement("img",{alt:"circle",src:(null===$||void 0===$?void 0:$.ilLawParticipationMethod)===Ge?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),n.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"14px 0 14px 5px"}},"Live Faculty in Room"),n.a.createElement(h.TableCell,{style:{width:"17%",height:"0%",textOverflow:"unset"}},n.a.createElement("img",{alt:"circle",src:(null===$||void 0===$?void 0:$.ilLawParticipationMethod)===qe?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),n.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"5px 0 0 5px"}},"Live Video/ Audio",n.a.createElement("br",null),"Format"),n.a.createElement(h.TableCell,{style:{width:"17%",height:"0%",textOverflow:"unset"}},n.a.createElement("img",{alt:"circle",src:(null===$||void 0===$?void 0:$.ilLawParticipationMethod)===Me?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),n.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"5px 0 5px 5px"}},"Recorded Video/Audio",n.a.createElement("br",null),"Format")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.textSize11,style:{flex:"1 1 32%",padding:"10px 0px 0px 14px"}},"Attorney Attended:"),n.a.createElement(h.TableCell,{style:{width:"9%",height:"0%",padding:"8px 14px 0px 0px",textOverflow:"unset",flex:"1 1 9%"}},n.a.createElement("img",{alt:"circle",src:we?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),n.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"0px",flex:"1 1 30%"}},"Entire Course",n.a.createElement("br",null),"Attendance"),n.a.createElement(h.TableCell,{style:{width:"9%",height:"0%",padding:"8px 0px 0px 0px",textOverflow:"unset"}},n.a.createElement("img",{alt:"circle",src:we?"/images/logos/unshaded_circle.png":"/images/logos/shaded_circle.png"})),n.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"0px"}},"Partial Course Attendance (only actual attendance or",n.a.createElement("br",null),"participation earns credit)")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 14px"}},n.a.createElement("hr",null))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 53px"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},n.a.createElement(h.Box,{className:k.infoContainer},"Illinois uses a\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"60"),"-minute hour.")),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Total CLE credit earned must be rounded down to the nearest quarter hour."),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Only actual attendance or participation earns credit."))),n.a.createElement(h.TableRow,{style:{display:"flex",width:"90%",justifySelf:"center"}},n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{paddingLeft:"65px",paddingBottom:"0px"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},"TOTAL General Credit:"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px"}},"\xa0"),n.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},n.a.createElement(h.Typography,{className:k.styleCredit},ie)),n.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0 200px"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},"Professional Responsibility Credit Breakdown:"),n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},"Diversity/Inclusion:"),n.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"45px"}},ne)),n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},"Mental Health/Substance Abuse:"),n.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"45px"}},ae)),n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},"All other Professional Responsibility areas:"),n.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"45px"}},oe)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 65px"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},"TOTAL Professional Responsibility Credit:"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px"}},"\xa0"),n.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},n.a.createElement(h.Typography,{className:k.styleCredit},re)),n.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{display:"flex",padding:"2px 65px"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},n.a.createElement(h.Box,{className:k.infoContainer},"TOTAL MCLE CREDIT EARNED,\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt",color:"red"}},"INCLUDING"),"\xa0PROFESSIONAL ",n.a.createElement("br",null)),"RESPONSIBILITY CREDIT:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0 65px"}},n.a.createElement(h.Box,{className:k.infoContainer},n.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"194px"}},"(This number cannot be more than the Total General Credits above.)"),n.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"123px"}},ie)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 14px"}},n.a.createElement(h.Typography,{className:k.textSize11},"By signing below, I certify that the MCLE Board has accredited the course identified above. I have prepared this certificate"),n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer},"in compliance with MCLE Rule\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"795"),"(a)(8) which requires the provider to maintain an attendance list for three years and issue attendance")),n.a.createElement(h.Typography,{className:k.textSize11},"certificates to attorneys who attended the course."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 14px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.signatureContainer},n.a.createElement(h.Typography,{className:k.signatureLabel},"Provider Representative Signature:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeValidatorSignatureLine)&&void 0!==(null===j||void 0===j?void 0:j.validatorSignatureId)&&0!==(null===j||void 0===j?void 0:j.validatorSignatureId)&&n.a.createElement("img",{alt:"signature",src:null===j||void 0===j?void 0:j.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto"}}))),n.a.createElement(h.Box,{className:k.dateContainer},n.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}},je))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 14px"}},n.a.createElement("hr",null))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12pt",padding:"0px 14px"}},"SECTION B: ATTORNEY COMPLETES THIS SECTION")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item",letterSpacing:"0.1pt"}},"Attorneys are responsible for their own recordkeeping. Keep this attendance record for three years after the relevant two-year",n.a.createElement("br",null)," reporting period ends."),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item",letterSpacing:"0.1pt"}},"Do not submit this form to the Illinois MCLE Board. If you are audited by the Illinois MCLE Board, you will need to submit"),n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer},"this form. MCLE Rule\xa0",n.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"796"),"(f)(1).")),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item",letterSpacing:"0.1pt"}},"If approved for professional responsibility, the total credit claimed cannot exceed the Total MCLE Credit."),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item",letterSpacing:"0.1pt"}},"To avoid late fees, you must report your MCLE compliance directly to the MCLE Board before the deadline in MCLE Rule 796.",n.a.createElement("br",null),"Report online at"," ",n.a.createElement(Ht.Link,{style:{textDecoration:"underline"},to:"#"},"www.mcleboard.org"),". Providers do not report your credits to the MCLE Board."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 14px"}},n.a.createElement(h.Typography,{className:k.textSize11},"By signing below, I certify that I participated in the course or activity described above, and that I am entitled to claim the number of",n.a.createElement("br",null)," Illinois MCLE credit hours as detailed above."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.signatureContainer},n.a.createElement(h.Typography,{className:k.signatureLabel,style:{minWidth:"123px"}},"Attorney Signature:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeParticipantSignature)&&!Object(x.isEmpty)(null===$||void 0===$?void 0:$.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===$||void 0===$?void 0:$.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),n.a.createElement(h.Box,{className:k.dateContainer},n.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),n.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}})))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"right"}},n.a.createElement(h.Typography,{className:k.textSize10},w?"IL MCLE ".concat(le?"Form 10a2":"Form 10a1"," \u2013 revised 07/01/2017"):"MCLE Board_Revised 07/01/2017"))))),w&&n.a.createElement(h.Table,{className:k.instructorTable},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleForm4},le?"Form 10a2":"Form 10a1"," - Worksheet")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{padding:0}},n.a.createElement(h.Typography,{className:k.textSize20b},"ILLINOIS ACCREDITED MCLE COURSE"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{display:"flex",padding:"3px 14px"}},n.a.createElement(h.Typography,{className:k.textSize12b,style:{margin:"0 auto"}},n.a.createElement(h.Box,{className:k.infoContainer},"TEACHING CLE CALCULATION WORKSHEET\xa0",!Object(x.isEmpty)(ce)&&n.a.createElement(n.a.Fragment,null,"--\xa0",n.a.createElement(h.Typography,{className:k.darkOrange,style:{fontSize:"12pt",fontWeight:"bolder"}},ce)))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12pt",padding:"3px 14px"}},"PROVIDER COMPLETES THIS WORKSHEET")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 0px 14px 14px"}},n.a.createElement(h.Typography,{className:k.textSize12b},"Course approved for GENERAL CREDIT: Calculation of MCLE Teaching Credit"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 2px 0px 36px "}},n.a.createElement(h.Typography,{className:k.textSize11},"In Illinois the following requirements apply:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 2px 0px 53px "}},le&&n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Panelist teacher credit is based on the actual presentation time divided by the number of teachers, which becomes the teaching",n.a.createElement("br",null),"attorney's Presentation Time. It does not matter if the attorney presented with others who were not Illinois licensed",n.a.createElement("br",null),"attorneys, or that the other teachers were not attorneys."),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Illinois is a 60-minute state."),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Total CLE credit must be rounded down to the nearest quarter hour."),!le&&n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Teacher credit is based on the accredited CLE Presentation Time."),n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},n.a.createElement(h.Box,{className:k.infoContainer},"Teachers\xa0",n.a.createElement(h.Typography,{className:k.styleBold,style:{fontSize:"11pt",fontStyle:le?"italic":"normal"}},"cannot"),"\xa0earn attendance time for their",le?" non-presentation time on the panel.":" presentation.")),!le&&n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Please calculate Presentation and Preparation Time in minutes to maximize the credit hours the attorney will earn."),le&&n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Presentation and Preparation Time should be calculated in minutes to maximize the credit hours the attorney will earn."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"15px 19px 0px 96px"}},n.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},n.a.createElement(h.Typography,{className:k.textSize11b},"Presentation Time (minutes)",le&&n.a.createElement(n.a.Fragment,null,"Course/Session time divided by number of teachers")),le?n.a.createElement(h.Typography,{className:k.textSize11},"(Example: if there are 3 teachers, a presentation time of 60 minutes is",n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"divided by 3 = 20 minutes)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":me))):n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer},"(Example:\xa0",n.a.createElement(h.Typography,{className:k.textSize11b},"the course is approved for 1.25 hours of CLE credit."),"\xa0If the course began at"),n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"9:30 a.m. and ended at 10:45 a.m., the Presentation Time is 75 minutes)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":me)))),n.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},n.a.createElement(h.Typography,{className:k.textSize11b},"Preparation Time (minutes): Six times Presentation Time"),le?n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: Six times 20 minutes = 120 minutes)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ye))):n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: Six times 75 minutes = 450 minutes)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ye)))),n.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},n.a.createElement(h.Typography,{className:k.textSize11b},"Presentation + Preparation Time (minutes)"),le?n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: 20 minutes Presentation Time + 120 minutes Preparation Time = 140 ",n.a.createElement("br",null),"minutes)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ge))):n.a.createElement(h.Typography,{className:k.textSize11},n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: 75 minutes Presentation Time + 450 minutes Preparation Time = 525 ",n.a.createElement("br",null),"minutes)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ge)))),n.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},n.a.createElement(h.Typography,{className:k.textSize11b},"TOTAL MCLE Teaching Credit ",n.a.createElement("br",null),"Line 3 above divided by 60 and rounded down to nearest quarter hour"),le?n.a.createElement(h.Typography,{className:k.textSize11},"(Example: 140 minutes divided by 60 minutes = 2.33. If a fraction, round down to",n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"nearest quarter hour = 2.25 hours)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},be))):n.a.createElement(h.Typography,{className:k.textSize11},"(Example: 525 minutes divided by 60 minutes = 8.75. If a fraction, round down to",n.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"nearest quarter hour = 8.75 hours)",n.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},be)))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap},n.a.createElement(h.Typography,{className:k.styleBold,style:{fontSize:"11pt",paddingTop:"30px"}},"PROFESSIONAL RESPONSIBILITY (PR) Credit: complete this section only if the course was approved for"," ",n.a.createElement("br",null)," PR credit by the Illinois Supreme Court Commission on Professionalism"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 58px"}},n.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Professional responsibility credit is included in the Total MCLE Teaching Credit. The maximum credit earned by a teaching",n.a.createElement("br",null)," attorney cannot be more than the Total MCLE Teaching Credit above."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"14px 120px"}},n.a.createElement(h.Typography,{className:k.textSize12},"This course was approved by the Illinois Supreme Court Commission on Professionalism for:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"10px 154px 0px 154px"}},n.a.createElement(h.Typography,{className:k.textSize12,style:{flex:"1"}},n.a.createElement("img",{alt:"check",src:"0"===ne?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Diversity and Inclusion"),n.a.createElement(h.Typography,{className:k.textSize12,style:{flex:"1"}},n.a.createElement("img",{alt:"check",src:"0"===ae?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Mental Health and Substance Abuse"),n.a.createElement(h.Typography,{className:k.textSize12,style:{flex:"1"}},n.a.createElement("img",{alt:"check",src:"0"===oe?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Other PR credit (ethics, civility or professionalism)"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"14px 235px"}},n.a.createElement(h.Typography,{className:k.textSize12,style:{letterSpacing:"0.23pt"}},"Separate certificates must be completed for each area of PR credit taught."))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},n.a.createElement(h.Typography,{className:k.textSize11b},"1PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divLabelContainer},n.a.createElement(h.Box,{className:k.divLabelValue},n.a.createElement(h.Typography,{className:k.textSize11b},"Presentation Time PR Credit (minutes)"),le?n.a.createElement(h.Typography,{className:k.textSize11},"(Example: if 30 minutes of a 60 minute course is approved for professional ",n.a.createElement("br",null),"responsibility, and there are 3 panelist teachers, a presentation time of 30 ",n.a.createElement("br",null),"minutes is divided by 3 = 10 minutes)"):n.a.createElement(h.Typography,{className:k.textSize11},"(Example: if 30 minutes of a 75 minute course is approved for PR,",n.a.createElement("br",null),"the Presentation Time is 30 minutes)"))),n.a.createElement(h.Box,{className:k.divFieldContainer},n.a.createElement(h.Box,{className:k.divFieldValue},"0"===re||0===ge?"":Ee))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},n.a.createElement(h.Typography,{className:k.textSize11b},"2PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divLabelContainer},n.a.createElement(h.Box,{className:k.divLabelValue},n.a.createElement(h.Typography,{className:k.textSize11b},"Preparation Time PR Credit (minutes): Six times Presentation Time"),le?n.a.createElement(h.Typography,{className:k.textSize11},"(Example: Six times 10 minutes = 60 minutes)"):n.a.createElement(h.Typography,{className:k.textSize11},"(Example: Six times 30 minutes = 180 minutes)"))),n.a.createElement(h.Box,{className:k.divFieldContainer},n.a.createElement(h.Box,{className:k.divFieldValue},"0"===re||0===ge?"":Ie))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},n.a.createElement(h.Typography,{className:k.textSize11b},"3PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divLabelContainer},n.a.createElement(h.Box,{className:k.divLabelValue},n.a.createElement(h.Typography,{className:k.textSize11b},"Presentation + Preparation Time (minutes)"),le?n.a.createElement(h.Typography,{className:k.textSize11},"(Example: 10 minutes Presentation Time + 60 minutes Preparation Time =",n.a.createElement("br",null),"70 minutes)"):n.a.createElement(h.Typography,{className:k.textSize11},"(Example: 30 minutes Presentation Time + 180 minutes Preparation Time =",n.a.createElement("br",null),"210 minutes)"))),n.a.createElement(h.Box,{className:k.divFieldContainer},n.a.createElement(h.Box,{className:k.divFieldValue},"0"===re||0===ge?"":Oe))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},n.a.createElement(h.Typography,{className:k.textSize11b},"4PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},n.a.createElement(h.Box,{className:k.divStyle},n.a.createElement(h.Box,{className:k.divLabelContainer},n.a.createElement(h.Box,{className:k.divLabelValue},n.a.createElement(h.Typography,{className:k.textSize11b},"TOTAL MCLE PR Teaching Credit",n.a.createElement("br",null),"Line 3PR divided by 60 and rounded down to nearest quarter hour"),le?n.a.createElement(h.Typography,{className:k.textSize11},"(Example: 70 minutes divided by 60 minutes = 1.16. If a fraction, round down",n.a.createElement("br",null),"to nearest quarter hour = 1.0 hour)"):n.a.createElement(h.Typography,{className:k.textSize11},"(Example: 210 minutes divided by 60 minutes = 3.5. If a fraction, round down",n.a.createElement("br",null),"to nearest quarter hour = 3.5 hour)"))),n.a.createElement(h.Box,{className:k.divFieldContainer},n.a.createElement(h.Box,{className:k.divFieldValue},Ce))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{textAlign:"right"}},n.a.createElement(h.Typography,{className:k.textSize10},"IL MCLE ",le?"Form 10a2":"Form 10a1"," \u2013 revised 07/01/2017"))))))},Zt=i(40),Xt={LiveFaculty:["College Course","Committee and Firm Meetings","Conference","Group Live","Independent Study","Live Classroom","Mock Trial","Moot Court","Officer/Committee Member","Peer Review","Pro Bono","Professional Examinations","Publication","Reading of Professional Journals/Publication","Research","Specialist Committee","Structured Coaching/Mentoring","Writing"],LiveVideoAudio:["Digital Video Disc with group participation","Group Internet-Based","Live Satellite Broadcast","Live Simultaneous Videoconference","Simultaneous Webcast","Teleconference","Video Replay (group viewing of videotaped program)","Videoconference","Videoconference Approved for Newly Admitted Attorneys","Webconference","Webinar"],RecordedVideoAudio:["Audio CD","Audio File","Audiotape","CD-ROM (audio/video)","Compact Disc (audio only)","Digital Video Disc","Distant Learning","Online Audio","Online Course","Online Video","Self Study","Subscription","Video CD","Video File (Vodcast, etc.)","Videotape (for individual viewing)"]},ei={Format1:["College Course","Group Live","Live Classroom","Committee and Firm Meetings","Conference"],Format2:["Videoconference Approved for Newly Admitted Attorneys","Live Simultaneous Videoconference"],Format3:["Group Internet-Based","Live Satellite Broadcast","Simultaneous Webcast","Teleconference","Videoconference","Webconference","Webinar"],Format5:["Audio CD","Audio File","Audiotape","CD-ROM (audio/video)","Compact Disc (audio only)","Digital Video Disc","Digital Video Disc with group participation","Online Audio","Online Course","Online Video","Video CD","Video File (Vodcast, etc.)","Video Replay (group viewing of videotaped program)","Videotape (for individual viewing)"]},ti={Group:["Live Satellite Broadcast","Teleconference","Videoconference","Video Replay (group viewing of videotaped program)","Live Classroom","Simultaneous Webcast","Videoconference Approved for Newly Admitted Attorneys","Mock Trial","Pro Bono","Moot Court","Live Simultaneous Videoconference","Digital Video Disc with group participation","CommitteeAnCommittee and Firm MeetingsdFirmMeetings","Group Live","Group Internet-Based","College Course","Officer/Committee Member","Peer Review","Conference","Webinar"]},ii=Object(V.makeStyles)((function(e){e.spacing;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},styleBorder:{border:"#000000 1px solid"},styleForm4:{fontWeight:"bold",textAlign:"right",fontSize:"10pt",padding:"2px 14px"},styleTitleForm:{fontWeight:"bold",textAlign:"center",fontSize:"20pt"},styleTitleUnderlineForm:{fontWeight:"bold",textDecoration:"underline"},textSize9:{fontSize:"9pt",fontFamily:"Arial"},textSize10:{fontSize:"10pt",fontFamily:"Arial"},textSize10b:{fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold"},textSize11:{fontSize:"11pt",fontFamily:"Arial"},textSize11b:{fontSize:"11pt",fontWeight:"bolder",fontFamily:"Arial"},textSize12:{fontSize:"12pt",fontFamily:"Arial"},textSize12b:{fontSize:"12pt",fontWeight:"bold",fontFamily:"Arial"},textSize13:{fontSize:"13pt",fontFamily:"Arial"},textSize14:{fontSize:"14pt",fontFamily:"Arial"},textSize18:{fontSize:"18pt",fontFamily:"Arial"},textSize20:{fontSize:"20pt",fontFamily:"Arial"},textSize25:{fontSize:"25pt",fontFamily:"Arial"},table:{height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"890px !important",fontFamily:"Arial"},instructorTable:{width:"100%",pageBreakBefore:"always",fontFamily:"Arial",paddingLeft:"20px",paddingRight:"20px"},styleNoWrap:{whiteSpace:"nowrap"},styleItalic:{fontStyle:"italic",fontFamily:"Arial"},styleBold:{fontWeight:"bold",fontFamily:"Arial"},dateField:{width:"200px",fontWeight:600,textAlign:"center",marginRight:"30px"},signatureField:{width:"350px",fontWeight:600,textAlign:"center",marginLeft:"15px",marginRight:"15px"},label:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",fontWeight:"bolder"},dataLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",minWidth:"180px",textAlign:"right"},infoContainer:{display:"flex"},infoLabel:{flex:0,marginRight:"10px",minWidth:"240px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial"},tdLabel:{marginRight:"24px",minWidth:"156px",textAlign:"right"},infoDescription:{fontSize:"10.5pt",minWidth:"500px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},tdInfoDescription:{borderBottom:"#000000 1px solid",fontSize:"10.5pt",minWidth:"500px",whiteSpace:"pre-wrap",textAlign:"left"},divStyle:{display:"flex",justifyContent:"stretch",width:"100%"},listStyleType:{listStyleType:"none"},tdPRStyle:{verticalAlign:"top",width:"10%",paddingRight:"0.5em",textAlign:"center"},divLabelContainer:{display:"flex",flexBasis:"60%",alignItems:"flex-start"},divLabelValue:{paddingRight:"24px",minWidth:"180px",textAlign:"left"},divFieldContainer:{display:"flex",flexBasis:"15%",alignItems:"flex-start"},divFieldValue:{flex:1,whiteSpace:"pre-wrap",textAlign:"right",fontSize:"11pt",fontFamily:"Arial"},darkOrange:{color:"darkorange",fontFamily:"Arial"},divDataContainer:{display:"flex",flexBasis:"50%",alignItems:"flex-start"},divDataV2Container:{display:"flex",flexBasis:"50%",fontFamily:"Arial"},divDataV3Container:{display:"flex",flexBasis:"110%",fontFamily:"Arial"},divDataValue:{paddingRight:"10px",minWidth:"250px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial"},divDataV2Value:{paddingRight:"10px",minWidth:"183px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial"},styleFlexWithBorder:{flex:1,fontSize:"10.5pt",fontFamily:"Arial"},styleFlexWithBorderAttNum:{flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",minHeight:"21.11px",fontSize:"11pt",fontFamily:"Arial"},signatureContainer:{display:"flex",flexBasis:"70%",alignItems:"flex-end",paddingRight:"8px"},signatureLabel:{paddingRight:"8px",minWidth:"180px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial"},dateContainer:{display:"flex",flexBasis:"30%",alignItems:"flex-end"},dateLabel:{paddingRight:"8px",fontSize:"11pt",fontFamily:"Arial"},signatureSize:{width:150,height:"auto"},styleCredit10Left:{textAlign:"left",fontSize:"10pt",fontFamily:"Arial"},styleCredit10:{textAlign:"right",fontSize:"10pt",fontFamily:"Arial"},styleCredit:{textAlign:"right",fontSize:"11pt",fontFamily:"Arial"},divDetails:{"@media print":{size:"letter !important",zoom:"75% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"},"& td":{height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"890px !important",fontFamily:"Arial",border:"none"}}})})),ri=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w,P,T,A,k,D,L,J,F,B=e.certificate,R=e.isInstructor,U=e.licenseId,G=e.sessionDetails,q=e.userId,M=e.isBlank,z=ii(),W=null!==(t=null===G||void 0===G?void 0:G.courseTitle)&&void 0!==t?t:"",V=null!==(i=null===G||void 0===G?void 0:G.title)&&void 0!==i?i:"",_=(null===G||void 0===G?void 0:G.startDate)?Q()(null===G||void 0===G?void 0:G.startDate).format("MMMM DD, YYYY"):"",Y=(null===G||void 0===G?void 0:G.endDate)?Q()(null===G||void 0===G?void 0:G.endDate).format("MMMM DD, YYYY"):"",$=Y&&Y!==_?"".concat(_," - ").concat(Y):_,H=(null===G||void 0===G?void 0:G.startTime)?null===G||void 0===G?void 0:G.startTime:"",K=(null===G||void 0===G?void 0:G.endTime)&&(null===G||void 0===G?void 0:G.endTime)!==(null===G||void 0===G?void 0:G.startTime)?"".concat(null===G||void 0===G?void 0:G.endTime):"",Z="pm"===(null!==(r=null===H||void 0===H?void 0:H.split(" ")[1])&&void 0!==r?r:"").toLowerCase()&&"am"===(null!==(a=null===K||void 0===K?void 0:K.split(" ")[1])&&void 0!==a?a:"").toLowerCase()?Object(Zt.d)(null===G||void 0===G?void 0:G.startDate,null===G||void 0===G?void 0:G.endDate,H,K):Object(Zt.k)(H,K),X=null!==(o=null===G||void 0===G||null===(s=G.location)||void 0===s?void 0:s.name)&&void 0!==o?o:"",ee=null!==(l=null===G||void 0===G||null===(c=G.location)||void 0===c?void 0:c.city)&&void 0!==l?l:"",te=null!==(d=null===G||void 0===G||null===(u=G.location)||void 0===u?void 0:u.state)&&void 0!==d?d:"",ie=null!==(v=null===G||void 0===G?void 0:G.provider)&&void 0!==v?v:"",re=null!==(f=null===G||void 0===G?void 0:G.courseFormat)&&void 0!==f?f:"",ne="";ne=Object(x.isEmpty)(ee)&&Object(x.isEmpty)(te)?"".concat(X):"".concat(X," ").concat((null===B||void 0===B?void 0:B.includeCity)||(null===B||void 0===B?void 0:B.includeState)?"(".concat((null===B||void 0===B?void 0:B.includeCity)?ee:"").concat((null===B||void 0===B?void 0:B.includeState)&&!Object(x.isEmpty)(te)?(null===B||void 0===B?void 0:B.includeCity)&&!Object(x.isEmpty)(ee)?", ".concat(te):te:"",")"):"");var ae=M?new p.le({firstName:"",lastName:"",middleName:""}):(null===G||void 0===G?void 0:G.sessionInstructors)&&(null===G||void 0===G?void 0:G.sessionInstructors.find((function(e){return e.userId===q}))),oe=M?new p.le({firstName:"",lastName:"",middleName:""}):(null===G||void 0===G?void 0:G.sessionParticipants)&&(null===G||void 0===G?void 0:G.sessionParticipants.find((function(e){return e.userId===q}))),se=R?ae:oe,le="".concat(se.firstName," ").concat((null===B||void 0===B?void 0:B.includeMiddleName)?"".concat(se.middleName):""," ").concat(se.lastName),ce="".concat((null===B||void 0===B?void 0:B.includeBarNumber)&&null!==(m=null===se||void 0===se?void 0:se.licenseBarNumber)&&void 0!==m?m:""),ue=function(e){var t,i=null===G||void 0===G||null===(t=G.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===de})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(se.completionDate);return r||n||a?"0.00":e&&e>0?Number.isInteger(e)?e.toFixed(2):parseFloat(e.toFixed(2)).toString():"0.00"},he=null===G||void 0===G||null===(y=G.sessionLicenses)||void 0===y||null===(g=y.find((function(e){return e.licenseId===de})))||void 0===g?void 0:g.sessionLicenseCredits,ve=null===G||void 0===G||null===(b=G.sessionLicenses)||void 0===b||null===(S=b.find((function(e){return e.licenseId===de})))||void 0===S?void 0:S.sessionLicenseProperties,pe=null!==(E=null===ve||void 0===ve||null===(I=ve.find((function(e){return 5===e.propertyId})))||void 0===I?void 0:I.propertyValue)&&void 0!==E?E:"",fe=ue(Object(x.sum)(null===he||void 0===he?void 0:he.map((function(e){return e.creditValue})))),me=ue(Object(x.sum)(null===he||void 0===he?void 0:he.filter((function(e){return e.creditId!==Fe})).map((function(e){return e.creditValue})))),ye=ue(null===he||void 0===he||null===(O=he.find((function(e){return e.creditId===De})))||void 0===O?void 0:O.creditValue),ge=ue(null===he||void 0===he||null===(C=he.find((function(e){return e.creditId===Le})))||void 0===C?void 0:C.creditValue),be=ue(null===he||void 0===he||null===(j=he.find((function(e){return e.creditId===Je})))||void 0===j?void 0:j.creditValue),Se=null===se||void 0===se||null===(w=se.userLicenseCreditValues)||void 0===w?void 0:w.filter((function(e){return e.licenseId===U})),Ee=ue(Object(x.sum)(null===Se||void 0===Se?void 0:Se.map((function(e){return e.value})))),Ie=ue(Object(x.sum)(null===Se||void 0===Se?void 0:Se.filter((function(e){return e.creditId!==Fe})).map((function(e){return e.value})))),Oe=ue(null===Se||void 0===Se||null===(P=Se.find((function(e){return e.creditId===De})))||void 0===P?void 0:P.value),Ce=ue(null===Se||void 0===Se||null===(T=Se.find((function(e){return e.creditId===Le})))||void 0===T?void 0:T.value),xe=ue(null===Se||void 0===Se||null===(A=Se.find((function(e){return e.creditId===Je})))||void 0===A?void 0:A.value),je=null===se||void 0===se||null===(k=se.userLicensePropertyValues)||void 0===k?void 0:k.filter((function(e){return e.licenseId===de})),we=R?function(){if(R){if(null===je||void 0===je?void 0:je.find((function(e){return e.propertyId===Re&&null!==e.valueChar})))return"PANELIST";if(null===je||void 0===je?void 0:je.find((function(e){return e.propertyId===Be&&null!==e.valueChar})))return"INDIVIDUAL"}return"INDIVIDUAL"}():"",Pe=function(e){var t,i=null===G||void 0===G||null===(t=G.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===de})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(se.completionDate);return r||n||a?"0.00":e||"0.00"},Te=Pe(null===je||void 0===je||null===(D=je.find((function(e){return e.propertyId===Be})))||void 0===D?void 0:D.valueChar),Ae=Pe(null===je||void 0===je||null===(L=je.find((function(e){return e.propertyId===Re})))||void 0===L?void 0:L.valueChar),Ne=void 0!==(null===je||void 0===je?void 0:je.find((function(e){return e.propertyId===Ue})))?Pe(null===je||void 0===je||null===(J=je.find((function(e){return e.propertyId===Ue})))||void 0===J?void 0:J.valueChar):"",ke=function(e){var t=e-Math.floor(e);return t=t>=.75?.75:t>=.5?.5:t>=.25?.25:0,t=Math.floor(e)+t,(Math.round(100*t)/100).toFixed(2).toString()},ze=Number(Te)+Number(Ae),We=Object(x.isEmpty)(Ne)?6*ze:Number(Ne),Ve=ze+We,_e=ke(Number(M?fe:Ee)),Ye=Number(Ie)/Number(Ee),$e=Math.round(Ye*ze),He=Math.round(Ye*We),Ke=Math.round(Ye*Ve),Qe=ke(Number(M?me:Ie)),Ze=se.completionDate?Q()(se.completionDate).format("MMMM DD, YYYY"):"",Xe=!M&&(null===G||void 0===G?void 0:G.isIndividualSessionDateAllowed)?Ze:$,et=null!==(F=null===B||void 0===B?void 0:B.validatorPhoneNumber)&&void 0!==F?F:"",tt=!!M||Number(Ee)>=Number(fe);return n.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",style:{width:"100%",alignItems:"center"},className:z.divDetails},n.a.createElement(h.Table,{id:"tblILCertificate",style:{width:"100%",pageBreakAfter:"auto"},className:z.table},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleTitleForm,style:{padding:0}},n.a.createElement(h.Typography,{className:z.textSize25},"ILLINOIS ACCREDITED MCLE"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleTitleForm,style:{display:"flex",padding:"0px 8px"}},R&&n.a.createElement(h.Typography,{className:z.textSize14,style:{margin:"0 auto"}},n.a.createElement(h.Box,{className:z.infoContainer},"TEACHING CERTIFICATE\xa0",!Object(x.isEmpty)(we)&&n.a.createElement(n.a.Fragment,null,"-- ",we))),!R&&n.a.createElement(h.Typography,{className:z.textSize18,style:{margin:"0 auto"}},"ATTENDANCE CERTIFICATE"))),R&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.textSize10,style:{textAlign:"left",padding:"3px 14px"}},n.a.createElement(h.Box,{style:{display:"flex"}},"Any Illinois attorney who qualifies as a teacher at a CLE-approved course or session under MCLE Rule 795(d)(5), ",n.a.createElement("br",null),"can be issued teaching credit. The MCLE Board also permits issuing teaching credit to Illinois attorneys who teach"),n.a.createElement(h.Box,{style:{display:"flex"}},"at qualified CLE bar meetings under MCLE Rule 795(d)(3). MCLE credit includes: Presentation time plus"," ",n.a.createElement("br",null),"preparation time (six times the presentation time)."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"10px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Provider Name:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},ie))))),!R&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Provider Phone Number:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},et))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"PCAM Course ID:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},pe))))),!R&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Credit Type:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},"Course"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Title:"),n.a.createElement(h.Typography,{className:z.infoDescription},W," ",R||V===W?"":"(".concat(V,")"))))),R&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Credit Type:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},"Course"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divDataContainer},n.a.createElement(h.Typography,{className:z.divDataValue},"Date:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder},Xe)),n.a.createElement(h.Box,{className:z.divDataV2Container},n.a.createElement(h.Typography,{className:z.textSize11,style:{paddingRight:"10px",textAlign:"right"}},"Location:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"}},(null===B||void 0===B?void 0:B.includeLocation)?"".concat(ne):""))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divDataContainer},n.a.createElement(h.Typography,{className:z.divDataValue},"Attorney Name:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},le)),n.a.createElement(h.Box,{className:z.divDataV2Container},n.a.createElement(h.Typography,{className:z.textSize11,style:{paddingRight:"10px",textAlign:"right"}},"ARDC #:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"}},ce))))),R&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Session Title:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},W!==V?V:W))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Session Time Duration:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},Z)))))),R&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.textSize12,style:{fontWeight:"bolder",padding:"5px 14px"}},"From MCLE TEACHING CREDIT CALCULATION WORKSHEET")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.textSize12,style:{fontWeight:"bolder",padding:"0px 0px 0px 73px"}},"TOTAL MCLE Teaching Credit")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.textSize10,style:{flex:"70%",padding:"0px 0px 0px 73px"}},"(from CLE Calculation Worksheet, Line 4)"),n.a.createElement(h.TableCell,{style:{flex:"30%",padding:"2px"}},n.a.createElement(h.Typography,{className:z.styleCredit10Left},M?fe:Ee))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"8px"}})),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"0px 0px 0px 73px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.textSize10,style:{fontWeight:"bolder"}},"Including TOTAL Professional Responsibility Credits")))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.textSize10,style:{flex:"70%",padding:"0px 0px 0px 73px"}},"(from CLE Calculation Worksheet, Line 4PR)"),n.a.createElement(h.TableCell,{style:{flex:"30%",padding:"2px"}},n.a.createElement(h.Typography,{className:z.styleCredit10Left},M?me:Ie))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"10px 95px"}},n.a.createElement(h.Box,{style:{padding:"10px 0px 15px 62px",border:"2px solid",maxWidth:"290px"}},n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Mental Health / Substance Abuse")),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Diversity / Inclusion")),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Ethics, Civility, Professionalism"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divDataV3Container},n.a.createElement(h.Typography,{className:z.divDataV2Value,weight:"bold"},"Provider Name:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder},ie)),n.a.createElement(h.Box,{className:z.divDataV2Container},n.a.createElement(h.Typography,{className:z.textSize11,style:{paddingRight:"10px",textAlign:"right"}},"Date:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"},weight:"bold"},Xe))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divDataContainer},n.a.createElement(h.Typography,{className:z.divDataV2Value,weight:"bold"},"Provider Phone Number:"),n.a.createElement(h.Typography,{className:z.styleFlexWithBorder},et))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleTitleUnderlineForm,style:{fontSize:"11pt",padding:"15px 30px 0px 30px"}},"ATTORNEY INFORMATION")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"By Court Rule a repeat presentation of the same material counts at one-half the original credits. No further hours may be earned for",n.a.createElement("br",null)," additional presentations of the same material. MCLE Rule 795(d)(5)."),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Attorneys are responsible for their own recordkeeping. Do not submit this form to the Illinois MCLE Board. In the event that you are"),n.a.createElement(h.Typography,{className:z.textSize9},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,null,"audited by the Illinois MCLE Board, you will be required to submit this form. MCLE Rule 796(f)(1)."))),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"If approved for professional responsibility, the total credit claimed cannot exceed the Total MCLE Teaching Credit above."),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Your credit from this activity will be reported to the MCLE Board. Providers have until the 15th day of the month following the month",n.a.createElement("br",null),"in which you taught this course to report your credit to the MCLE Board. Before teaching credits can be applied to your transcript,",n.a.createElement("br",null),"you must verify the number of times you have taught this activity on your MCLE profile. To avoid late fees, your transcript must.",n.a.createElement("br",null),"reflect your MCLE compliance before the deadlines in MCLE Rule 796. Verify these credits and view your transcript online at",n.a.createElement("br",null),"www.mcleboard.org.")))),!R&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Attorney's Participation Method:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},(null===se||void 0===se?void 0:se.ilLawParticipationMethod)===Ge||Xt.LiveFaculty.includes(re)?"Live Faculty in Room":(null===se||void 0===se?void 0:se.ilLawParticipationMethod)===qe||Xt.LiveVideoAudio.includes(re)?"Live Video/ Audio Format":(null===se||void 0===se?void 0:se.ilLawParticipationMethod)===Me||Xt.RecordedVideoAudio.includes(re)?"Recorded Video/Audio Format":""))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.infoLabel},"Attorney Attended:"),n.a.createElement(h.Typography,{className:z.infoDescription},n.a.createElement(h.Box,{className:z.infoContainer},tt?"Entire Course Attendance":"Partial Course Attendance (only actual attendance or participation earns credit)"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"10px 83px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},n.a.createElement(h.Box,{className:z.infoContainer},"Illinois uses a\xa0",n.a.createElement(h.Typography,{className:z.styleItalic,style:{fontSize:"9pt"}},"60"),"-minute hour.")),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Total CLE credit earned must be rounded down to the nearest quarter hour."),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Only actual attendance or participation earns credit."))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px 45px"}},n.a.createElement(h.Typography,{className:z.textSize11,style:{fontWeight:"bolder"}},"TOTAL General Credit:")),n.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},n.a.createElement(h.Typography,{className:z.styleCredit},M?fe:Ee)),n.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0"))),!R&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"2px 45px"}},n.a.createElement(h.Box,{style:{paddingLeft:"20px",backgroundColor:"#F5F5F5",maxWidth:"530px"}},n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:" 8px 5px"}},n.a.createElement(h.Typography,{className:z.textSize10,style:{fontWeight:"bolder"}},"Professional Responsibility Credit ",n.a.createElement("br",null)," Breakdown:")),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize10,style:{minWidth:"460px"}},"Mental Health / Substance Abuse:"),n.a.createElement(h.Typography,{className:z.styleCredit10,style:{minWidth:"25px"}},M?ge:Ce)),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize10,style:{minWidth:"460px"}},"Diversity / Inclusion:"),n.a.createElement(h.Typography,{className:z.styleCredit10,style:{minWidth:"25px"}},M?ye:Oe)),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize10,style:{minWidth:"460px"}},"Ethics, Civility, Professionalism:"),n.a.createElement(h.Typography,{className:z.styleCredit10,style:{minWidth:"25px"}},M?be:xe)))))),!R&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px 45px"}},n.a.createElement(h.Typography,{className:z.textSize10,style:{fontWeight:"bolder"}},"Total Professional Responsibility Credit:")),n.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},n.a.createElement(h.Typography,{className:z.styleCredit},M?me:Ie)),n.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{display:"flex",padding:"8px 45px 0px 45px"}},n.a.createElement(h.Typography,{className:z.textSize11,style:{fontWeight:"bolder"}},n.a.createElement(h.Box,{className:z.infoContainer},"TOTAL MCLE CREDIT EARNED,\xa0",n.a.createElement(h.Typography,{className:z.styleItalic,style:{fontWeight:"bold",fontSize:"11pt",color:"red"}},"INCLUDING"),"\xa0PROFESSIONAL RESPONSIBILITY",n.a.createElement("br",null)),"CREDIT:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"0px 45px 10px 45px"}},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,{className:z.textSize11,style:{fontWeight:"bold",paddingRight:"140px"}},"(This number cannot be more than the Total General Credits above.)"),n.a.createElement(h.Typography,{className:z.styleCredit,style:{minWidth:"123px"}},M?fe:Ee)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"5px 45px"}},n.a.createElement(h.Typography,{className:z.textSize11},"Provider is issuing this certificate in compliance with MCLE Rule 795(a)(9), 795(c)(4) or 795(d)(3), which ",n.a.createElement("br",null)," requires the provider to maintain an attendance list for three years and issue attendance certificates to attorneys ",n.a.createElement("br",null)," who attended."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleTitleUnderlineForm,style:{fontSize:"11pt",padding:"0px 45px"}},"ATTORNEY INFORMATION")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Attorneys are responsible for their own recordkeeping. Keep this attendance record for three years after the relevant two-year",n.a.createElement("br",null)," reporting period ends."),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Do not submit this form to the Illinois MCLE Board. If you are audited by the Illinois MCLE Board, you will need to submit this form."),n.a.createElement(h.Typography,{className:z.textSize9},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,null,"MCLE Rule 796(f)(1)."))),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"If approved for professional responsibility, CLE credit may be claimed in any combination of approved general and approved"),n.a.createElement(h.Typography,{className:z.textSize9},n.a.createElement(h.Box,{className:z.infoContainer},n.a.createElement(h.Typography,null,"professional responsibility credit not to exceed the Total MCLE Credit."))),n.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Please verify that these credits appear correctly on your MCLE transcript. Providers have until the 15th day of the month following",n.a.createElement("br",null),"the month in which you completed the activity to report your attendance. To avoid late fees, your transcript must reflect your MCLE",n.a.createElement("br",null),"compliance before the deadlines in MCLE Rule 796. View your transcript online at www.mcleboard.org.")))))),R&&n.a.createElement(h.Table,{className:z.instructorTable},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleTitleForm,style:{display:"flex",padding:"3px 14px"}},n.a.createElement(h.Typography,{className:z.textSize12b,style:{margin:"0 auto"}},n.a.createElement(h.Box,{className:z.infoContainer},"TEACHING CLE CALCULATION WORKSHEET")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"14px 0px 5px 14px"}},n.a.createElement(h.Typography,{className:z.textSize12b},"GENERAL CREDIT: Calculation of MCLE Teaching Credit"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"2px 2px 0px 16px "}},n.a.createElement(h.Typography,{className:z.textSize10},"In Illinois, the following requirements apply:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"2px 2px 25px 53px "}},n.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"Illinois is a 60-minute state."),n.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"Total CLE credit is rounded down to the nearest quarter hour."),n.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"CLE Presentation Time is based on the teaching session entered in PCAM."),n.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"Teachers ",n.a.createElement("b",null,"cannot")," earn attendance time for their presentation."))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"1")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"Presentation Time (minutes)"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},0===Ve?"0.00":ze))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"2")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"Preparation Time (minutes): 6x Presentation Time"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},0===Ve?"0.00":We))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"3")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"Presentation + Preparation Time (minutes)"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},0===Ve?"0.00":Ve))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"4")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"TOTAL MCLE Teaching Credit ",n.a.createElement("br",null),"Line 3 above divided by 60 and rounded down to nearest quarter hour"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},"0"===_e?"0.00":_e))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.styleBold,style:{fontSize:"11pt",paddingTop:"30px"}},"PROFESSIONAL RESPONSIBILITY (PR) Credit: completed only if the course or session taught was",n.a.createElement("br",null)," approved for PR credit by the Illinois Supreme Court Commission on Professionalism"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 18px"}},n.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item"}},"Professional responsibility credit is included in the Total MCLE Teaching Credit. The maximum credit earned by a",n.a.createElement("br",null)," teaching attorney cannot be more than the Total MCLE Teaching Credit above."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"20px 105px"}},n.a.createElement(h.Box,{style:{padding:"10px 0px 15px 62px",border:"2px solid",maxWidth:"290px"}},n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Mental Health / Substance Abuse")),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Diversity / Inclusion")),n.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},n.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Ethics, Civility, Professionalism"))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"1PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"Presentation Time PR Credit (minutes)"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},"0"===Ie||0===Ve?"0.00":$e))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"2PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"Preparation Time PR Credit (minutes): 6x Presentation Time"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},"0"===Ie||0===Ve?"0.00":He))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"3PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"Presentation + Preparation Time (minutes)"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},"0"===Ie||0===Ve?"0.00":Ke))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},n.a.createElement(h.Typography,{className:z.textSize10b},"4PR")),n.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},n.a.createElement(h.Box,{className:z.divStyle},n.a.createElement(h.Box,{className:z.divLabelContainer},n.a.createElement(h.Box,{className:z.divLabelValue},n.a.createElement(h.Typography,{className:z.textSize10b},"TOTAL MCLE PR Teaching Credit",n.a.createElement("br",null),"Line 3PR divided by 60 and rounded down to nearest quarter hour"))),n.a.createElement(h.Box,{className:z.divFieldContainer},n.a.createElement(h.Box,{className:z.divFieldValue},"0"===Qe?"0.00":Qe))))))))},ni=Object(V.makeStyles)((function(){return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},divDetails:{"@media print":{size:"letter !important",zoom:"70% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"},"& td":{border:"none"},"& *":{fontFamily:'"Times New Roman", serif'}},infoContainer:{display:"flex"},infoLabel:{flex:0,marginRight:"8px",minWidth:"125px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},infoDescription:{border:"#000000 1px solid",fontSize:"10.5pt",width:"480px",minHeight:"52px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},creditTable:{borderCollapse:"collapse"},creditTableRowCols:{height:"17px","& td":{fontSize:"14pt",padding:"0px",margin:"0px",fontWeight:500,lineHeight:"23px"},"& > :first-child":{width:"225pt",textAlign:"right",paddingRight:"10pt"},"& > :nth-child(2)":{width:"auto",textAlign:"left",paddingLeft:"10pt"}},filedName:{height:"65px",width:"440px"},signatureFieldLabel:{borderTop:"2px solid black",whiteSpace:"pre-wrap",overflowWrap:"anywhere",display:"block",width:"100%"},image:{imageRendering:"auto",objectFit:"scale-down"}})})),ai=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w,P=e.certificate,T=e.isInstructor,A=e.sessionDetails,k=e.userId,D=ni(),L=(null===A||void 0===A?void 0:A.title)!==(null===A||void 0===A?void 0:A.courseTitle)?"".concat(null===A||void 0===A?void 0:A.courseTitle," (").concat(null===A||void 0===A?void 0:A.title,")"):null===A||void 0===A?void 0:A.courseTitle,J=(null===A||void 0===A?void 0:A.startDate)?Q()(null===A||void 0===A?void 0:A.startDate).format("MM/DD/YYYY"):"",F=null!==(t=null===A||void 0===A||null===(i=A.approvalCodes)||void 0===i||null===(r=i.find((function(e){return 411===e.licenseId})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",B=null!==(a=null===A||void 0===A||null===(o=A.location)||void 0===o?void 0:o.name)&&void 0!==a?a:"",R=null!==(s=null===A||void 0===A||null===(l=A.location)||void 0===l?void 0:l.city)&&void 0!==s?s:"",U=null!==(c=null===A||void 0===A||null===(d=A.location)||void 0===d?void 0:d.state)&&void 0!==c?c:"",G=null!==(u=null===A||void 0===A?void 0:A.provider)&&void 0!==u?u:"",q="";q=Object(x.isEmpty)(R)&&Object(x.isEmpty)(U)?"".concat(B):"".concat(B," ").concat((null===P||void 0===P?void 0:P.includeCity)||(null===P||void 0===P?void 0:P.includeState)?"(".concat((null===P||void 0===P?void 0:P.includeCity)?R:"").concat((null===P||void 0===P?void 0:P.includeState)&&!Object(x.isEmpty)(U)?(null===P||void 0===P?void 0:P.includeCity)&&!Object(x.isEmpty)(R)?", ".concat(U):U:"",")"):"");var M=(null===A||void 0===A?void 0:A.sessionInstructors)&&(null===A||void 0===A?void 0:A.sessionInstructors.find((function(e){return e.userId===k}))),z=(null===A||void 0===A?void 0:A.sessionParticipants)&&(null===A||void 0===A?void 0:A.sessionParticipants.find((function(e){return e.userId===k})));w=T?M:z;var W,V,_,Y,$,H="".concat((null===P||void 0===P?void 0:P.includeBarNumber)&&null!==(v=null===(f=w)||void 0===f?void 0:f.licenseBarNumber)&&void 0!==v?v:""),K="".concat(w.firstName," ").concat((null===P||void 0===P?void 0:P.includeMiddleName)?"".concat(null!==(m=w.middleName)&&void 0!==m?m:""):""," ").concat(w.lastName),Z=w.completionDate?Q()(w.completionDate).format("MM/DD/YYYY"):"",X=(null===A||void 0===A?void 0:A.isIndividualSessionDateAllowed)?Z:J,ee=null===(y=w)||void 0===y||null===(g=y.userLicenseCreditValues)||void 0===g?void 0:g.filter((function(e){return 411===e.licenseId})),te=function(e){var t,i=null===A||void 0===A||null===(t=A.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===ve})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(w.completionDate);return r||n||a?"0.00":e&&e>0?Number.isInteger(e)?e.toFixed(2):parseFloat(e.toFixed(2)).toString():"0.00"};return $=te(null===ee||void 0===ee||null===(b=ee.find((function(e){return e.creditId===_e})))||void 0===b?void 0:b.value),Y=te(null===ee||void 0===ee||null===(S=ee.find((function(e){return e.creditId===Ve})))||void 0===S?void 0:S.value),W=te(null===ee||void 0===ee||null===(E=ee.find((function(e){return e.creditId===ze})))||void 0===E?void 0:E.value),V=te(null===ee||void 0===ee||null===(I=ee.find((function(e){return e.creditId===We})))||void 0===I?void 0:I.value),_=(parseFloat(W)+parseFloat(V)).toFixed(2),n.a.createElement(h.Box,{maxWidth:920,margin:"0 auto",style:{fontFamily:'"Times New Roman", serif !important'},className:D.divDetails},n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h4"},"KANSAS CONTINUING LEGAL EDUCATION"))),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"stretch"},n.a.createElement(h.Typography,{variant:"body1",style:{fontSize:"15pt",textAlign:"center",paddingRight:"8px"}},"301 SW. 10th Ave.",n.a.createElement("br",null),"www.kscle.org")),n.a.createElement(h.Column,{crossAxisAlignment:"stretch"},n.a.createElement(h.Typography,{variant:"body1",style:{fontSize:"15pt",textAlign:"center",paddingLeft:"8px"}},"Topeka, KS 66612",n.a.createElement("br",null),"7853688201"))),n.a.createElement(h.Box,{style:{paddingTop:"2.4em"}},n.a.createElement(h.Row,{mainAxisAlignment:"start"},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{style:{fontSize:"16pt"}},n.a.createElement("b",null,"NOTICE OF ACCREDITATION"))))),n.a.createElement(h.Box,{style:{width:"100%",padding:"5px 0px 5px 0px"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.8pt",lineHeight:"normal"}},"Kansas Continuing Legal Education has accredited the following CLE activity under Supreme Court Rule 804:"))),n.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},n.a.createElement(h.Row,null,n.a.createElement("table",{className:D.creditTable},n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"PROVIDER ID"),n.a.createElement("td",null,null!==(O=null===P||void 0===P?void 0:P.licenseProviderNumber)&&void 0!==O?O:"")),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"PROVIDER"),n.a.createElement("td",null,G)),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"ACTIVITY"),n.a.createElement("td",null,L)),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"ACTIVITY NO"),n.a.createElement("td",null,F)),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"LOCATION"),n.a.createElement("td",null,q)),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"MAXIMUM CLE HOURS"),n.a.createElement("td",null,$)),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"INCLUDED HOURS"),n.a.createElement("td",null,_," ",n.a.createElement("span",{style:{paddingLeft:"14px"}},"Ethics & Professionalism"))),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null),n.a.createElement("td",null,Y," ",n.a.createElement("span",{style:{paddingLeft:"14px"}},"Law Practice Management"))),n.a.createElement("tr",{className:D.creditTableRowCols},n.a.createElement("td",null,"DATE"),n.a.createElement("td",null,J))))),n.a.createElement(h.Box,{style:{paddingTop:"2.2em"}},n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14pt",lineHeight:"normal"}},"Attorneys will execute this affidavit and the sponsor will return the executed documents to Kansas",n.a.createElement("br",null),"Continuing Legal Education (for ",n.a.createElement("b",null,"in-state")," seminars). For ",n.a.createElement("b",null,"out-of-state")," seminars, the attorney is responsible for",n.a.createElement("br",null),"submitting the executed affidavit to Kansas Continuing Legal Education within 30 days after the seminar."))))),n.a.createElement(h.Box,{style:{width:"100%",paddingTop:"1.2em"}},n.a.createElement(h.Row,{mainAxisAlignment:"start"},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{style:{fontSize:"16pt"}},n.a.createElement("b",null,"AFFIDAVIT")))),n.a.createElement(h.Box,{style:{width:"100%",padding:"0"}},n.a.createElement(h.Divider,{style:{borderBottom:"2px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center"},n.a.createElement(h.Typography,{style:{fontSize:"16pt",fontWeight:"bold"}},"THIS AFFIDAVIT MUST BE SIGNED AND RETURNED TO REGISTER CREDIT."))),n.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal"}},n.a.createElement("b",null,"Instructions:")," Kansas attorneys and judges may claim up to the maximum number of CLE credit earned for attendance by executing and returning this ENTIRE affidavit to Kansas Continuing Legal Education.",n.a.createElement("br",null),n.a.createElement("b",null,"This credit will not be entered into Kansas Continuing Legal Education's records unless your name and Kansas Supreme Court registration number are PRINTED CLEARLY"),"and your signature appears ",n.a.createElement("br",null),"in the spaces below")))),n.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",fontWeight:"bold"}},"Hours are calculated on the actual number of minutes spent in a live classroom setting. Claiming hours",n.a.createElement("br",null)," for segments not actually attended could be a violation of Rule 8.4(c) of the Kansas Rules of",n.a.createElement("br",null)," Professional Conduct for Lawyers")))),n.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal"}},n.a.createElement("b",null,"Certification of Attendance:")," By signing below I certify that I actually attended the activity described above",n.a.createElement("br",null)," and am entitled to claim a total of ",n.a.createElement("u",null,"\xa0\xa0",$,"\xa0\xa0")," CLE credit hours, including ",n.a.createElement("u",null,"\xa0\xa0",_,"\xa0\xa0")," ethics & professionalism (EP)",n.a.createElement("br",null)," hours(s) and ",n.a.createElement("u",null,"\xa0\xa0",Y,"\xa0\xa0")," law practice management (LPM) hour(s).")))),n.a.createElement(h.Box,{className:D.infoContainer,style:{justifyContent:"space-between",fontSize:"14pt",marginTop:"28px",paddingTop:"1.2em"}},n.a.createElement("div",{className:D.filedName},Object(x.isEmpty)(K)?n.a.createElement("div",{style:{marginTop:"28px"}}):K,n.a.createElement("div",{className:D.signatureFieldLabel},"Attorney Name ")),n.a.createElement("div",{className:D.filedName},Object(x.isEmpty)(null===(C=w)||void 0===C?void 0:C.signatureUrl)?n.a.createElement("div",{style:{marginTop:"28px"}}):n.a.createElement("img",{alt:"signature",src:null===(j=w)||void 0===j?void 0:j.signatureUrl,width:200,height:26,className:D.image}),n.a.createElement("div",{className:D.signatureFieldLabel},"Signature"))),n.a.createElement(h.Box,{className:D.infoContainer,style:{justifyContent:"space-between",fontSize:"14pt",marginTop:"22px"}},n.a.createElement("div",{className:D.filedName},Object(x.isEmpty)(H)?n.a.createElement("div",{style:{marginTop:"28px"}}):H,n.a.createElement("div",{className:D.signatureFieldLabel},"KANSAS SUPREME COURT REG. NO. ",n.a.createElement("b",null,"REQUIRED"))),n.a.createElement("div",{className:D.filedName},X,n.a.createElement("div",{className:D.signatureFieldLabel},"Date"))),n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",marginTop:"24px"}},"A copy of this affidavit should be included in your personal file."))),n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",marginTop:"30px"}},"PREPARED FOR:"))),n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",paddingLeft:"65px",paddingTop:"4px"}},G)))))},oi=Object(V.makeStyles)((function(){return Object(V.createStyles)({table:{fontFamily:"Times New Roman, Garamond, Georgia",height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"820px !important"},divStyle:{display:"flex",justifyContent:"stretch",width:"100%"},styleFlexWithBorder:{flex:1,borderBottom:"1px solid",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Georgia"},signatureContainer:{display:"flex",flexBasis:"60%",alignItems:"flex-end",paddingRight:"8px"},signatureLabel:{paddingRight:"8px",minWidth:"180px",textAlign:"left",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia",fontSize:"14pt"},barNumberContainer:{display:"flex",flexBasis:"40%",alignItems:"flex-end"},barNumberLabel:{paddingRight:"8px",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia",fontSize:"14pt"},dateContainer:{display:"flex",flexBasis:"40%",alignItems:"flex-end",paddingRight:"8px"},dateLabel:{paddingRight:"8px",textAlign:"left",fontWeight:"bolder",fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Georgia"},locationContainer:{display:"flex",flexBasis:"60%",alignItems:"flex-end"},locationLabel:{paddingRight:"8px",fontWeight:"bolder",fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Georgia"},signatureSize:{width:200,height:25},fontBolder:{fontWeight:"bolder",fontSize:"12.5pt",fontFamily:"Times New Roman, Garamond, Georgia"},fontItalic:{fontStyle:"italic",fontSize:"12.5pt",fontWeight:"bolder",textAlign:"center",fontFamily:"Times New Roman, Garamond, Georgia"},styleNoWrap:{whiteSpace:"nowrap",padding:"0 16px"},infoDescription:{borderBottom:"#000000 1px solid",fontSize:"14pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia",marginTop:"10px"},infoDescriptionv2:{fontSize:"14pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},infoContainer:{display:"flex"},infoLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",alignItems:"flex-end",fontSize:"14pt",marginTop:"10px",fontFamily:"Times New Roman, Garamond, Georgia"},representativeSignatureField:{width:"654px",fontWeight:600,textAlign:"center"},label:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},labelv2:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",fontSize:"12pt",fontStyle:"italic",fontWeight:"normal",fontFamily:"Times New Roman, Garamond, Georgia"},checkBox:{borderTop:"#000000 1px solid",height:"16px",borderRight:"#000000 1px solid",width:"16px",verticalAlign:"middle",borderBottom:"#000000 1px solid",borderLeft:"#000000 1px solid"},noLine:{minWidth:"100px",flex:0,whiteSpace:"pre-wrap",textAlign:"center"},line:{borderBottom:"#000000 1px solid",minWidth:"100px",flex:0,whiteSpace:"pre-wrap",textAlign:"center",fontFamily:"Times New Roman, Garamond, Georgia"},lineText:{fontSize:"13pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"2px",overflowWrap:"anywhere",fontFamily:"Times New Roman, Garamond, Georgia"},otherDescription:{borderBottom:"#000000 1px solid",fontSize:"12pt",minWidth:"211px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},checkboxLabel:{flex:0,fontSize:"12pt",marginRight:"8px",alignItems:"flex-end",fontFamily:"Times New Roman, Garamond, Georgia",marginLeft:"8px"},otherLabel:{flex:0,fontSize:"12pt",marginRight:"8px",alignItems:"flex-end",fontFamily:"Times New Roman, Garamond, Georgia"},creditDescription:{borderBottom:"#000000 1px solid",fontSize:"13pt",flex:1,marginLeft:"3px",minWidth:"50px",display:"inline-block",textAlign:"center",fontWeight:"normal",fontFamily:"Times New Roman, Garamond, Georgia"},creditLineText:{fontSize:"13pt",minWidth:"300px",flex:1,fontWeight:"bolder",whiteSpace:"pre-wrap",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},divCenter:{fontSize:"13pt",alignItems:"center",justifyContent:"center",display:"flex",fontFamily:"Times New Roman, Garamond, Georgia"},divDetails:{"@media print":{size:"letter !important",zoom:"70% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"}}})}));!function(e){e.TraditionalLiveClassroomSetting="TraditionalLiveClassroomSetting",e.CD="CD",e.Webinar="Webinar",e.TeleconferenceVideoconference="TeleconferenceVideoconference",e.DVD="DVD",e.Other="Other",e.Simulcast="Simulcast",e.AudiotapeVideotape="AudiotapeVideotape"}(G||(G={}));var si,li=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m=e.certificate,y=e.isInstructor,g=e.licenseId,b=e.sessionDetails,S=e.userId,E=oi(),I=(null===b||void 0===b?void 0:b.title)!==(null===b||void 0===b?void 0:b.courseTitle)?"".concat(null===b||void 0===b?void 0:b.courseTitle," (").concat(null===b||void 0===b?void 0:b.title,")"):null===b||void 0===b?void 0:b.courseTitle,O=null!==(t=null===b||void 0===b?void 0:b.courseFormat)&&void 0!==t?t:"",C=(null===b||void 0===b?void 0:b.startDate)?Q()(null===b||void 0===b?void 0:b.startDate).format("MMMM DD, YYYY"):"",j=(null===b||void 0===b?void 0:b.endDate)?Q()(null===b||void 0===b?void 0:b.endDate).format("MMMM DD, YYYY"):"",w=j&&j!==C?"".concat(C," - ").concat(j):C,P=null!==(i=null===b||void 0===b||null===(r=b.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",T=null!==(a=null===b||void 0===b||null===(o=b.location)||void 0===o?void 0:o.city)&&void 0!==a?a:"",A=null!==(s=null===b||void 0===b||null===(l=b.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",k=null!==(c=null===b||void 0===b?void 0:b.provider)&&void 0!==c?c:"",D="";D=Object(x.isEmpty)(T)&&Object(x.isEmpty)(A)?"".concat(P):"".concat(P," ").concat((null===m||void 0===m?void 0:m.includeCity)||(null===m||void 0===m?void 0:m.includeState)?"(".concat((null===m||void 0===m?void 0:m.includeCity)?T:"").concat((null===m||void 0===m?void 0:m.includeState)&&!Object(x.isEmpty)(A)?(null===m||void 0===m?void 0:m.includeCity)&&!Object(x.isEmpty)(T)?", ".concat(A):A:"",")"):"");var L=(null===b||void 0===b?void 0:b.sessionInstructors)&&(null===b||void 0===b?void 0:b.sessionInstructors.find((function(e){return e.userId===S}))),J=(null===b||void 0===b?void 0:b.sessionParticipants)&&(null===b||void 0===b?void 0:b.sessionParticipants.find((function(e){return e.userId===S}))),F=y?L:J,B="".concat(F.firstName," ").concat((null===m||void 0===m?void 0:m.includeMiddleName)?"".concat(F.middleName):""," ").concat(F.lastName),R="".concat((null===m||void 0===m?void 0:m.includeBarNumber)&&null!==(d=null===F||void 0===F?void 0:F.licenseBarNumber)&&void 0!==d?d:""),U=F.completionDate?Q()(F.completionDate).format("MMMM DD, YYYY"):"",q=(null===b||void 0===b?void 0:b.isIndividualSessionDateAllowed)?U:w,M=null!==(u=F.njLawProgramFormat)&&void 0!==u?u:"",z=null===b||void 0===b||null===(v=b.sessionLicenses)||void 0===v||null===(f=v.find((function(e){return e.licenseId===g})))||void 0===f?void 0:f.sessionLicenseProperties,W=function(e){var t,i=null===z||void 0===z||null===(t=z.find((function(t){return t.propertyId===e})))||void 0===t?void 0:t.propertyValue;return i&&!Object(x.isEmpty)(i)?i:""},V="true"===W(Et),_="true"===W(It),Y="true"===W(Ot),$="true"===W(Ct),H="true"===W(xt),K="true"===W(jt),Z="true"===W(wt),X="true"===W(Pt),ee="true"===W(Tt),te=W(At),ie=W(Nt),re=W(kt),ne=W(Dt),ae=W(Lt),oe=W(Jt),se=W(Ft),le=W(Bt),ce=W(Rt),de=function(e,t){var i,r=null===e||void 0===e||null===(i=e.find((function(e){return e.creditId===t})))||void 0===i?void 0:i.value;return r&&r>0?Number.isInteger(r)?r.toFixed(2):parseFloat(r.toFixed(4)).toString():""},ue=function(e,t){var i,r;return null!==(i=null===e||void 0===e||null===(r=e.find((function(e){return e.propertyId===t})))||void 0===r?void 0:r.valueBit)&&void 0!==i&&i},he=void 0!==L?(0).toFixed(2):"",ve=void 0!==L?(0).toFixed(2):"",pe=void 0!==L?(0).toFixed(2):"",fe=(0).toFixed(2),ye=void 0!==J?(0).toFixed(2):"",ge=void 0!==J?(0).toFixed(2):"",be=void 0!==J?(0).toFixed(2):"",Se=(0).toFixed(2),Ee=!1,Ie=!1,Oe=!1,Ce=!1;if(void 0!==L){var xe,je=null===b||void 0===b||null===(xe=b.sessionLicenses)||void 0===xe?void 0:xe.find((function(e){return e.licenseId===g})),we=(null===je||void 0===je?void 0:je.licenseStatus)===p.Dd.Pending,Pe=(null===je||void 0===je?void 0:je.licenseStatus)===p.Dd.Denied,Te=je&&je.expirationDate&&null!==je.expirationDate&&Object(N.d)(je.expirationDate)<=Object(N.d)(L.completionDate);if(!we&&!Pe&&!Te){var Ae,Ne,ke=null===(Ae=L.userLicenseCreditValues)||void 0===Ae?void 0:Ae.filter((function(e){return e.licenseId===me}));he=de(ke,pt),ve=de(ke,ft),pe=de(ke,mt);var De=Object(x.sum)(null===ke||void 0===ke?void 0:ke.map((function(e){return e.value})));fe=De&&De>0?Number.isInteger(De)?De.toFixed(2):parseFloat(De.toFixed(4)).toString():"0.00";var Le=null===(Ne=L.userLicensePropertyValues)||void 0===Ne?void 0:Ne.filter((function(e){return e.licenseId===me}));Ee=ue(Le,yt),Oe=ue(Le,bt),Ie=ue(Le,gt),Ce=ue(Le,St)}}if(void 0!==J){var Je,Fe=null===b||void 0===b||null===(Je=b.sessionLicenses)||void 0===Je?void 0:Je.find((function(e){return e.licenseId===g})),Be=(null===Fe||void 0===Fe?void 0:Fe.licenseStatus)===p.Dd.Pending,Re=(null===Fe||void 0===Fe?void 0:Fe.licenseStatus)===p.Dd.Denied,Ue=Fe&&Fe.expirationDate&&null!==Fe.expirationDate&&Object(N.d)(Fe.expirationDate)<=Object(N.d)(J.completionDate);if(!Be&&!Re&&!Ue){var Ge,qe=null===(Ge=J.userLicenseCreditValues)||void 0===Ge?void 0:Ge.filter((function(e){return e.licenseId===me}));ye=de(qe,pt),ge=de(qe,ft),be=de(qe,mt);var Me=Object(x.sum)(null===qe||void 0===qe?void 0:qe.map((function(e){return e.value})));Se=Me&&Me>0?Number.isInteger(Me)?Me.toFixed(2):parseFloat(Me.toFixed(4)).toString():"0.00"}}return n.a.createElement(h.Box,{maxWidth:900,margin:"20px auto",className:E.divDetails},n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Table,{id:"tblNJCertificate",style:{width:"100%",pageBreakAfter:"auto"},className:E.table},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:"none"}},n.a.createElement(h.Typography,{style:{fontSize:"16pt",textAlign:"center"},className:E.fontBolder},"New Jersey Continuing Legal Education ",n.a.createElement("br",null),"Certificate of Attendance"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Typography,{className:E.fontBolder},n.a.createElement(h.Box,{style:{display:"flex"}},"This certificate is issued under\xa0",n.a.createElement(h.Typography,{className:E.fontItalic},"Rule"),"\xa01:42 and\xa0",n.a.createElement(h.Typography,{className:E.fontItalic},"BCLE Reg."),"\xa0301:8 of the Board on Continuing Legal Education.")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{paddingTop:"16px",border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.infoLabel},"Title of Program:"),n.a.createElement(h.Typography,{className:E.infoDescription},I)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},n.a.createElement(h.Box,{className:E.divStyle},n.a.createElement(h.Box,{className:E.dateContainer},n.a.createElement(h.Typography,{className:E.dateLabel},"Date:"),n.a.createElement(h.Typography,{className:E.styleFlexWithBorder},q)),n.a.createElement(h.Box,{className:E.locationContainer},n.a.createElement(h.Typography,{className:E.locationLabel},"Location:"),n.a.createElement(h.Typography,{className:E.styleFlexWithBorder},(null===m||void 0===m?void 0:m.includeLocation)?D:""))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Typography,{style:{fontSize:"14pt"}},n.a.createElement(h.Typography,{className:E.otherLabel,style:{marginTop:"10px"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.infoLabel,style:{marginTop:"0px"}},"Format:")," ","(please check)"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Box,{style:{flex:"40%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.TraditionalLiveClassroomSetting&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Traditional live classroom setting"))),n.a.createElement(h.Box,{style:{flex:"25%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.CD&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"CD"))),n.a.createElement(h.Box,{style:{flex:"35%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.Webinar&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Webinar")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Box,{style:{flex:"40%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.TeleconferenceVideoconference&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Teleconference/Videoconference"))),n.a.createElement(h.Box,{style:{flex:"25%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.DVD&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"DVD"))),n.a.createElement(h.Box,{style:{flex:"35%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.Other&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.checkboxLabel},"Other:"),n.a.createElement(h.Box,{className:E.otherDescription},M===G.Other&&O))))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Box,{style:{flex:"40%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.Simulcast&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Simulcast"))),n.a.createElement(h.Box,{style:{flex:"25%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},M===G.AudiotapeVideotape&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Audio/Videotape"))),n.a.createElement(h.Box,{style:{flex:"35%"}})))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{style:{fontSize:"14pt",marginTop:"15px"}},n.a.createElement(h.Typography,{className:E.fontBolder},"All credits are calculated on a 50-minute hour.")),n.a.createElement(h.Box,{style:{fontSize:"14pt",fontWeight:"bolder"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.creditLineText},"Credit for Attendance: Total"," ",n.a.createElement(h.Typography,{className:E.creditDescription},Se)," as indicated below:"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.divCenter,style:{marginLeft:"142px"}},n.a.createElement(h.Typography,null,n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},ge),n.a.createElement(h.Typography,{className:E.lineText},"General credits (excluding Ethics)")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},ye),n.a.createElement(h.Typography,{className:E.lineText},"Ethics credits (exclusive of Diversity/Inclusion/Elimination of Bias)")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},be),n.a.createElement(h.Typography,{className:E.lineText},"Diversity/Inclusion/Elimination of Bias credits")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.creditLineText},"Additional Credit for Faculty Participation: Total"," ",n.a.createElement(h.Typography,{className:E.creditDescription},fe)," as indicated below:")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Box,{style:{flex:"20%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},Ee&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Speaker"))),n.a.createElement(h.Box,{style:{flex:"25%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},Ie&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Panel Member"))),n.a.createElement(h.Box,{style:{flex:"20%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},Oe&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Typography,{className:E.checkboxLabel},"Moderator"))),n.a.createElement(h.Box,{style:{flex:"35%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:E.checkBox},Ce&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.checkboxLabel},"Other"),n.a.createElement(h.Typography,{className:E.otherDescription,style:{minWidth:"350px"}}))))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.divCenter,style:{marginLeft:"155px"}},n.a.createElement(h.Typography,null,n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},ve),n.a.createElement(h.Typography,{className:E.lineText},"Additional General credits for faculty participation (excluding Ethics)")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},he),n.a.createElement(h.Typography,{className:E.lineText},"Additional Ethics credits for faculty participation (exclusive of")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.noLine}),n.a.createElement(h.Typography,{className:E.lineText},"Diversity/Inclusion/Elimination of Bias)")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},pe),n.a.createElement(h.Typography,{className:E.lineText},"Additional Diversity/Inclusion/Elimination of Bias credits for faculty")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.noLine}),n.a.createElement(h.Typography,{className:E.lineText},"participation")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{style:{fontSize:"14pt",marginTop:"8px"}},n.a.createElement(h.Typography,{className:E.fontBolder},"This program has been approved for New Jersey Newly Admitted Attorney Credits")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{className:E.divCenter},n.a.createElement(h.Typography,null,n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},V&&te),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Basic Estate Administration")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},_&&ie),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Basic Estate Planning")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},Y&&re),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Civil or Criminal Trial Preparation")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},$&&ne),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Family Law Practice")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},H&&ae),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Real Estate Closing Procedures")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},K&&oe),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Trust and Business Accounting")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},Z&&se),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Landlord/Tenant Practice")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},X&&le),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Municipal Court Practice")),n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.line},ee&&ce),n.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Law Office Management")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"10px 16px 0 16px",border:"none"}},n.a.createElement(h.Typography,{className:E.otherLabel,style:{fontSize:"13pt"}},n.a.createElement(h.Typography,{className:E.fontBolder},n.a.createElement(h.Box,{className:E.infoContainer},"Attorneys:\xa0",n.a.createElement(h.Typography,{className:E.otherLabel,style:{fontSize:"13pt"}},"Retain this certificate for a period of at least three years from the date of your attendance. In the event"))),"of an audit, you will be required to provide this certificate as proof of your compliance. By signing this certificate,",n.a.createElement("br",null)," you certify that you attended the activity described above and are entitled to claim the amount of credits listed."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer,style:{fontSize:"14pt",marginTop:"8px"}},n.a.createElement(h.Typography,{className:E.infoLabel},"Name of Attorney:"),n.a.createElement(h.Typography,{className:E.infoDescription},B)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},n.a.createElement(h.Box,{className:E.divStyle,style:{marginTop:(null===m||void 0===m?void 0:m.includeParticipantSignature)&&!Object(x.isEmpty)(null===F||void 0===F?void 0:F.signatureUrl)?"0px":"15px"}},n.a.createElement(h.Box,{className:E.signatureContainer},n.a.createElement(h.Typography,{className:E.signatureLabel,style:{minWidth:"85px"}},"Signature:"),n.a.createElement(h.Box,{className:E.styleFlexWithBorder},(null===m||void 0===m?void 0:m.includeParticipantSignature)&&!Object(x.isEmpty)(null===F||void 0===F?void 0:F.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===F||void 0===F?void 0:F.signatureUrl,className:E.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),n.a.createElement(h.Box,{className:E.barNumberContainer},n.a.createElement(h.Typography,{className:E.barNumberLabel},"Attorney ID #:"),n.a.createElement(h.Typography,{className:E.styleFlexWithBorder},R))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Typography,{className:E.otherLabel},n.a.createElement(h.Box,{style:{display:"flex",fontSize:"13pt",marginTop:"17px"}},n.a.createElement(h.Typography,{className:E.fontBolder},"Providers:"),"\xa0By issuing this certificate, you verify that the attorney named above completed this program.")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer},n.a.createElement(h.Typography,{className:E.infoLabel},"Provider:"),n.a.createElement(h.Typography,{className:E.infoDescription},n.a.createElement(h.Box,{style:{display:"flex",whiteSpace:"nowrap"}},k,"\xa0",(null===m||void 0===m?void 0:m.locationValue)&&n.a.createElement(h.Typography,{className:E.otherLabel},"(",null===m||void 0===m?void 0:m.locationValue,")")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},n.a.createElement(h.Box,{className:E.infoContainer,style:{fontSize:"14pt",marginTop:(null===m||void 0===m?void 0:m.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===m||void 0===m?void 0:m.signatureUrl)?"0px":"15px"}},n.a.createElement(h.Typography,{className:E.infoLabel,style:{alignSelf:"center"}},"Acknowledged by:"),n.a.createElement(h.Box,{className:E.infoDescriptionv2},n.a.createElement(h.Box,{className:E.infoContainer,style:{alignItems:"flex-end"}},n.a.createElement(h.Box,{className:E.representativeSignatureField},(null===m||void 0===m?void 0:m.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===m||void 0===m?void 0:m.signatureUrl)?n.a.createElement("img",{alt:"signature",src:null===m||void 0===m?void 0:m.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down",alignItems:"flex-start"}}):n.a.createElement(n.a.Fragment,null,"\xa0"),n.a.createElement(h.Typography,{className:E.labelv2},"(Provider Representative Signature)"))))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},n.a.createElement(h.Box,{style:{fontSize:"12pt",display:"flex",borderTop:"#000000 1px solid",marginTop:"15px"}},n.a.createElement(h.Typography,{className:E.otherLabel,style:{flex:1}},"Revised: 11/2020, CN 11388"),n.a.createElement(h.Typography,{className:E.otherLabel,style:{flex:1,justifyContent:"flex-end",display:"flex"}},"page 1 of 1"))))))))},ci=Object(V.makeStyles)((function(){return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},hr:{borderTop:"black 1px solid",borderRight:"black 1px solid",borderBottom:"black 1px solid",borderLeft:"black 1px solid"},ti:{fontStyle:"italic",fontSize:"9pt",fontFamily:"Arial",whiteSpace:"nowrap"},taj:{textAlign:"justify"},tar:{textAlign:"right"},box:{borderTop:"black 1px solid",borderRight:"black 1px solid",borderBottom:"black 1px solid",borderLeft:"black 1px solid",paddingBottom:"1px",paddingTop:"1px",paddingLeft:"1px",display:"inline-block",paddingRight:"1px"},boxBorderBot:{borderBottom:"black 1px solid",paddingBottom:"1px",paddingTop:"1px",paddingLeft:"1px",display:"inline-block",paddingRight:"1px",textAlign:"center",verticalAlign:"center",height:"20px",width:"40px",backgroundColor:"#eceeee"},boxTal:{borderTop:"black 1px solid",borderRight:"black 1px solid",borderBottom:"black 1px solid",borderLeft:"black 1px solid",paddingBottom:"1px",paddingTop:"1px",paddingLeft:"1px",display:"inline-block",paddingRight:"1px",textAlign:"left"},boxTalBorderBot:{borderBottom:"black 1px solid",paddingBottom:"1px",paddingTop:"1px",paddingLeft:"1px",display:"inline-block",paddingRight:"1px",textAlign:"left"},textFont:{fontFamily:"Arial",whiteSpace:"nowrap"},textSize7b:{fontSize:"7pt",fontFamily:"Arial",fontWeight:"bold",whiteSpace:"nowrap"},textSize75:{fontSize:"7.5pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize8:{fontSize:"8pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize85:{fontSize:"8.5pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize85b:{fontSize:"8.5pt",fontFamily:"Arial",whiteSpace:"nowrap",fontWeight:"bold"},textSize9:{fontSize:"9pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize9b:{fontSize:"9pt",fontFamily:"Arial",whiteSpace:"nowrap",fontWeight:"bold"},textSize10:{fontSize:"10pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize10b:{fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",whiteSpace:"nowrap",letterSpacing:"-0.1px"},textSize11:{fontSize:"10pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize11b:{fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold",whiteSpace:"nowrap"},textSize12:{fontSize:"12pt",fontFamily:"Arial"},textSize12c:{fontSize:"12pt",fontFamily:"Arial",whiteSpace:"nowrap",textAlign:"center"},textSize14:{fontSize:"14pt",fontFamily:"Arial",whiteSpace:"nowrap"},textSize14b:{fontSize:"14pt",fontFamily:"Arial",fontWeight:"bold",whiteSpace:"nowrap"},textSize17:{fontSize:"17pt",fontFamily:"Arial",fontWeight:"bold",whiteSpace:"nowrap"},checkBox:{borderTop:"black 1px solid",height:"13px",borderRight:"black 1px solid",width:"13px",verticalAlign:"middle",borderBottom:"black 1px solid",borderLeft:"black 1px solid"},checkedBox:{borderTop:"black 1px solid",height:"13px",borderRight:"black 1px solid",width:"13px",verticalAlign:"middle",borderBottom:"black 1px solid",borderLeft:"black 1px solid",backgroundColor:"black"},displayBlock:{display:"inline-block"},divDetails:{"@media print":{size:"letter !important",zoom:"70% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"},"& td":{border:"none"}},radioSize:{transform:"scale(1.5)",accentColor:"black"},styleNoWrap:{whiteSpace:"nowrap"},infoContainer:{display:"flex"},infoLabel:{flex:0,marginRight:"8px",minWidth:"125px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},infoDescription:{border:"#000000 1px solid",fontSize:"10.5pt",width:"480px",minHeight:"52px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},infoDescriptionV2:{border:"#000000 1px solid",fontSize:"10.5pt",width:"480px",minHeight:"30px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},infoDescriptionNoBorder:{fontSize:"10.5pt",width:"480px",minHeight:"30px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},courseNumLabel:{flex:0,marginRight:"15px",minWidth:"55px",textAlign:"left",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},courseNumDescription:{border:"#000000 1px solid",fontSize:"10.5pt",maxWidth:"150px",minHeight:"20px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},checkboxMarginLeft:{marginLeft:"8px",fontSize:"12.75pt",fontFamily:"Arial"},divCheckbox:{display:"flex",alignItems:"center",flex:1},checkBoxv2:{borderTop:"black 1px solid",height:"16px",borderRight:"black 1px solid",width:"16px",verticalAlign:"middle",borderBottom:"black 1px solid",borderLeft:"black 1px solid"},checkedBoxv2:{borderTop:"black 1px solid",height:"16px",borderRight:"black 1px solid",width:"16px",verticalAlign:"middle",borderBottom:"black 1px solid",borderLeft:"black 1px solid",backgroundColor:"black"},nameLabel:{flex:0,marginRight:"67px",minWidth:"150px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},nameDescription:{border:"#000000 1px solid",fontSize:"9.5pt",minWidth:"610px",minHeight:"35x",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},titleLabel:{flex:0,marginRight:"67px",minWidth:"120px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},titleDescription:{border:"#000000 1px solid",fontSize:"9.5pt",minWidth:"690px",minHeight:"35x",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},dateLabel:{flex:0,marginRight:"67px",minWidth:"525px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},dateDescription:{border:"#000000 1px solid",fontSize:"9.5pt",minWidth:"170px",minHeight:"35x",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"},locationLabel:{flex:0,marginRight:"35px",minWidth:"400px",textAlign:"right",fontSize:"11pt",fontFamily:"Arial",fontWeight:"bold"},locationDescription:{border:"#000000 1px solid",fontSize:"9.5pt",minWidth:"140px",minHeight:"35x",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Arial"}})})),di=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y=e.certificate,g=e.isInstructor,b=e.licenseId,S=e.sessionDetails,E=e.userId,I=ci(),O=(null===S||void 0===S?void 0:S.title)!==(null===S||void 0===S?void 0:S.courseTitle)?"".concat(null===S||void 0===S?void 0:S.courseTitle," (").concat(null===S||void 0===S?void 0:S.title,")"):null===S||void 0===S?void 0:S.courseTitle,C=(null===S||void 0===S?void 0:S.startDate)?Q()(null===S||void 0===S?void 0:S.startDate).format("MMMM DD, YYYY"):"",j=(null===S||void 0===S?void 0:S.endDate)?Q()(null===S||void 0===S?void 0:S.endDate).format("MMMM DD, YYYY"):"",w=j&&j!==C?"".concat(C," - ").concat(j):C,P=null!==(t=null===S||void 0===S||null===(i=S.approvalCodes)||void 0===i||null===(r=i.find((function(e){return e.licenseId===b})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",T=null!==(a=null===S||void 0===S||null===(o=S.location)||void 0===o?void 0:o.name)&&void 0!==a?a:"",A=null!==(s=null===S||void 0===S||null===(l=S.location)||void 0===l?void 0:l.city)&&void 0!==s?s:"",k=null!==(c=null===S||void 0===S||null===(d=S.location)||void 0===d?void 0:d.state)&&void 0!==c?c:"",D="";D=Object(x.isEmpty)(A)&&Object(x.isEmpty)(k)?"".concat(T):"".concat(T," ").concat((null===y||void 0===y?void 0:y.includeCity)||(null===y||void 0===y?void 0:y.includeState)?"(".concat((null===y||void 0===y?void 0:y.includeCity)?A:"").concat((null===y||void 0===y?void 0:y.includeState)&&!Object(x.isEmpty)(k)?(null===y||void 0===y?void 0:y.includeCity)&&!Object(x.isEmpty)(A)?", ".concat(k):k:"",")"):"");var L=(null===S||void 0===S?void 0:S.sessionInstructors)&&(null===S||void 0===S?void 0:S.sessionInstructors.find((function(e){return e.userId===E}))),J=(null===S||void 0===S?void 0:S.sessionParticipants)&&(null===S||void 0===S?void 0:S.sessionParticipants.find((function(e){return e.userId===E}))),F=(m=g?L:J).nyLawProperties,B=null!==(u=F&&(null===F||void 0===F?void 0:F.programFormat))&&void 0!==u?u:"",R=null!==(v=F&&(null===F||void 0===F?void 0:F.difficultyLevel))&&void 0!==v?v:"",U=null!==(f=F&&(null===F||void 0===F?void 0:F.participationMethod))&&void 0!==f?f:"",G="".concat(m.firstName," ").concat((null===y||void 0===y?void 0:y.includeMiddleName)?"".concat(m.middleName):""," ").concat(m.lastName),q=m.completionDate?Q()(m.completionDate).format("MMMM DD, YYYY"):"",M=(null===S||void 0===S?void 0:S.isIndividualSessionDateAllowed)?q:w,z=(0).toFixed(1),W=(0).toFixed(1),V=(0).toFixed(1),_=(0).toFixed(1),Y=(0).toFixed(1),$=(0).toFixed(1),H=(0).toFixed(1),K=(0).toFixed(1),Z=(0).toFixed(1),X=(0).toFixed(1),ee=!1,te=!1,ie=!1,re=!1,ne=function(e,t){var i,r,n;return null!==(i=null===e||void 0===e||null===(r=e.find((function(e){return e.creditId===t})))||void 0===r||null===(n=r.value)||void 0===n?void 0:n.toFixed(1))&&void 0!==i?i:(0).toFixed(1)},ae=function(e,t){var i;return null!==(i=null===e||void 0===e?void 0:e.includes(t))&&void 0!==i&&i};if(void 0!==L){var oe,se,le=null===S||void 0===S||null===(oe=S.sessionLicenses)||void 0===oe?void 0:oe.find((function(e){return e.licenseId===ye})),ce=(null===le||void 0===le?void 0:le.licenseStatus)===p.Dd.Pending,de=(null===le||void 0===le?void 0:le.licenseStatus)===p.Dd.Denied,ue=le&&le.expirationDate&&null!==le.expirationDate&&Object(N.d)(le.expirationDate)<=Object(N.d)(L.completionDate),he=null===(se=L.userLicensePropertyValues)||void 0===se?void 0:se.find((function(e){return e.licenseId===ye&&14===e.propertyId}));if(U=void 0!==he?1===he.valueInt?"GroupSetting":"Individual":U,!ce&&!de&&!ue){var ve,pe,fe,me=null===(ve=L.userLicenseCreditValues)||void 0===ve?void 0:ve.filter((function(e){return e.licenseId===ye}));z=ne(me,1),W=ne(me,2),V=ne(me,3),_=ne(me,4),Y=ne(me,5);var ge=(null===(pe=L.nyLawProperties)||void 0===pe?void 0:pe.facultyParticipation)&&(null===(fe=L.nyLawProperties)||void 0===fe?void 0:fe.facultyParticipation);ee=ae(ge,"Speaker"),te=ae(ge,"Moderator"),ie=ae(ge,"PanelMember"),re=ae(ge,"LawCompetitionFaculty")}}if(void 0!==J){var be,Se,Ee=null===S||void 0===S||null===(be=S.sessionLicenses)||void 0===be?void 0:be.find((function(e){return e.licenseId===ye})),Ie=(null===Ee||void 0===Ee?void 0:Ee.licenseStatus)===p.Dd.Pending,Oe=(null===Ee||void 0===Ee?void 0:Ee.licenseStatus)===p.Dd.Denied,Ce=Ee&&Ee.expirationDate&&null!==Ee.expirationDate&&Object(N.d)(Ee.expirationDate)<=Object(N.d)(J.completionDate),xe=null===(Se=J.userLicensePropertyValues)||void 0===Se?void 0:Se.find((function(e){return e.licenseId===ye&&14===e.propertyId}));if(U=void 0!==xe?1===xe.valueInt?"GroupSetting":"Individual":U,!Ie&&!Oe&&!Ce){var je,we=null===(je=J.userLicenseCreditValues)||void 0===je?void 0:je.filter((function(e){return e.licenseId===ye}));$=ne(we,1),H=ne(we,2),K=ne(we,3),Z=ne(we,4),X=ne(we,5)}}return n.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",className:I.divDetails},n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Column,{mainAxisAlignment:"middle",minWidth:100},n.a.createElement("img",{alt:"NYlogo",style:{width:"85px",height:"85px"},src:"/images/logos/Nyseal.gif"})),n.a.createElement(h.Column,{mainAxisAlignment:"space-between"},n.a.createElement(h.Typography,{style:{fontSize:"32pt",fontFamily:"Impact"}},"NEW YORK CLE CERTIFICATE OF ATTENDANCE"),n.a.createElement(h.Typography,{style:{color:"white",fontSize:"10.5pt",fontFamily:"Impact",wordSpacing:"0.5pt",backgroundColor:"black"}},"MAY BE USED ONLY FOR PROGRAMS ACCREDITED BY THE NYS CLE BOARD. ALL INFORMATION MUST BE ENTERED BY THE CLE PROVIDER.")))),n.a.createElement(h.Box,{style:{alignItems:"center",margin:"24px 16px 0 16px"}},n.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"stretch"},n.a.createElement(h.Typography,{style:{fontSize:"13px",letterSpacing:"0.05em"}},n.a.createElement(h.Typography,{style:{fontSize:"14px",wordSpacing:"1pt",letterSpacing:"0.05em"}},"This certificate is issued under \xa71500.4(b)(12) of the NYS CLE Program Rules and under \xa710(B) of the NYS CLE Board",n.a.createElement("br",null)),"Regulations and Guidelines. By issuing this certificate, the CLE provider verifies that the attorney named below completed this",n.a.createElement("br",null),n.a.createElement(h.Box,{style:{display:"flex"}},"program.\xa0",n.a.createElement(h.Typography,{style:{fontWeight:"bold",fontStyle:"italic"}},"Attorneys must retain their certificates of attendance for at least four (4) years from the date of the program."))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}}))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420,paddingTop:0,verticalAlign:"top"}},n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textSize14b},"A. Attorney and Program Information")),n.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{minHeight:"35px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},G))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.textSize10b},"Name of Attorney"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{minHeight:"75px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},n.a.createElement(h.Typography,{id:"NY08Text3"},O)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.textSize10b},"Title of Program"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{height:"35px",width:"405px"}},M))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:I.textSize10b},"Date(s) of Attendance:"),n.a.createElement(h.Typography,{variant:"caption",style:{fontSize:"9px",letterSpacing:"-0.2px"}},"(For self-study programs, indicate date attorney completed program.)")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",fontSize:"3px",padding:0}},"\xa0")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{minHeight:"35px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},D))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize10,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{weight:"bold"},"Location of Program ",n.a.createElement("span",{className:I.textSize9},"(City, State)")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize9,style:{padding:"0 0 5px 16px",border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement("input",{className:Object(x.isEmpty)(D)?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),n.a.createElement(h.Typography,{weight:"bold",variant:"body1"},"\xa0Location Not Applicable"),n.a.createElement(h.Typography,{variant:"caption",style:{letterSpacing:"0.01em"}},"(Check only for self-study programs.)"))))))),n.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textSize14b},"B. Format of Program"),n.a.createElement(h.Typography,{className:I.textFont,style:{fontSize:"8pt",letterSpacing:"0.05px"}},"(Check only the format completed by the attorney to whom this certificate is issued.)")),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format1"===B?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa01. Traditional Live Classroom Format")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format2"===B?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa02. Fully Interactive Videoconference")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:"5px 0 0 5px",border:0,boxShadow:"none"}},"Live Simultaneous Transmission")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:"0 0 0 5px"}},n.a.createElement(h.Typography,{className:I.textSize8,style:{letterSpacing:"-0.05px"}},"(webconference, teleconference, webcast, videoconference, satellite broadcast, etc.)"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:"5px 0 0 10px",border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement("input",{className:"Format3"===B?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa03. Questions Allowed During Program"," ",n.a.createElement(h.Typography,{className:I.textFont,style:{fontSize:"8pt",letterSpacing:"0.25px"}},"(Synchronous Interactivity)")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:"5px 0 5px 10px",border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format4"===B?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa04. Questions Not Allowed During Program")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format5"===B?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa05. On-Demand/Recorded ",n.a.createElement("span",{className:I.textSize75},"(Audio/Video)"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format6"===B?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa06. Other (Describe)"," ",n.a.createElement(h.Typography,{className:I.boxTal,style:{height:"20px",width:"256px",verticalAlign:"middle"}}))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize9,style:{letterSpacing:"0.4px",border:0,boxShadow:"none",padding:"5px 0 0 0"}},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{className:I.textSize7b,style:{alignItems:"center"}},"Newly admitted attorney format restrictions"),"(except as provided in \xa72(A) and"),"\xa72(F) of the Regulations):")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.textSize7b},"- Formats 1 & 2 - acceptable for credit in any category",n.a.createElement("br",null),"- Format 3 - unacceptable for Skills credit",n.a.createElement("br",null),"- Formats 4 & 5 - unacceptable for Skills or Ethics and Professionalism credit"))))),n.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:I.textSize14b,style:{letterSpacing:"-0.4px"}},"C. Attorney's Method of Participation"),n.a.createElement(h.Typography,{className:I.textFont,style:{fontSize:"8pt"}},"(Check only one)"))),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0",border:0,boxShadow:"none"}},n.a.createElement("input",{className:"GroupSetting"===U?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa0Group Setting, or")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"top"},n.a.createElement("input",{className:"Individual"===U?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),n.a.createElement(h.Typography,{className:I.textSize9,style:{letterSpacing:"-0.23px"}},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{className:I.textSize11},"\xa0Individual/Self-Study"),"(including an attorney individually dialing in or"),"\xa0\xa0\xa0\xa0\xa0 logging in to a webconference, teleconference or webcast, or individually",n.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0 viewing/listening to a recorded program )")))))),n.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:I.textSize14b},"D. Level of Difficulty"),n.a.createElement(h.Typography,{className:I.textSize9},"(Check only one)")),n.a.createElement(h.Typography,{className:I.textSize11b,style:{textDecoration:"underline"}},n.a.createElement(h.Box,{style:{display:"flex"}},"The\xa0",n.a.createElement(h.Typography,{className:I.textSize11b,style:{fontStyle:"italic"}},"content"),"\xa0of the course is appropriate for:"))),n.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px",width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Box,{display:"flex"},n.a.createElement("input",{className:"Both"===R?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"BOTH"),"\xa0newly admitted and experienced attorneys ",n.a.createElement("br",null)),"\xa0\xa0\xa0\xa0(transitional/nontransitional), or",n.a.createElement(h.Box,{display:"flex"},n.a.createElement("input",{className:"NonTransitional"===R?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"ONLY"),"\xa0experienced attorneys (nontransitional), or"),n.a.createElement(h.Box,{display:"flex"},n.a.createElement("input",{className:"Transitional"===R?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"ONLY"),"\xa0newly admitted attorneys (transitional)"))))),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:I.textSize9,style:{letterSpacing:"-0.15px"}},"New York State CLE Board \u2022 www.nycourts.gov/attorneys/cle \u2022 Revised 01/18"))),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420,paddingTop:0,verticalAlign:"top"}},n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:I.textSize14b},"E. Credit for Attendance"),n.a.createElement(h.Typography,{className:I.textSize9,style:{letterSpacing:"0.15px"}},"Award credit in accordance with \xa78(A)(4)(a) of the Regulations.",n.a.createElement("br",null),"Enter number of credits earned in each category:")),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:I.textSize11},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"For Newly Admitted and/or Experienced Attorneys"),":"))),n.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"2px 0px",border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},$)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:"2px 0px",border:0,boxShadow:"none"}},"Ethics and Professionalism")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},X)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},K)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},Z)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")))),n.a.createElement(h.Box,{style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textSize11},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"For Experienced Attorneys Only"),":"))),n.a.createElement(h.Table,{style:{paddingTop:"5px"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},H)),n.a.createElement(h.TableCell,{className:I.textSize8,style:{padding:0,border:0,boxShadow:"none"}},"Diversity, Inclusion and Elimination of Bias")))),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textFont,style:{fontSize:"8.5pt",letterSpacing:"0.015em"}},"In accordance with \xa710(B)(2) of the Regulations, for multiple breakout sessions,",n.a.createElement("br",null),"provider should attach a sheet indicating the sessions attended by the attorney.")),n.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textSize14},n.a.createElement("b",null,"F. Credit for Faculty Participation"))),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textSize8,style:{fontSize:"8.5pt",letterSpacing:"0.15px"}},"Award credit in accordance with \xa73(D) of the Regulations. Select participation ",n.a.createElement("br",null)," type and enter number of credits earned in each category:")),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:I.textSize11},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"For Experienced Attorneys Only"),":"))),n.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:ee?I.checkedBox:I.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Speaker"),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:ie?I.checkedBox:I.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Panel member")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:te?I.checkedBox:I.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Moderator"),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:re?I.checkedBox:I.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Competition Faculty")))),n.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"5px 0 0 0",border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},z)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:"5px 0 0 0",border:0,boxShadow:"none"}},"Ethics and Professionalism")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},Y)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},V)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},_)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"0 0 5px 0",border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},W)),n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:"0 0 5px 0",border:0,boxShadow:"none"}},"Diversity, Inclusion and Elimination of Bias")))),n.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:I.textSize14b},"G. CLE Provider Information")),n.a.createElement(h.Table,{style:{width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===y||void 0===y?void 0:y.includeFirmName)?null===y||void 0===y?void 0:y.firmName:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.textSize10b},"Provider Organization"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===y||void 0===y?void 0:y.includeFirmName)&&!Object(x.isEmpty)(null===y||void 0===y?void 0:y.locationValue)?null===y||void 0===y?void 0:y.locationValue:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.textSize10b},"Address"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.boxTal,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===y||void 0===y?void 0:y.includeFirmName)&&!Object(x.isEmpty)(null===y||void 0===y?void 0:y.phoneNumber)?null===y||void 0===y?void 0:y.phoneNumber:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.textSize10b},"Telephone"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===y||void 0===y?void 0:y.includeValidatorSignatureLine)?null===y||void 0===y?void 0:y.validatorName:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.textSize10b},"Provider Agent Name"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Typography,{className:I.box,style:{textAlign:"left",height:"40px",width:"405px"}},(null===y||void 0===y?void 0:y.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===y||void 0===y?void 0:y.signatureUrl)?n.a.createElement("img",{alt:"signature_file",src:null===y||void 0===y?void 0:y.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}):""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:I.textSize10b},"Provider Agent Signature"))))),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%",paddingBottom:"2px",display:"flex"}},n.a.createElement(h.Typography,{className:I.textSize11},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"The CLE Provider"),":")),n.a.createElement(h.Typography,{className:I.textSize9},"(Check only one)")),n.a.createElement(h.Table,{style:{width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:I.textSize11,style:{border:0,boxShadow:"none",verticalAlign:"top",padding:0}},n.a.createElement("input",{className:1===(null===y||void 0===y?void 0:y.cleProviderValue)?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa0\xa0has been certified as an Accredited Provider by the NYS ",n.a.createElement("br",null)," CLE Board, or",n.a.createElement(h.Row,null,n.a.createElement("input",{className:2===(null===y||void 0===y?void 0:y.cleProviderValue)?I.checkedBox:I.checkBox,type:"textbox","read-only":!0}),"\xa0\xa0has had this individual course"),n.a.createElement(h.Row,{mainAxisAlignment:"space-between"},n.a.createElement(h.Column,null,"accredited by the NYS CLE Board as:"),n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{className:I.box,style:{verticalAlign:"top",height:"25px",width:"160px"}},2===(null===y||void 0===y?void 0:y.cleProviderValue)?P:""),n.a.createElement(h.Typography,{className:I.textSize9b,style:{margin:"0 auto"}},"Course Number"))))))),n.a.createElement(h.Box,{className:I.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:I.textSize9,style:{letterSpacing:"-0.1px"}},"This certificate may NOT be used to award CLE credit to New York attorneys ",n.a.createElement("br",null),"under New York's Approved Jurisdiction policy."))))))))},ui=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w,P=e.certificate,T=e.isInstructor,A=e.licenseId,k=e.sessionDetails,D=e.userId,L=e.isBlank,J=ci(),F=(null===k||void 0===k?void 0:k.title)!==(null===k||void 0===k?void 0:k.courseTitle)?"".concat(null===k||void 0===k?void 0:k.courseTitle," (").concat(null===k||void 0===k?void 0:k.title,")"):null===k||void 0===k?void 0:k.courseTitle,B=(null===k||void 0===k?void 0:k.startDate)?Q()(null===k||void 0===k?void 0:k.startDate).format("MMMM DD, YYYY"):"",R=(null===k||void 0===k?void 0:k.endDate)?Q()(null===k||void 0===k?void 0:k.endDate).format("MMMM DD, YYYY"):"",U=R&&R!==B?"".concat(B," - ").concat(R):B,G=null!==(t=null===k||void 0===k||null===(i=k.approvalCodes)||void 0===i||null===(r=i.find((function(e){return e.licenseId===A})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",q=null!==(a=null===k||void 0===k||null===(o=k.location)||void 0===o?void 0:o.name)&&void 0!==a?a:"",M=null!==(s=null===k||void 0===k||null===(l=k.location)||void 0===l?void 0:l.city)&&void 0!==s?s:"",z=null!==(c=null===k||void 0===k||null===(d=k.location)||void 0===d?void 0:d.state)&&void 0!==c?c:"",W=null!==(u=null===k||void 0===k?void 0:k.courseFormat)&&void 0!==u?u:"",V=null!==(v=null===k||void 0===k?void 0:k.areQuestionsAllowed)&&void 0!==v&&v,_=null!==(f=null===k||void 0===k?void 0:k.provider)&&void 0!==f?f:"",Y="";Y=Object(x.isEmpty)(M)&&Object(x.isEmpty)(z)?"".concat(q):"".concat(q," ").concat((null===P||void 0===P?void 0:P.includeCity)||(null===P||void 0===P?void 0:P.includeState)?"(".concat((null===P||void 0===P?void 0:P.includeCity)?M:"").concat((null===P||void 0===P?void 0:P.includeState)&&!Object(x.isEmpty)(z)?(null===P||void 0===P?void 0:P.includeCity)&&!Object(x.isEmpty)(M)?", ".concat(z):z:"",")"):"");var $=L?new p.le({firstName:"",lastName:"",middleName:""}):(null===k||void 0===k?void 0:k.sessionInstructors)&&(null===k||void 0===k?void 0:k.sessionInstructors.find((function(e){return e.userId===D}))),H=L?new p.le({firstName:"",lastName:"",middleName:""}):(null===k||void 0===k?void 0:k.sessionParticipants)&&(null===k||void 0===k?void 0:k.sessionParticipants.find((function(e){return e.userId===D}))),K=(w=T?$:H).nyLawProperties,Z=null!==(m=K&&(null===K||void 0===K?void 0:K.programFormat))&&void 0!==m?m:"",X="true"===(null===k||void 0===k||null===(y=k.sessionLicenses)||void 0===y||null===(g=y.find((function(e){return e.licenseId===ye})))||void 0===g||null===(b=g.sessionLicenseProperties)||void 0===b||null===(S=b.find((function(e){return 4===e.propertyId})))||void 0===S?void 0:S.propertyValue),ee="true"===(null===k||void 0===k||null===(E=k.sessionLicenses)||void 0===E||null===(I=E.find((function(e){return e.licenseId===ye})))||void 0===I||null===(O=I.sessionLicenseProperties)||void 0===O||null===(C=O.find((function(e){return 5===e.propertyId})))||void 0===C?void 0:C.propertyValue),te=L?X&&ee?"Both":X&&!ee?"NonTransitional":"Transitional":K&&(null===K||void 0===K?void 0:K.difficultyLevel),ie=L?ti.Group.includes(W)?"GroupSetting":"Individual":K&&(null===K||void 0===K?void 0:K.participationMethod),re="".concat(w.firstName," ").concat((null===P||void 0===P?void 0:P.includeMiddleName)?"".concat(null!==(j=w.middleName)&&void 0!==j?j:""):""," ").concat(w.lastName),ne=w.completionDate?Q()(w.completionDate).format("MMMM DD, YYYY"):"",ae=(null===k||void 0===k?void 0:k.isIndividualSessionDateAllowed)?ne:U,oe=(0).toFixed(1),se=(0).toFixed(1),le=(0).toFixed(1),ce=(0).toFixed(1),de=(0).toFixed(1),ue=(0).toFixed(1),he=(0).toFixed(1),ve=(0).toFixed(1),pe=!1,fe=!1,me=!1,ge=!1,be=function(e,t){var i,r,n,a;return null!==(i=(null!==(r=e[0]instanceof p.ie?null===(n=e.find((function(e){return e.creditId===t})))||void 0===n?void 0:n.value:null===(a=e.find((function(e){return e.creditId===t})))||void 0===a?void 0:a.creditValue)&&void 0!==r?r:0).toFixed(1))&&void 0!==i?i:(0).toFixed(1)},Se=function(e,t){var i;return null!==(i=null===e||void 0===e?void 0:e.includes(t))&&void 0!==i&&i};if(void 0!==$){var Ee,Ie,Oe=null===k||void 0===k||null===(Ee=k.sessionLicenses)||void 0===Ee?void 0:Ee.find((function(e){return e.licenseId===ye})),Ce=(null===Oe||void 0===Oe?void 0:Oe.licenseStatus)===p.Dd.Pending,xe=(null===Oe||void 0===Oe?void 0:Oe.licenseStatus)===p.Dd.Denied,je=Oe&&Oe.expirationDate&&null!==Oe.expirationDate&&Object(N.d)(Oe.expirationDate)<=Object(N.d)($.completionDate),we=null===(Ie=$.userLicensePropertyValues)||void 0===Ie?void 0:Ie.find((function(e){return e.licenseId===ye&&14===e.propertyId}));if(ie=void 0!==we?1===we.valueInt?"GroupSetting":"Individual":ie,!Ce&&!xe&&!je){var Pe,Te,Ae,Ne=(L?null===Oe||void 0===Oe?void 0:Oe.sessionLicenseCredits:null===(Pe=$.userLicenseCreditValues)||void 0===Pe?void 0:Pe.filter((function(e){return e.licenseId===ye})))||[];oe=be(Ne,1),se=be(Ne,3),le=be(Ne,4),ce=be(Ne,5);var ke=(null===(Te=$.nyLawProperties)||void 0===Te?void 0:Te.facultyParticipation)&&(null===(Ae=$.nyLawProperties)||void 0===Ae?void 0:Ae.facultyParticipation);pe=Se(ke,"Speaker"),fe=Se(ke,"Moderator"),me=Se(ke,"PanelMember"),ge=Se(ke,"LawCompetitionFaculty")}}if(void 0!==H){var De,Le,Je=null===k||void 0===k||null===(De=k.sessionLicenses)||void 0===De?void 0:De.find((function(e){return e.licenseId===ye})),Fe=(null===Je||void 0===Je?void 0:Je.licenseStatus)===p.Dd.Pending,Be=(null===Je||void 0===Je?void 0:Je.licenseStatus)===p.Dd.Denied,Re=Je&&Je.expirationDate&&null!==Je.expirationDate&&Object(N.d)(Je.expirationDate)<=Object(N.d)(H.completionDate),Ue=null===(Le=H.userLicensePropertyValues)||void 0===Le?void 0:Le.find((function(e){return e.licenseId===ye&&14===e.propertyId}));if(ie=void 0!==Ue?1===Ue.valueInt?"GroupSetting":"Individual":ie,!Fe&&!Be&&!Re){var Ge,qe=(L?null===Je||void 0===Je?void 0:Je.sessionLicenseCredits:null===(Ge=H.userLicenseCreditValues)||void 0===Ge?void 0:Ge.filter((function(e){return e.licenseId===ye})))||[];de=T?"0.0":be(qe,1),ue=T?"0.0":be(qe,3),he=T?"0.0":be(qe,4),ve=T?"0.0":be(qe,5)}}return n.a.createElement(h.Box,{maxWidth:920,margin:"0 auto",className:J.divDetails},n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Row,{mainAxisAlignment:"start"},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{style:{fontSize:"18pt",fontFamily:"Impact",wordSpacing:"0.5pt"}},"NEW YORK CLE CERTIFICATE OF ATTENDANCE"),n.a.createElement(h.Typography,{style:{fontSize:"10pt",fontFamily:"Impact",wordSpacing:"0.5pt"}},"MAY BE USED ONLY FOR PROGRAMS ACCREDITED BY THE NYS CLE BOARD. ",n.a.createElement("br",null),"ALL INFORMATION MUST BE ENTERED BY THE CLE PROVIDER.")),n.a.createElement(h.Column,{crossAxisAlignment:"right",flex:1},n.a.createElement(h.Typography,{style:{fontSize:"7pt",fontFamily:"Arial"},align:"right"},"Revised 01/16"),n.a.createElement(h.Typography,{style:{fontSize:"7pt",fontFamily:"Arial"}},"New York State CLE Board"),n.a.createElement(h.Typography,{style:{fontSize:"7pt",fontFamily:"Arial"}},"www.nycourts.gov/attorneys/cle"))),n.a.createElement(h.Row,{mainAxisAlignment:"start"},n.a.createElement(h.Column,{mainAxisAlignment:"space-between"},n.a.createElement(h.Typography,{style:{fontSize:"8.5pt",fontFamily:"Arial"}},"This certificate is issued under \xa71500.4(b)(12) of the NYS CLE Program Rules and under \xa710(B) of the NYS CLE Board Regulations and Guidelines. ",n.a.createElement("br",null),"By issuing this certificate, the CLE provider verifies that the attorney named below completed this program. ",n.a.createElement("br",null),n.a.createElement("b",null,n.a.createElement("i",null,"Attorneys must retain their certificates of attendance for at least four (4) years from the date of the program.")))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Box,{style:{width:"100%",padding:"5px 0px 5px 0px"}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.nameLabel},"NAME OF ATTORNEY:"),n.a.createElement(h.Typography,{className:J.nameDescription},n.a.createElement(h.Box,{className:J.infoContainer},re))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.titleLabel},"TITLE OF PROGRAM:"),n.a.createElement(h.Typography,{className:J.titleDescription},n.a.createElement(h.Box,{className:J.infoContainer},F))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.dateLabel},"DATE(S) OF ATTENDANCE:",n.a.createElement("span",{style:{fontStyle:"italic",fontSize:"7pt",fontFamily:"Arial"}},"\xa0(For self-study programs, indicate date attorney completed program.)")),n.a.createElement(h.Typography,{className:J.dateDescription},n.a.createElement(h.Box,{className:J.infoContainer},ae))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.locationLabel},"LOCATION"," ",n.a.createElement("span",{style:{fontStyle:"italic",fontSize:"8pt",fontFamily:"Arial"}},"(City/State)"),":",n.a.createElement("span",{style:{fontStyle:"italic",fontSize:"7pt",fontFamily:"Arial"}},'\xa0(For self-study programs, check "Not Applicable.")')),n.a.createElement(h.Typography,{className:J.locationDescription},n.a.createElement(h.Box,{className:J.infoContainer},Y)),n.a.createElement(h.Box,{className:J.textSize8,style:{padding:"4px 0 0 10px",border:0,boxShadow:"none"}},n.a.createElement("input",{className:Object(x.isEmpty)(Y)?J.checkedBox:J.checkBox,type:"textbox","read-only":!0}),"\xa0Not Applicable")))))))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Box,{style:{width:"100%",padding:0}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:J.textSize14b},"FORMAT OF PROGRAM:"),n.a.createElement(h.Typography,{className:J.textSize8,style:{fontStyle:"italic"}},"\xa0(Check only the format completed by the attorney to whom this certificate is issued.)")),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement("input",{className:"Format1"===Z||ei.Format1.includes(W)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa01 TRADITIONAL LIVE CLASSROOM FORMAT")),n.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:"0 0 0 204px",border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement("input",{className:"Format2"===Z||ei.Format2.includes(W)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa02 FULLY INTERACTIVE VIDEOCONFERENCE"))))))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Box,{style:{width:"100%",padding:0}},n.a.createElement(h.Divider,{style:{borderBottom:"2px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:J.textSize14b},"LIVE SIMULTANEOUS TRANSMISSION:"),n.a.createElement(h.Typography,{className:J.textSize8},"\xa0(webconference, teleconference, webcast, videoconference, satellite broadcast, etc.)")),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textSize10b,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement("input",{className:"Format3"===Z||ei.Format3.includes(W)&&V?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa03 QUESTIONS ALLOWED DURING PROGRAM (SYNCHRONOUS INTERACTIVITY)")),n.a.createElement(h.TableCell,{className:J.textSize10b,style:{padding:"0 0 0 30px",border:0,boxShadow:"none"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement("input",{className:"Format4"===Z||ei.Format3.includes(W)&&!V?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa04 QUESTIONS NOT ALLOWED DURING PROGRAM"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:0,border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format5"===Z||ei.Format5.includes(W)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa05 ON-DEMAND/RECORDED ",n.a.createElement("span",{className:J.textSize75},"(audio/video)")),n.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:"0 0 0 30px",border:0,boxShadow:"none"}},n.a.createElement("input",{className:"Format6"!==Z&&(ei.Format1.includes(W)||ei.Format2.includes(W)||ei.Format3.includes(W)||ei.Format5.includes(W))?J.checkBoxv2:J.checkedBoxv2,type:"textbox","read-only":!0}),"\xa06 OTHER")))))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Box,{style:{width:"100%",padding:0}},n.a.createElement(h.Divider,{style:{borderBottom:"2px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:J.textSize14b},"Newly admitted attorney format restrictions"),n.a.createElement(h.Typography,{className:J.textSize9},"\xa0(except as provided in \xa72(A) and \xa72(F) of the Regulations):")),n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:J.textSize10b},"Formats 1 & 2"),n.a.createElement(h.Typography,{className:J.textSize9},"\xa0--acceptable for credit in any category \xa0|\xa0"),n.a.createElement(h.Typography,{className:J.textSize10b},"Format 3"),n.a.createElement(h.Typography,{className:J.textSize9},"\xa0--not for Skills credit \xa0|\xa0"),n.a.createElement(h.Typography,{className:J.textSize10b},"Formats 4 & 5"),n.a.createElement(h.Typography,{className:J.textSize9},"\xa0--not for Skills or Ethics and Professionalism credit")))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Box,{style:{width:"100%",padding:0}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:J.textSize14b},"ATTORNEY'S METHOD OF PARTICIPATION:"),n.a.createElement(h.Typography,{className:J.textSize9,style:{fontStyle:"italic"}},"\xa0(check only one)"))),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textSize11,style:{verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0",border:0,boxShadow:"none"}},n.a.createElement("input",{className:"GroupSetting"===ie?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0GROUP SETTING"),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",verticalAlign:"top",textAlign:"left",padding:"1px 32px 0 32px"}},n.a.createElement(h.Typography,{className:J.textSize12,style:{fontStyle:"italic"}},"or")),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"top"},n.a.createElement("input",{className:"Individual"===ie?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),n.a.createElement(h.Typography,{className:J.textSize9,style:{letterSpacing:"-0.23px"}},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{className:J.textSize11},"\xa0INDIVIDUAL/SELF-STUDY"),n.a.createElement("i",null,"\xa0(including an attorney individually dialing in or logging in to a webconference,",n.a.createElement("br",null),"teleconference or webcast, or individually viewing/listening to a recorded program)"))))))))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Box,{style:{width:"100%",padding:0}},n.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{className:J.textSize14b},"LEVEL OF DIFFICULTY"),n.a.createElement(h.Typography,{className:J.textSize11},n.a.createElement(h.Box,{style:{display:"flex"}},"- the\xa0",n.a.createElement(h.Typography,{className:J.textSize10b,style:{fontStyle:"italic"}},"content"),"\xa0of the course is appropriate for:")),n.a.createElement(h.Typography,{className:J.textSize9,style:{fontStyle:"italic"}},"\xa0(check only one)"))),n.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px",width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textSize11,style:{border:0,boxShadow:"none",padding:0}},n.a.createElement(h.Box,{display:"flex"},n.a.createElement("input",{className:"Both"===te?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{style:{fontStyle:"italic"}},n.a.createElement("b",null,"BOTH")),"\xa0",n.a.createElement("b",null,"newly admitted and experienced attorneys")," \xa0(transitional/nontransitional), or"),n.a.createElement(h.Box,{display:"flex"},n.a.createElement("input",{className:"NonTransitional"===te?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0",n.a.createElement("b",null,"experienced attorneys"),n.a.createElement(h.Typography,{style:{fontStyle:"italic"}},"\xa0",n.a.createElement("b",null,"ONLY")),"\xa0(nontransitional), or"),n.a.createElement(h.Box,{display:"flex"},n.a.createElement("input",{className:"Transitional"===te?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0",n.a.createElement("b",null,"newly admitted attorneys"),n.a.createElement(h.Typography,{style:{fontStyle:"italic"}},"\xa0",n.a.createElement("b",null,"ONLY")),"\xa0(transitional)")))))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:0}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{style:{alignItems:"center",border:"3px solid black",padding:0}},n.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:"6px",verticalAlign:"top"}},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:J.textSize14b},"CREDIT for ATTENDANCE"),n.a.createElement(h.Typography,{className:J.textSize9b},n.a.createElement("i",null,"Credit is awarded in accordance with \xa78(A)(4)(a) of the Regulations."),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement("i",null,"Enter number of credits earned in each category:"))),n.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"2px 0px",border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},de)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:"2px 0px",border:0,boxShadow:"none"}},"Ethics and Professionalism")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},ve)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},ue)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},he)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")))),n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:J.textSize85b},n.a.createElement("br",null),n.a.createElement("i",null,"In accordance with \xa710(B)(2) of the Regulations, for multiple breakout sessions, provider",n.a.createElement("br",null)," should attach a sheet indicating the sessions attended by the attorney."))))))))),n.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},n.a.createElement(h.Box,{style:{alignItems:"center",border:"3px solid black",padding:"0 0 4px 0",marginLeft:"8px"}},n.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:"6px",verticalAlign:"top"}},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:J.textSize14},n.a.createElement("b",null,"CREDIT for FACULTY PARTICIPATION"))),n.a.createElement(h.Box,{className:J.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:J.textSize9},"(Experienced attorneys only)")),n.a.createElement(h.Box,{className:J.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:J.textSize11},n.a.createElement(h.Box,{style:{display:"flex"}},n.a.createElement(h.Typography,{className:J.textSize9b},n.a.createElement("i",null,"Award credit in accordance with \xa73(D) of the Regulations."))))),n.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:pe?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Speaker"),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:me?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Panel member")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:fe?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Moderator"),n.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},n.a.createElement("input",{className:ge?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Competition Faculty")))),n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:J.textSize9b},"Enter number of credits earned in each category:")),n.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"5px 0 0 0",border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!T?0:oe)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:"5px 0 0 0",border:0,boxShadow:"none"}},"Ethics and Professionalism")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!T?0:ce)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!T?0:le)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},n.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!T?0:se)),n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")))))))))))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Row,{mainAxisAlignment:"start"},n.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:J.textSize17,style:{color:"#484848"}},"CLE PROVIDER INFORMATION")))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center",border:"3px solid black"}},n.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"8px 4px 8px"}},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"2px 5px 4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"PROVIDER",n.a.createElement("br",null),"ORGANIZATION:"),n.a.createElement(h.Typography,{className:J.infoDescription},n.a.createElement(h.Box,{className:J.infoContainer},_))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"ADDRESS:"),n.a.createElement(h.Typography,{className:J.infoDescription},n.a.createElement(h.Box,{className:J.infoContainer},null===P||void 0===P?void 0:P.locationValue))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"TELEPHONE:"),n.a.createElement(h.Typography,{className:J.infoDescriptionNoBorder},n.a.createElement(h.Box,{className:J.infoContainer},(null===P||void 0===P?void 0:P.includeFirmName)&&!Object(x.isEmpty)(null===P||void 0===P?void 0:P.phoneNumber)?null===P||void 0===P?void 0:P.phoneNumber:""))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"PROVIDER ",n.a.createElement("br",null)," AGENT ",n.a.createElement("br",null)," SIGNATURE:"),n.a.createElement(h.Typography,{className:J.infoDescription},n.a.createElement(h.Box,{className:J.infoContainer},(null===P||void 0===P?void 0:P.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===P||void 0===P?void 0:P.signatureUrl)?n.a.createElement("img",{alt:"signature_file",src:null===P||void 0===P?void 0:P.signatureUrl,width:150,height:"auto",style:{imageRendering:"auto"}}):""))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"PRINT NAME:"),n.a.createElement(h.Typography,{className:J.infoDescriptionV2},n.a.createElement(h.Box,{className:J.infoContainer},(null===P||void 0===P?void 0:P.includeValidatorSignatureLine)?null===P||void 0===P?void 0:P.validatorName:"")))))))),n.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"2px 4px 0"}},n.a.createElement(h.Typography,{className:J.textSize11b},"THE CLE PROVIDER:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0 4px 1px"}},n.a.createElement(h.Typography,{className:J.ti},"(check only one)"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:"0 4px 1.5px",border:0,boxShadow:"none"}},n.a.createElement("input",{className:1===(null===P||void 0===P?void 0:P.cleProviderValue)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0has been certified as an ",n.a.createElement("b",null,"Accredited")," ",n.a.createElement("br",null),n.a.createElement("b",null,"Provider")," by the NYS CLE Board,")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 4px 1.5px"}},n.a.createElement(h.Typography,{className:J.textSize12c},n.a.createElement("i",null,"or")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"0 4px 1.5px",border:0,boxShadow:"none"}},n.a.createElement("input",{className:2===(null===P||void 0===P?void 0:P.cleProviderValue)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0has had this ",n.a.createElement("b",null,"individual course")," ",n.a.createElement("br",null),"accredited by the NYS CLE Board as")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingTop:"1px",paddingBottom:"1px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.courseNumLabel},"Course #"),n.a.createElement(h.Typography,{className:J.courseNumDescription},2===(null===P||void 0===P?void 0:P.cleProviderValue)?G:"")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"14.5px 4px 1.5px"}},n.a.createElement(h.Typography,{className:J.textSize11},"This certificate may"," ",n.a.createElement("b",null,n.a.createElement("i",null,"NOT"))," ","be used to award ",n.a.createElement("br",null),"CLE credit to New York attorneys under ",n.a.createElement("br",null),"New York's Approved Jurisdiction policy")))))))))},hi=function(e){var t,i,r,a,o,s,l,c,d=e.certificate,u=e.isInstructor,v=e.licenseId,f=e.sessionDetails,m=e.userId,y=ci(),g=(null===f||void 0===f?void 0:f.title)!==(null===f||void 0===f?void 0:f.courseTitle)?"".concat(null===f||void 0===f?void 0:f.courseTitle," (").concat(null===f||void 0===f?void 0:f.title,")"):null===f||void 0===f?void 0:f.courseTitle,b=(null===f||void 0===f?void 0:f.startDate)?Q()(null===f||void 0===f?void 0:f.startDate).format("MMMM DD, YYYY"):"",S=(null===f||void 0===f?void 0:f.endDate)?Q()(null===f||void 0===f?void 0:f.endDate).format("MMMM DD, YYYY"):"",E=S&&S!==b?"".concat(b," - ").concat(S):b,I=null!==(t=null===f||void 0===f||null===(i=f.approvalCodes)||void 0===i||null===(r=i.find((function(e){return e.licenseId===v})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",O=null!==(a=null===f||void 0===f?void 0:f.courseFormat)&&void 0!==a?a:"",C=(null===f||void 0===f?void 0:f.sessionInstructors)&&(null===f||void 0===f?void 0:f.sessionInstructors.find((function(e){return e.userId===m}))),j=(null===f||void 0===f?void 0:f.sessionParticipants)&&(null===f||void 0===f?void 0:f.sessionParticipants.find((function(e){return e.userId===m}))),w=(c=u?C:j).nyLawProperties,P=null!==(o=w&&(null===w||void 0===w?void 0:w.programFormat))&&void 0!==o?o:"",T=null!==(s=w&&(null===w||void 0===w?void 0:w.difficultyLevel))&&void 0!==s?s:"",A=null!==(l=w&&(null===w||void 0===w?void 0:w.participationMethod))&&void 0!==l?l:"",k="".concat(c.firstName," ").concat((null===d||void 0===d?void 0:d.includeMiddleName)?"".concat(c.middleName):""," ").concat(c.lastName),D=c.completionDate?Q()(c.completionDate).format("MMMM DD, YYYY"):"",L=(null===f||void 0===f?void 0:f.isIndividualSessionDateAllowed)?D:E,J=(0).toFixed(1),F=(0).toFixed(1),B=(0).toFixed(1),R=(0).toFixed(1),U=(0).toFixed(1),G=(0).toFixed(1),q=(0).toFixed(1),M=(0).toFixed(1),z=(0).toFixed(1),W=(0).toFixed(1),V=(0).toFixed(1),_=(0).toFixed(1),Y=(0).toFixed(1),$=(0).toFixed(1),H=!1,K=!1,Z=!1,X=!1,ee=function(e,t){var i,r,n;return null!==(i=null===e||void 0===e||null===(r=e.find((function(e){return e.creditId===t})))||void 0===r||null===(n=r.value)||void 0===n?void 0:n.toString())&&void 0!==i?i:(0).toFixed(1)},te=function(e,t){var i;return null!==(i=null===e||void 0===e?void 0:e.includes(t))&&void 0!==i&&i};if(void 0!==C){var ie,re,ne=null===f||void 0===f||null===(ie=f.sessionLicenses)||void 0===ie?void 0:ie.find((function(e){return e.licenseId===ye})),ae=(null===ne||void 0===ne?void 0:ne.licenseStatus)===p.Dd.Pending,oe=(null===ne||void 0===ne?void 0:ne.licenseStatus)===p.Dd.Denied,se=ne&&ne.expirationDate&&null!==ne.expirationDate&&Object(N.d)(ne.expirationDate)<=Object(N.d)(C.completionDate),le=null===(re=C.userLicensePropertyValues)||void 0===re?void 0:re.find((function(e){return e.licenseId===ye&&14===e.propertyId}));if(A=void 0!==le?1===le.valueInt?"GroupSetting":"Individual":A,!ae&&!oe&&!se){var ce,de,ue,he=null===(ce=C.userLicenseCreditValues)||void 0===ce?void 0:ce.filter((function(e){return e.licenseId===ye}));J=ee(he,1),F=ee(he,2),B=ee(he,3),R=ee(he,4),U=ee(he,5),G=ee(he,6),q=ee(he,7);var ve=(null===(de=C.nyLawProperties)||void 0===de?void 0:de.facultyParticipation)&&(null===(ue=C.nyLawProperties)||void 0===ue?void 0:ue.facultyParticipation);H=te(ve,"Speaker"),K=te(ve,"Moderator"),Z=te(ve,"PanelMember"),X=te(ve,"LawCompetitionFaculty")}}if(void 0!==j){var pe,fe,me=null===f||void 0===f||null===(pe=f.sessionLicenses)||void 0===pe?void 0:pe.find((function(e){return e.licenseId===ye})),ge=(null===me||void 0===me?void 0:me.licenseStatus)===p.Dd.Pending,be=(null===me||void 0===me?void 0:me.licenseStatus)===p.Dd.Denied,Se=me&&me.expirationDate&&null!==me.expirationDate&&Object(N.d)(me.expirationDate)<=Object(N.d)(j.completionDate),Ee=null===(fe=j.userLicensePropertyValues)||void 0===fe?void 0:fe.find((function(e){return e.licenseId===ye&&14===e.propertyId}));if(A=void 0!==Ee?1===Ee.valueInt?"GroupSetting":"Individual":A,!ge&&!be&&!Se){var Ie,Oe=null===(Ie=j.userLicenseCreditValues)||void 0===Ie?void 0:Ie.filter((function(e){return e.licenseId===ye}));M=ee(Oe,1),z=ee(Oe,2),W=ee(Oe,3),V=ee(Oe,4),_=ee(Oe,5),Y=ee(Oe,6),$=ee(Oe,7)}}return n.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",className:y.divDetails},n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Column,{mainAxisAlignment:"middle",minWidth:100},n.a.createElement("img",{alt:"NYlogo",style:{width:"85px",height:"85px"},src:"/images/logos/NYseal2023.GIF"})),n.a.createElement(h.Column,{mainAxisAlignment:"space-between"},n.a.createElement(h.Typography,{style:{fontSize:"34pt",fontFamily:"Impact"}},"NEW YORK CLE CERTIFICATE OF ATTENDANCE"),n.a.createElement(h.Typography,{id:"subheader",style:{color:"white",fontSize:"10.5pt",fontFamily:"Arial",fontWeight:"bold",wordSpacing:"0.1pt",backgroundColor:"black",paddingBottom:"4px",paddingTop:"5px",paddingLeft:"7px",paddingRight:"5px"}},"Issued under NYS CLE Program Rules \xa71500.4(b)(12) and NYS CLE Board Regulations & Guidelines \xa710(B)")))),n.a.createElement(h.Box,{style:{alignItems:"center",margin:"24px 16px 0 16px"}},n.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"stretch"},n.a.createElement(h.Typography,{style:{fontFamily:"Arial",fontSize:"14px",wordSpacing:"1pt",letterSpacing:"0.05em",marginRight:"20em",display:"inline-block"}},"This certificate may be used only for courses accredited by the NYS CLE Board."),n.a.createElement(h.Typography,{style:{fontFamily:"Arial",fontSize:"14px",wordSpacing:"1pt",letterSpacing:"0.05em"}},"All information must be entered by the CLE provider."),n.a.createElement(h.Typography,{style:{fontWeight:"bold",fontFamily:"Arial",fontSize:"13px",letterSpacing:"0.05em"}},"Attorneys must retain their certificates of attendance for at least four (4) years from the date of the program."))),n.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},n.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{maxWidth:420,verticalAlign:"top"}},n.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px"},width:"100%"},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"A. Attorney & Program Information"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Attorney Name:"),n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"292px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee"}},k))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Program Title:"),n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{minHeight:"75px",width:"302px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},n.a.createElement(h.Typography,{id:"NY08Text3"},g)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Attendance Date(s):"),n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"260px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",letterSpacing:"0.025em"}},L))))),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"5px",paddingTop:"5px",paddingLeft:"7px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"B. Credit for Attendance"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{width:"100%",padding:"4px 0 2px 0"}},n.a.createElement(h.Typography,{className:y.textSize11},"Enter the number of credits earned in each category:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{width:"100%",padding:"4px 0 2px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"For Newly Admitted and/or Experienced Attorneys:"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},M)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 2px 16px"}},"Ethics & Professionalism")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},_)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 2px 16px"}},"Skills")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},W)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 2px 16px"}},"Law Practice Management")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},V)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 2px 16px"}},"Areas of Professional Practice")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},Y)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 2px 16px"}},"Cybersecurity, Privacy & Data Protection-Ethics")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},$)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 2px 16px"}},"Cybersecurity, Privacy & Data Protection-General")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.taj,style:{width:"100%",paddingBottom:"2px",padding:"4px 0 2px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"For Experienced Attorneys Only:"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 16px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},z)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 16px 16px"}},"Diversity, Inclusion & Elimination of Bias")))),n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"C. Credit for Faculty Participation"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{width:"100%",padding:"4px 0 2px 0"}},n.a.createElement(h.Typography,{className:y.textSize11},"Enter the participation type and number of credits:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{width:"100%",padding:"4px 0 2px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"For Experienced Attorneys Only:"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{padding:0}},n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement("input",{checked:H,className:y.radioSize,type:"radio","read-only":!0})),n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement(h.Typography,{className:y.textSize11},"Speaker"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement("input",{checked:Z,className:y.radioSize,type:"radio","read-only":!0})),n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement(h.Typography,{className:y.textSize11},"Panel member")))),n.a.createElement(h.TableCell,{style:{padding:0}},n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement("input",{checked:K,className:y.radioSize,type:"radio","read-only":!0})),n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement(h.Typography,{className:y.textSize11},"Moderator"))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement("input",{checked:X,className:y.radioSize,type:"radio","read-only":!0})),n.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},n.a.createElement(h.Typography,{className:y.textSize11},"Law Competition Faculty"))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},J)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Ethics & Professionalism")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},U)),n.a.createElement(h.TableRow,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Skills")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},B)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Law Practice Management")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},R)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Areas of Professional Practice")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},G)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Cybersecurity, Privacy & Data Protection-Ethics")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},q)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Cybersecurity, Privacy & Data Protection-General")),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:y.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},n.a.createElement(h.Typography,{className:y.boxBorderBot},F)),n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0px 0px 16px"}},"Diversity, Inclusion & Elimination of Bias")))),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement(h.Box,{className:y.taj,style:{width:"100%",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:y.textSize9},"New York State CLE Board ",n.a.createElement("br",null),n.a.createElement("a",{href:"www.nycourts.gov/attorneys/cle",target:"_blank",rel:"noopener noreferrer"},"www.nycourts.gov/attorneys/cle"),"\u2022 Revised 01/2023"))),n.a.createElement(h.TableCell,{style:{maxWidth:420,verticalAlign:"top"}},n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"D. Format Completed by Attorney"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0"}},n.a.createElement("input",{checked:"Format1"===P,className:y.radioSize,type:"radio","read-only":!0}),"\xa01. ",n.a.createElement("b",null,"Traditional Live Classroom"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0"}},n.a.createElement("input",{checked:"Format3"===P,className:y.radioSize,type:"radio","read-only":!0}),"\xa02. ",n.a.createElement("b",null,"Live Simultaneous Transmission")," - Questions Allowed",n.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0During Program (e.g., webconference, teleconference,",n.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0videoconference)")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0"}},n.a.createElement("input",{checked:"Format4"===P,className:y.radioSize,type:"radio","read-only":!0}),"\xa03. ",n.a.createElement("b",null,"Live Simultaneous Transmission")," - Questions Not",n.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0Allowed During Program (e.g., webcast, broadcast)")),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0"}},n.a.createElement("input",{checked:"Format2"===P,className:y.radioSize,type:"radio","read-only":!0}),"\xa04. ",n.a.createElement("b",null,"Fully Interactive Videoconference"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0"}},n.a.createElement("input",{checked:"Format5"===P,className:y.radioSize,type:"radio","read-only":!0}),"\xa05. ",n.a.createElement("b",null,"Prerecorded/On-Demand"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.textSize11,style:{padding:"4px 0"}},n.a.createElement("input",{checked:"Format6"===P,className:y.radioSize,type:"radio","read-only":!0}),"\xa06. ",n.a.createElement("b",null,"Other")," (Describe):"," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"259px",verticalAlign:"middle",backgroundColor:"#eceeee"}},n.a.createElement(h.Typography,{id:"NY08Text3"},"Format6"===P&&O)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"E. Attorney's Method of Participation"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11,style:{display:"flex",padding:"4px 0"}},n.a.createElement("input",{checked:"Individual"===A,className:y.radioSize,type:"radio","read-only":!0}),"\xa0Individual (log-in, dial-in, self-study)"),n.a.createElement(h.Typography,{className:y.textSize11,style:{display:"flex",padding:"4px 0"}},n.a.createElement("input",{checked:"GroupSetting"===A,className:y.radioSize,type:"radio","read-only":!0}),"\xa0Group (physically seated together)"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingTop:"5px",paddingLeft:"7px",paddingBottom:"2px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"F. Course Content is Appropriate for:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11,style:{display:"flex",padding:"4px 0"}},n.a.createElement("input",{checked:"Both"===T,className:y.radioSize,type:"radio","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{weight:"bold"},"BOTH"),"\xa0newly admitted & experienced attorneys, or"),n.a.createElement(h.Typography,{className:y.textSize11,style:{display:"flex",padding:"4px 0"}},n.a.createElement("input",{checked:"NonTransitional"===T,className:y.radioSize,type:"radio","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{weight:"bold"},"ONLY"),"\xa0experienced attorneys, or"),n.a.createElement(h.Typography,{className:y.textSize11,style:{display:"flex",padding:"4px 0"}},n.a.createElement("input",{checked:"Transitional"===T,className:y.radioSize,type:"radio","read-only":!0}),"\xa0",n.a.createElement(h.Typography,{weight:"bold"},"ONLY"),"\xa0newly admitted attorneys"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"5px",paddingTop:"5px",paddingLeft:"7px"}},n.a.createElement(h.Typography,{className:y.textSize14b},"G. CLE Provider Information"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Provider Organization:")," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{minHeight:"55px",width:"228px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===d||void 0===d?void 0:d.includeFirmName)?null===d||void 0===d?void 0:d.firmName:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Address:")," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{minHeight:"20px",width:"329px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===d||void 0===d?void 0:d.includeFirmName)&&!Object(x.isEmpty)(null===d||void 0===d?void 0:d.locationValue)?null===d||void 0===d?void 0:d.locationValue:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Telephone:")," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"315px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===d||void 0===d?void 0:d.includeFirmName)&&!Object(x.isEmpty)(null===d||void 0===d?void 0:d.phoneNumber)?null===d||void 0===d?void 0:d.phoneNumber:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Email:")," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"350px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},Object(x.isEmpty)(null===d||void 0===d?void 0:d.validatorEmail)?"":null===d||void 0===d?void 0:d.validatorEmail))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Provider Agent Name:")," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"234px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===d||void 0===d?void 0:d.includeValidatorSignatureLine)?null===d||void 0===d?void 0:d.validatorName:""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"Provider Agent Signature:")," ",n.a.createElement(h.Typography,{className:y.boxTalBorderBot,style:{height:"20px",width:"201px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===d||void 0===d?void 0:d.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===d||void 0===d?void 0:d.signatureUrl)?n.a.createElement("img",{alt:"signature_file",src:null===d||void 0===d?void 0:d.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}):""))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:y.taj,style:{padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11b},"The CLE Provider:"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{verticalAlign:"top",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11},n.a.createElement("input",{checked:1===(null===d||void 0===d?void 0:d.cleProviderValue),className:y.radioSize,style:{verticalAlign:"middle"},type:"radio","read-only":!0}),"\xa0has been certified as an Accredited Provider by the NYS",n.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0CLE Board, or"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{verticalAlign:"top",padding:"4px 0"}},n.a.createElement(h.Typography,{className:y.textSize11},n.a.createElement("input",{checked:2===(null===d||void 0===d?void 0:d.cleProviderValue),className:y.radioSize,style:{verticalAlign:"middle"},type:"radio","read-only":!0}),"\xa0has had this individual course accredited by the NYS",n.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0CLE Board as Course #:",n.a.createElement(h.Typography,{className:y.boxBorderBot,style:{verticalAlign:"top",height:"20px",width:"210px",backgroundColor:"#eceeee"}},2===(null===d||void 0===d?void 0:d.cleProviderValue)?I:"")))))),n.a.createElement(h.Box,{className:y.taj,style:{width:"100%"}},n.a.createElement(h.Typography,{className:y.textSize9},"This certificate may NOT be used to award CLE credit to New York ",n.a.createElement("br",null),"attorneys under New York's Approved Jurisdiction policy."))))))))},vi=Object(Vt.a)((function(){return Object(_t.a)({styleNoWrap:{whiteSpace:"nowrap"},infoDescription:{borderBottom:"#000000 1px solid",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"},infoLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",minWidth:"120px"},infoContainer:{display:"flex"},blankLine:{borderBottom:"#000000 1px solid",minWidth:"300px",whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"},breakLine:{minWidth:"300px",textAlign:"left",color:"#000000",whiteSpace:"nowrap",overflow:"hidden"},signatureField:{width:"330px",fontWeight:800,textAlign:"left"},label:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",textAlign:"left",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},labelOnly:{borderLeft:"0px",borderRight:"0px",borderBottom:"0px",textAlign:"left",whiteSpace:"pre-wrap",overflowWrap:"anywhere"},titleLabel:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"center"},noteDescription:{minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"},noteLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",minWidth:"60px"},data1stField:{width:"420px",textAlign:"left"},data2ndField:{width:"291px",textAlign:"right"},data3rdField:{width:"711px",textAlign:"left"},dataLabel:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",textAlign:"left",whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontWeight:"bolder"},line:{borderBottom:"#000000 1px solid",minWidth:"40px",flex:0,whiteSpace:"pre-wrap",textAlign:"left"},lineText:{minWidth:"300px",flex:1,whiteSpace:"pre-wrap",textAlign:"left"},creditDescription:{borderBottom:"#000000 1px solid",flex:1,marginLeft:"3px",minWidth:"50px",display:"inline-block",textAlign:"center"},divDetails:{paddingRight:"16px",paddingLeft:"16px","@media print":{size:"letter !important",zoom:"80% !important"}}})})),pi=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E=e.certificate,I=e.isInstructor,O=e.licenseId,C=e.sessionDetails,j=e.userId,w=vi(),P=(null===C||void 0===C?void 0:C.title)!==(null===C||void 0===C?void 0:C.courseTitle)?"".concat(null===C||void 0===C?void 0:C.courseTitle," (").concat(null===C||void 0===C?void 0:C.title,")"):null===C||void 0===C?void 0:C.courseTitle,T=null!==(t=null===C||void 0===C?void 0:C.courseFormat)&&void 0!==t?t:"",A=(null===C||void 0===C?void 0:C.startDate)?Q()(null===C||void 0===C?void 0:C.startDate).format("MMMM DD, YYYY"):"",k=(null===C||void 0===C?void 0:C.endDate)?Q()(null===C||void 0===C?void 0:C.endDate).format("MMMM DD, YYYY"):"",D=k&&k!==A?"".concat(A," - ").concat(k):A,L=null!==(i=null===C||void 0===C||null===(r=C.location)||void 0===r?void 0:r.city)&&void 0!==i?i:"",J=null!==(a=null===C||void 0===C||null===(o=C.location)||void 0===o?void 0:o.state)&&void 0!==a?a:"",F="";F=Object(x.isEmpty)(L)&&Object(x.isEmpty)(J)?"":"".concat((null===E||void 0===E?void 0:E.includeCity)||(null===E||void 0===E?void 0:E.includeState)?"".concat((null===E||void 0===E?void 0:E.includeCity)?L:"").concat((null===E||void 0===E?void 0:E.includeState)&&!Object(x.isEmpty)(J)?(null===E||void 0===E?void 0:E.includeCity)&&!Object(x.isEmpty)(L)?", ".concat(J):J:""):""),S=I?(null===C||void 0===C?void 0:C.sessionInstructors)&&(null===C||void 0===C?void 0:C.sessionInstructors.find((function(e){return e.userId===j}))):(null===C||void 0===C?void 0:C.sessionParticipants)&&(null===C||void 0===C?void 0:C.sessionParticipants.find((function(e){return e.userId===j})));var B="".concat(S.firstName," ").concat((null===E||void 0===E?void 0:E.includeMiddleName)?"".concat(S.middleName):""," ").concat(S.lastName),R=Object(x.uniq)(null===C||void 0===C||null===(s=C.sessionLicenses)||void 0===s||null===(l=s.filter((function(e){return e.licenseId!==O})))||void 0===l?void 0:l.map((function(e){return e.licenseId}))),U=S.completionDate?Q()(S.completionDate).format("MMMM DD, YYYY"):"",G=(null===C||void 0===C?void 0:C.isIndividualSessionDateAllowed)?U:D,q=Object(x.isEmpty)(R)?"":null===(c=function(){var e=0;return R.map((function(t){var i,r,n,a,o,s;e+=1;var l=null!==(i=null===C||void 0===C||null===(r=C.approvalCodes)||void 0===r||null===(n=r.find((function(e){return e.licenseId===t})))||void 0===n?void 0:n.propertyValue)&&void 0!==i?i:"",c=null!==(a=null===C||void 0===C||null===(o=C.sessionLicenses)||void 0===o||null===(s=o.find((function(e){return e.licenseId===t})))||void 0===s?void 0:s.name)&&void 0!==a?a:"";return"".concat(c).concat(Object(x.isEmpty)(l)?"":" (".concat(l,")")).concat(e!==R.length?";":"")}))}())||void 0===c?void 0:c.join(" "),M=function(e){var t,i=null===C||void 0===C||null===(t=C.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===O})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(S.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},z=null===C||void 0===C||null===(d=C.sessionLicenses)||void 0===d||null===(u=d.find((function(e){return e.licenseId===O})))||void 0===u?void 0:u.sessionLicenseCredits,W=null===(v=S)||void 0===v||null===(f=v.userLicenseCreditValues)||void 0===f?void 0:f.filter((function(e){return e.licenseId===O})),V=function(e,t){if(O===be||O===ge){var i,r,n=Array();return 50===e&&(O===be?n.push(at,ot,st,lt):n.push(tt,it)),60===e&&(O===be?n.push(ct,dt,ut,ht):n.push(rt,nt)),t?M(Object(x.sum)(null===z||void 0===z||null===(r=z.filter((function(e){return n.includes(e.creditId)})))||void 0===r?void 0:r.map((function(e){return e.creditValue})))):M(Object(x.sum)(null===W||void 0===W||null===(i=W.filter((function(e){return n.includes(e.creditId)})))||void 0===i?void 0:i.map((function(e){return e.value}))))}return M(0)},_=function(e,t,i){var r,n,a=0;return O===be||O===ge?(50===e&&(a=t?O===be?at:tt:O===be?st:0),60===e&&(a=t?O===be?ct:rt:O===be?ut:0),M(i?null===z||void 0===z||null===(n=z.find((function(e){return e.creditId===a})))||void 0===n?void 0:n.creditValue:null===W||void 0===W||null===(r=W.find((function(e){return e.creditId===a})))||void 0===r?void 0:r.value)):M(0)},Y=V(50,!0),$=V(60,!0),H=_(50,!0,!0),K=_(50,!1,!0),Z=_(60,!0,!0),X=_(60,!1,!0),ee=V(50,!1),te=V(60,!1),ie=_(50,!0,!1),re=_(50,!1,!1),ne=_(60,!0,!1),ae=_(60,!1,!1);return n.a.createElement(h.Box,{style:{border:"5px double #000000"},maxWidth:"855px",margin:"0 auto"},n.a.createElement(h.Box,{className:w.divDetails},n.a.createElement(h.Grid,{container:!0,spacing:"form"},(null===E||void 0===E?void 0:E.includeFirmLogo)&&!Object(x.isEmpty)(null===E||void 0===E?void 0:E.firmLogoUrl)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:4},n.a.createElement("img",{src:null===E||void 0===E?void 0:E.firmLogoUrl,alt:"Logo",width:"320px",height:"80px"}))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:(null===E||void 0===E?void 0:E.includeFirmLogo)&&!Object(x.isEmpty)(null===E||void 0===E?void 0:E.firmLogoUrl)?0:4,mb:1},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h5",color:"inherit",weight:"bold"},"Uniform Certificate of ".concat(I?"Instruction":"Attendance")),n.a.createElement(h.Typography,{variant:"body1",color:"inherit"},"This certificate should be filed with the appropriate Regulatory Board.")))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},n.a.createElement(h.Box,{mb:2,ml:6,mr:6},n.a.createElement(h.Table,{style:{width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{padding:"2px 0",border:0}},n.a.createElement(h.Box,{className:w.infoContainer},n.a.createElement(h.Typography,{className:w.infoLabel},"Sponsor:"),n.a.createElement(h.Typography,{className:w.infoDescription},null!==(m=null===C||void 0===C?void 0:C.provider)&&void 0!==m?m:"")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{padding:"2px 0",border:0}},n.a.createElement(h.Box,{className:w.infoContainer},n.a.createElement(h.Typography,{className:w.infoLabel},"Program Title:"),n.a.createElement(h.Typography,{className:w.infoDescription},P)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{padding:"2px 0",border:0}},n.a.createElement(h.Box,{className:w.infoContainer},n.a.createElement(h.Typography,{className:w.infoLabel},"Date:"),n.a.createElement(h.Typography,{className:w.infoDescription},G)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{padding:"2px 0",border:0}},n.a.createElement(h.Box,{className:w.infoContainer},n.a.createElement(h.Typography,{className:w.infoLabel},"Location:"),n.a.createElement(h.Typography,{className:w.infoDescription},(null===E||void 0===E?void 0:E.includeLocation)?F:"")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{padding:"2px 0",border:0}},n.a.createElement(h.Box,{className:w.infoContainer},n.a.createElement(h.Typography,{className:w.infoLabel},"Format:"),n.a.createElement(h.Typography,{className:w.infoDescription},T)))))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{ml:6,mr:6},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{variant:"body1",color:"inherit",weight:"bold"},"This program was approved by the following Boards. Approval Codes are shown when indicated."),n.a.createElement(h.Table,{style:{width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"2px 0",border:0,whiteSpace:"normal"}},n.a.createElement(h.Box,{className:w.infoContainer,style:{justifyContent:"flex-start",marginTop:Object(x.isEmpty)(R)?"17px":"0px"}},n.a.createElement(h.Box,{className:w.infoContainer,style:{alignItems:"flex-end"}},n.a.createElement(h.Typography,{className:w.data3rdField},q,n.a.createElement(h.Typography,{className:w.dataLabel},""))))))))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{ml:6,mr:6,className:w.breakLine},n.a.createElement(h.Typography,{colorMode:"dark",weight:"bold"},"======================================================================================")),n.a.createElement(h.Box,{ml:6,mr:6},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{variant:"body1",color:"inherit",weight:"bold"},"This program is eligible for a total of:")))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},n.a.createElement(h.Box,{ml:6,mr:6},n.a.createElement(h.Table,{style:{width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},n.a.createElement(h.Typography,{className:w.lineText},n.a.createElement(h.Typography,{className:w.creditDescription},$),"\xa0(60 minute hour) ",n.a.createElement("b",null,"Total Credits"),", including, \xa0",n.a.createElement(h.Typography,{className:w.creditDescription},Z),"\xa0",n.a.createElement("b",null,"Ethics")," and"," ",n.a.createElement(h.Typography,{className:w.creditDescription},X),"\xa0",n.a.createElement("b",null,"Substance Abuse")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},n.a.createElement(h.Typography,{className:w.lineText},n.a.createElement(h.Typography,{className:w.creditDescription},Y),"\xa0(50 minute hour) ",n.a.createElement("b",null,"Total Credits"),", including, \xa0",n.a.createElement(h.Typography,{className:w.creditDescription},H),"\xa0",n.a.createElement("b",null,"Ethics")," and"," ",n.a.createElement(h.Typography,{className:w.creditDescription},K),"\xa0",n.a.createElement("b",null,"Substance Abuse")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{display:"flex",marginTop:"16px",padding:0,border:0}},n.a.createElement(h.Typography,{className:w.noteLabel},"NOTE:"),n.a.createElement(h.Typography,{className:w.noteDescription},"Introductory remarks, keynote addresses, business meetings, breaks, receptions, etc., are not included in the computation of credit.")))))),n.a.createElement(h.Box,{mb:1,ml:6,mr:6,className:w.breakLine},n.a.createElement(h.Typography,{colorMode:"dark",weight:"bold"},"======================================================================================"))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{ml:6,mr:6},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{variant:"body1",color:"inherit",weight:"bold"},"TO BE COMPLETED BY THE ".concat(I?"INSTRUCTOR":"ATTENDEE",":")))),n.a.createElement(h.Box,{mt:2,ml:6,mr:6},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Typography,{variant:"body1",color:"inherit"},"By signing below, I certify that I ",I?"instructed":"attended"," the program described above and am entitled to claim")))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},n.a.createElement(h.Box,{mb:6,ml:6,mr:6},n.a.createElement(h.Table,{style:{width:"100%"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},n.a.createElement(h.Typography,{className:w.lineText},n.a.createElement(h.Typography,{className:w.creditDescription},te),"\xa0(60 minute hour) ",n.a.createElement("b",null,"Total Credits"),", including, \xa0",n.a.createElement(h.Typography,{className:w.creditDescription},ne),"\xa0",n.a.createElement("b",null,"Ethics")," and"," ",n.a.createElement(h.Typography,{className:w.creditDescription},ae),"\xa0",n.a.createElement("b",null,"Substance Abuse")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},n.a.createElement(h.Typography,{className:w.lineText},n.a.createElement(h.Typography,{className:w.creditDescription},ee),"\xa0(50 minute hour) ",n.a.createElement("b",null,"Total Credits"),", including, \xa0",n.a.createElement(h.Typography,{className:w.creditDescription},ie),"\xa0",n.a.createElement("b",null,"Ethics")," and"," ",n.a.createElement(h.Typography,{className:w.creditDescription},re),"\xa0",n.a.createElement("b",null,"Substance Abuse")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 0",justifyContent:"flex-start",marginTop:"25px",alignItems:"flex-end",border:0}},n.a.createElement(h.Typography,{className:w.data1stField},B,n.a.createElement(h.Typography,{className:w.dataLabel},I?"Instructor":"Attendee"," Name (print)")),n.a.createElement(h.Box,{className:w.data2ndField},n.a.createElement(h.Typography,{className:w.dataLabel},"License and License Number")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",justifyContent:"flex-start",marginTop:(null===E||void 0===E?void 0:E.includeParticipantSignature)&&!Object(x.isEmpty)(null===(y=S)||void 0===y?void 0:y.signatureUrl)?"0px":"30px",padding:"2px 0",border:0}},n.a.createElement(h.Typography,{className:w.data1stField},(null===E||void 0===E?void 0:E.includeParticipantSignature)&&!Object(x.isEmpty)(null===(g=S)||void 0===g?void 0:g.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===(b=S)||void 0===b?void 0:b.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),n.a.createElement(h.Typography,{className:w.dataLabel},I?"Instructor":"Attendee"," Signature")),n.a.createElement(h.Box,{className:w.data2ndField},n.a.createElement(h.Typography,{className:w.dataLabel},"Date")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 0",justifyContent:"flex-start",marginTop:"30px",border:0}},n.a.createElement(h.Box,{className:w.data3rdField},n.a.createElement(h.Typography,{className:w.dataLabel},"State where credits are to be registered")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:w.styleNoWrap,style:{display:"flex",marginTop:"16px",padding:0,border:0}},n.a.createElement(h.Typography,{className:w.noteLabel},"NOTE:"),n.a.createElement(h.Typography,{className:w.noteDescription},"Complete a certificate for each Board with which you are required to file. Rules for some regulators require the provider to file attendance with the regulator as a service to the participants. ",n.a.createElement("br",null),"Please confirm jurisdictional reporting requirements with the provider or state regulator."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",justifyContent:"flex-end",paddingTop:"25px",border:0}},n.a.createElement(h.Box,{className:w.signatureField},n.a.createElement(h.Typography,{className:w.labelOnly,style:{fontWeight:"bolder"}},"Acknowledged by:")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end",border:0}},n.a.createElement(h.Typography,{className:w.signatureField},(null===E||void 0===E?void 0:E.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===E||void 0===E?void 0:E.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===E||void 0===E?void 0:E.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down",alignItems:"flex-start"}}),n.a.createElement(h.Typography,{className:w.label,style:{fontWeight:"bolder"}},"Sponsor Representative")))))))))))},fi=Object(V.makeStyles)((function(){return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},textB:{fontFamily:"Times New Roman, Garamond, Georgia",textAlign:"left",fontSize:"13pt"},text:{fontFamily:"Times New Roman, Garamond, Georgia",textAlign:"center",whiteSpace:"nowrap",fontSize:"13pt"},textSize10:{fontSize:"10pt",fontFamily:"Times New Roman, Garamond, Georgia"},textSize11:{fontSize:"11pt",fontFamily:"Times New Roman, Garamond, Georgia"},textSize12:{fontSize:"12pt",fontFamily:"Times New Roman, Garamond, Georgia"},textSize12Bold:{fontSize:"11.5pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},textSize13:{fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia"},textSize13Bold:{fontSize:"13pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},textSize13Customize:{fontSize:"13pt",fontStyle:"italic",fontFamily:"Times New Roman, Garamond, Georgia",textDecoration:"none"},textSize14:{fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Georgia"},textSize17:{fontSize:"17pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},textSize19:{fontSize:"19pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},textSize14Bold:{fontSize:"14pt",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},textSize14Customize:{fontSize:"14pt",fontWeight:"bolder",textDecoration:"underline",fontStyle:"italic",fontFamily:"Times New Roman, Garamond, Georgia"},textSize14CustomizeA:{fontSize:"14pt",fontWeight:"bolder",textDecoration:"underline",color:"blue",fontFamily:"Times New Roman, Garamond, Georgia"},table:{height:"100%",width:"100%",alignItems:"center",margin:"0 auto",maxWidth:"820px !important"},infoDescription:{borderBottom:"#000000 1px solid",fontSize:"13pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},infoDescriptionV2:{borderBottom:"#000000 1px solid",fontSize:"13pt",minWidth:"123px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},infoContainer:{display:"flex"},infoLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia"},infoLabelV2:{flex:0,marginRight:"5px",fontWeight:"bolder",whiteSpace:"pre-wrap",textAlign:"left",minWidth:"122px",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia",letterSpacing:"0.1pt"},infoLabelV3:{flex:0,marginRight:"15px",fontWeight:"bolder",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia"},infoLabelV4:{flex:0,marginRight:"8px",fontSize:"12.5pt",fontFamily:"Times New Roman, Garamond, Georgia"},line:{borderBottom:"#000000 1px solid",minWidth:"40px",flex:0,whiteSpace:"pre-wrap",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},lineV2:{borderBottom:"#000000 1px solid",minWidth:"40px",flex:0,whiteSpace:"pre-wrap",textAlign:"center",fontFamily:"Times New Roman, Garamond, Georgia"},noLine:{minWidth:"40px",flex:0,whiteSpace:"pre-wrap",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},lineText:{fontSize:"13pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",letterSpacing:"-0.01em",marginLeft:"16px",fontFamily:"Times New Roman, Garamond, Georgia"},lineTextV2:{fontSize:"12.5pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"16px",fontFamily:"Times New Roman, Garamond, Georgia"},lineTextV3:{fontSize:"13pt",minWidth:"250px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"5px",fontFamily:"Times New Roman, Garamond, Georgia"},lineTextV4:{fontSize:"13pt",minWidth:"220px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"5px",fontFamily:"Times New Roman, Garamond, Georgia"},lineTextV5:{fontSize:"13pt",minWidth:"100px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"5px",fontFamily:"Times New Roman, Garamond, Georgia"},creditDescription:{borderBottom:"#000000 1px solid",fontSize:"13pt",flex:1,marginLeft:"3px",minWidth:"50px",display:"inline-block",textAlign:"center",fontFamily:"Times New Roman, Garamond, Georgia"},dateField:{width:"200px",fontWeight:600,textAlign:"center",marginRight:"30px",fontFamily:"Times New Roman, Garamond, Georgia"},signatureField:{width:"350px",fontWeight:600,textAlign:"center",marginLeft:"15px",marginRight:"15px",fontFamily:"Times New Roman, Garamond, Georgia"},label:{borderTop:"1px",borderStyle:"solid",borderColor:"#000000",borderLeft:"0px",borderRight:"0px",borderBottom:"0px",fontWeight:"bolder",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia"},dataLabel:{flex:0,marginRight:"8px",fontWeight:"bolder",minWidth:"180px",textAlign:"right",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia"},dataDescription:{fontSize:"13pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},creditDescriptionNoBorder:{fontSize:"13pt",flex:1,minWidth:"50px",display:"inline-block",textAlign:"left",fontWeight:"bolder",fontFamily:"Times New Roman, Garamond, Georgia"},divDetails:{"@media print":{size:"letter !important",zoom:"75% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"},"& td":{border:"none"}},divDetails2022:{"@media print":{size:"letter !important",zoom:"65% !important"},"& div:has(table)":{background:"0 !important",overflow:"hidden"},"& td":{border:"none"}}})})),mi=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w,P,T,A=e.certificate,k=e.isInstructor,D=e.sessionDetails,L=e.userId,J=fi(),F=(null===D||void 0===D?void 0:D.title)!==(null===D||void 0===D?void 0:D.courseTitle)?"".concat(null===D||void 0===D?void 0:D.courseTitle," (").concat(null===D||void 0===D?void 0:D.title,")"):null===D||void 0===D?void 0:D.courseTitle,B=null!==(t=null===D||void 0===D?void 0:D.courseFormat)&&void 0!==t?t:"",R=(null===D||void 0===D?void 0:D.startDate)?Q()(null===D||void 0===D?void 0:D.startDate).format("MMMM DD, YYYY"):"",U=(null===D||void 0===D?void 0:D.endDate)?Q()(null===D||void 0===D?void 0:D.endDate).format("MMMM DD, YYYY"):"",G=U&&U!==R?"".concat(R," - ").concat(U):R,q=null!==(i=null===D||void 0===D||null===(r=D.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",M=null!==(a=null===D||void 0===D||null===(o=D.location)||void 0===o?void 0:o.city)&&void 0!==a?a:"",z=null!==(s=null===D||void 0===D||null===(l=D.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",W=null!==(c=null===D||void 0===D?void 0:D.provider)&&void 0!==c?c:"",V="";V=Object(x.isEmpty)(M)&&Object(x.isEmpty)(z)?"".concat(q):"".concat(q," ").concat((null===A||void 0===A?void 0:A.includeCity)||(null===A||void 0===A?void 0:A.includeState)?"(".concat((null===A||void 0===A?void 0:A.includeCity)?M:"").concat((null===A||void 0===A?void 0:A.includeState)&&!Object(x.isEmpty)(z)?(null===A||void 0===A?void 0:A.includeCity)&&!Object(x.isEmpty)(M)?", ".concat(z):z:"",")"):"");var _=(null===D||void 0===D?void 0:D.sessionInstructors)&&(null===D||void 0===D?void 0:D.sessionInstructors.find((function(e){return e.userId===L}))),Y=(null===D||void 0===D?void 0:D.sessionParticipants)&&(null===D||void 0===D?void 0:D.sessionParticipants.find((function(e){return e.userId===L}))),$=k?_:Y,H="".concat($.firstName," ").concat((null===A||void 0===A?void 0:A.includeMiddleName)?"".concat($.middleName):""," ").concat($.lastName),K="".concat((null===A||void 0===A?void 0:A.includeBarNumber)&&null!==(d=null===$||void 0===$?void 0:$.licenseBarNumber)&&void 0!==d?d:""),Z=null!==(u=null===$||void 0===$?void 0:$.phone)&&void 0!==u?u:"",X=null!==(v=null===$||void 0===$?void 0:$.email)&&void 0!==v?v:"",ee=null===$||void 0===$||null===(f=$.userLicenseCreditValues)||void 0===f?void 0:f.filter((function(e){return e.licenseId===Ee})),te=null===$||void 0===$||null===(m=$.userLicensePropertyValues)||void 0===m?void 0:m.filter((function(e){return e.licenseId===Ee})),ie=function(e){var t,i=null===D||void 0===D||null===(t=D.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===Ee})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},re=function(e){var t,i=null===D||void 0===D||null===(t=D.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===Ee})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||n||a?"":e||""},ne=null===D||void 0===D||null===(y=D.sessionLicenses)||void 0===y||null===(g=y.find((function(e){return e.licenseId===Ee})))||void 0===g?void 0:g.sessionLicenseCredits,ae=ie(Object(x.sum)(null===ne||void 0===ne?void 0:ne.map((function(e){return e.creditValue})))),oe=ie(null===ne||void 0===ne||null===(b=ne.find((function(e){return 1===e.creditId})))||void 0===b?void 0:b.creditValue),se=ie(Object(x.sum)(null===ee||void 0===ee?void 0:ee.map((function(e){return e.value})))),le=ie(null===ee||void 0===ee||null===(S=ee.find((function(e){return 1===e.creditId})))||void 0===S?void 0:S.value),ce=re(null===te||void 0===te||null===(E=te.find((function(e){return e.propertyId===Ye})))||void 0===E?void 0:E.valueChar),de=re(null===te||void 0===te||null===(I=te.find((function(e){return e.propertyId===$e})))||void 0===I?void 0:I.valueChar),ue=re(null===te||void 0===te||null===(O=te.find((function(e){return e.propertyId===He})))||void 0===O?void 0:O.valueChar),he=re(null===te||void 0===te||null===(C=te.find((function(e){return e.propertyId===Ke})))||void 0===C?void 0:C.valueChar),ve=re(null===te||void 0===te||null===(j=te.find((function(e){return e.propertyId===Qe})))||void 0===j?void 0:j.valueChar),pe=null!==(w=null===D||void 0===D||null===(P=D.approvalCodes)||void 0===P||null===(T=P.find((function(e){return e.licenseId===Ee})))||void 0===T?void 0:T.propertyValue)&&void 0!==w?w:"",fe=$.completionDate?Q()($.completionDate).format("MMMM DD, YYYY"):"",me=(null===D||void 0===D?void 0:D.isIndividualSessionDateAllowed)?fe:G;return n.a.createElement(h.Box,{maxWidth:"1000px",style:{width:"100%",alignItems:"center",padding:"0 0 0 10px"},className:J.divDetails},n.a.createElement(h.Table,{className:J.table,id:"tblVACertificate",style:{width:"100%",pageBreakAfter:"auto"}},n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text},n.a.createElement(h.Typography,{className:J.textSize17},"Virginia MCLE Board"),n.a.createElement(h.Typography,{className:J.textSize14,style:{fontWeight:"bolder"}},"CERTIFICATION OF ".concat(k?"TEACHING (FORM 3)":"ATTENDANCE (FORM 2)")),n.a.createElement(h.Typography,{className:J.textSize11},"MCLE requirement pursuant to Paragraph 17, of Section IV, Part Six, Rules of the Supreme Court of Virginia ",n.a.createElement("br",null)," and the MCLE Board Regulations."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text},n.a.createElement(h.Typography,{className:J.textSize14},"INSTRUCTIONS"),n.a.createElement(h.Typography,{className:J.textSize12,style:{fontWeight:"bold"}},k?"Email this form to mymcle@vsb.org":"Certify Your Attendance Online at www.vsb.org see Member Login"),n.a.createElement(h.Typography,{className:J.textSize12},k?"Complete this Certification to Include Both Teaching and Attendance hours. Retain copy for two years.":"Complete this Certification. Retain for two years."),n.a.createElement(h.Typography,{className:J.textSize12},"MCLE Compliance Deadline - October 31. MCLE Reporting Deadline - December 15."),k&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{className:J.textSize12},"Subsequent Late Reporting Deadline - February 1")),n.a.createElement(h.Typography,{className:J.textSize12},"A $100 fee will be assessed for failure to comply with",k?" each ":" either "," deadline."))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:J.text,style:{padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"Member Name:"),n.a.createElement(h.Typography,{className:J.infoDescription},H))),n.a.createElement(h.TableCell,{className:J.text,style:{padding:"16px 0 0 16px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"VSB Member Number:"),n.a.createElement(h.Typography,{className:J.infoDescription,style:{minWidth:"294px"}},K)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:J.text,style:{padding:"0 "}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"Address:"),n.a.createElement(h.Typography,{className:J.infoDescription,style:{marginLeft:"53px"}}))),n.a.createElement(h.TableCell,{className:J.text,style:{padding:"0 0 0 15px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"Daytime Phone:"),n.a.createElement(h.Typography,{className:J.infoDescription,style:{minWidth:"350px"}},Z)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:J.text,style:{padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel}),n.a.createElement(h.Typography,{className:J.infoDescription,style:{marginLeft:"123px"}}," "))),n.a.createElement(h.TableCell,{className:J.text,style:{padding:"0 0 0 15px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"E-mail Address:"),n.a.createElement(h.Typography,{className:J.infoDescription,style:{minWidth:"349px"}},X)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:J.text,style:{padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel}),n.a.createElement(h.Typography,{className:J.infoDescription,style:{marginLeft:"123px"}}," ")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},n.a.createElement(h.Typography,{className:J.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left"}},"City"),n.a.createElement(h.Box,{style:{flex:"0%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:J.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"State"))),n.a.createElement(h.Box,{style:{flex:"55%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:J.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip"))))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.dataLabel},"Course ID Number:"),n.a.createElement(h.Typography,{className:J.dataDescription},pe)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.dataLabel},"Sponsor:"),n.a.createElement(h.Typography,{className:J.dataDescription},W)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.dataLabel},"Course Program/Title:"),n.a.createElement(h.Typography,{className:J.dataDescription},F)))),k&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},"\xa0",n.a.createElement(h.Typography,{className:J.dataLabel},"CLE (Ethics) Credits:\xa0\xa0",n.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder,style:{marginRight:"32px"}},se),n.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder},"(",le,") Ethics"))))),!k&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.dataLabel,style:{whiteSpace:"pre-wrap"}},B),n.a.createElement(h.Typography,{className:J.dataDescription},"CLE Credits (Ethics Credits): \xa0",n.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder,style:{marginLeft:"8px",marginRight:"3px",minWidth:"36px"}},ae),n.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder,style:{textAlign:"center",fontSize:"13pt"}},"(",oe,")"))))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},k?"Date(s) of Teaching:":"Date Completed:"),n.a.createElement(h.Typography,{className:J.infoDescription,style:{fontWeight:"bolder"}},me))),n.a.createElement(h.TableCell,{className:J.text,style:{padding:"16px 0 0 15px"}},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.infoLabel},"Location",k&&"(s):"),n.a.createElement(h.Typography,{className:J.infoDescription,style:{fontWeight:"bolder",minWidth:"396px"}},(null===A||void 0===A?void 0:A.includeLocation)?V:"")))),!k&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.textB,style:{padding:"16px 0 0 0",letterSpacing:"-0.01em"}},n.a.createElement(h.Typography,{className:J.textB,style:{fontWeight:"bolder"}},"By my signature below I certify"),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.line}),n.a.createElement(h.Typography,{className:J.lineText},"I attended a total of"," ",n.a.createElement(h.Typography,{className:J.creditDescription},se),"\xa0(hrs/mins) of ",n.a.createElement("b",null,"approved CLE"),", of which (",n.a.createElement(h.Typography,{className:J.creditDescription},le),") (hrs/mins) were in ",n.a.createElement("b",null,"approved Ethics"),". Credit")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.noLine}),n.a.createElement(h.Typography,{className:J.lineText},"is awarded for actual time in attendance (0.5 hr. minimum) rounded to the nearest half hour. (Example: 1hr 15min = 1.5hr)")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Box,{className:J.line}),n.a.createElement(h.Typography,{className:J.lineText},"The sessions I am claiming had written instructional materials to cover the subject.")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.line}),n.a.createElement(h.Typography,{className:J.lineText},"I participated in this program in a setting physically suitable to the course.")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.line}),n.a.createElement(h.Typography,{className:J.lineText},"I was given the opportunity to participate in discussions with other attendees and/or the presenter.")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.line}),n.a.createElement(h.Typography,{className:J.lineText},"I understand I may not receive credit for any course/segment which is not materially different in substance than a")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.noLine}),n.a.createElement(h.Typography,{className:J.lineText},"course/segment for which credit has been previously given during the same completion period or the completion period")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.noLine}),n.a.createElement(h.Typography,{className:J.lineText},"immediately prior.")),n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.line}),n.a.createElement(h.Typography,{className:J.lineText},"I understand that a materially false statement shall be subject to appropriate disciplinary action.")),n.a.createElement("br",null),"*NOTE: A maximum of 8.0 hours from pre-recorded courses may be applied to meet your yearly MCLE requirement. Minimum of",n.a.createElement("br",null)," 4.0 hours from live interactive courses required.")),k&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{padding:"16px 0 0 0"}},n.a.createElement(h.Typography,{className:J.textB,style:{fontWeight:"bolder",textDecoration:"underline"}},n.a.createElement("i",null,"ONLY SESSIONS WITH WRITTEN INSTRUCTIONAL MATERIALS ARE APPROVABLE FOR CREDIT")),n.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",padding:"16px 0 0 0",letterSpacing:"0.1pt"}},"My teaching segment was"," ",n.a.createElement(h.Typography,{className:J.creditDescription},ce)," (hrs/mins) of CLE, of which (",n.a.createElement(h.Typography,{className:J.creditDescription},de),") (hrs/mins) were in Ethics."),n.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"In addition, I attended ",n.a.createElement("i",null,"other")," segments totaling"," ",n.a.createElement(h.Typography,{className:J.creditDescription},ue)," (hrs/mins) of CLE, of which (",n.a.createElement(h.Typography,{className:J.creditDescription},he),") (hrs/mins) were in Ethics."),n.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"I spent ",n.a.createElement(h.Typography,{className:J.creditDescription},ve)," hours preparing for teaching my segment of the course."),n.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"No more than four (4) hours of preparation credit may be claimed per one hour of instructional time in your presentation, and",n.a.createElement("br",null)," no more than eight (8) hours total for any course. Total credit is awarded for actual time spent teaching, attendance and",n.a.createElement("br",null)," preparation rounded to the nearest half hour. (Example: 1hr 15min = 1.5hr)"),n.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"A materially false statement shall be subject to appropriate disciplinary action."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text,style:{fontSize:"13pt",padding:"45px 0 0 0"}},n.a.createElement(h.Box,{className:J.infoContainer,style:{justifyContent:"flex-end"}},n.a.createElement(h.Typography,{className:J.dateField},n.a.createElement(h.Typography,{className:J.label},"Date")),n.a.createElement(h.Typography,{className:J.signatureField},(null===A||void 0===A?void 0:A.includeParticipantSignature)&&!Object(x.isEmpty)(null===$||void 0===$?void 0:$.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===$||void 0===$?void 0:$.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),n.a.createElement(h.Typography,{className:J.label},"Signature"))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text},k?n.a.createElement(h.Typography,{className:J.textSize14},n.a.createElement(h.Box,{className:J.infoContainer},n.a.createElement(h.Typography,{className:J.textSize14,style:{fontWeight:"bolder"}},"Questions?"),"\xa0Contact the MCLE Department at (804) 775-0577 or E-mail questions to mcle@vsb.org")):n.a.createElement(h.Typography,{className:J.textSize14},"Questions? Contact the MCLE Department at (804) 775-0577"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:J.text},n.a.createElement(h.Typography,{className:J.textSize11},k?"If not e-mailed, this form may be mailed to":"If not certified online, this form may be mailed"),n.a.createElement(h.Typography,{className:J.textSize13},"Virginia MCLE Board"),n.a.createElement(h.Typography,{className:J.textSize11},"Virginia State Bar"),n.a.createElement(h.Typography,{className:J.textSize11},"1111 East Main Street, Suite 700"),n.a.createElement(h.Typography,{className:J.textSize11},"Richmond, VA 23219-",k?"3565":"0026"),n.a.createElement(h.Typography,{className:J.textSize11},"Web site: www.vsb.org"))))))};!function(e){e.LiveOrGroupVideo="LiveOrGroupVideo",e.Other="Other",e.AudioCD="AudioCD",e.VideoDVD="VideoDVD",e.InternetOnDemand="InternetOnDemand",e.VideoconferenceOrSatellite="VideoconferenceOrSatellite",e.LiveTelephoneOrLiveWebcast="LiveTelephoneOrLiveWebcast"}(si||(si={}));var yi=function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w,P,T,A,k,D,L,J,F,B,R,U,G,q,M,z=e.certificate,W=e.isInstructor,V=e.sessionDetails,_=e.userId,Y=fi(),$=(null===V||void 0===V?void 0:V.title)!==(null===V||void 0===V?void 0:V.courseTitle)?"".concat(null===V||void 0===V?void 0:V.courseTitle," (").concat(null===V||void 0===V?void 0:V.title,")"):null===V||void 0===V?void 0:V.courseTitle,H=null!==(t=null===V||void 0===V?void 0:V.courseFormat)&&void 0!==t?t:"",K=(null===V||void 0===V?void 0:V.startDate)?Q()(null===V||void 0===V?void 0:V.startDate).format("MMMM DD, YYYY"):"",Z=(null===V||void 0===V?void 0:V.endDate)?Q()(null===V||void 0===V?void 0:V.endDate).format("MMMM DD, YYYY"):"",X=Z&&Z!==K?"".concat(K," - ").concat(Z):K,ee=null!==(i=null===V||void 0===V||null===(r=V.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",te=null!==(a=null===V||void 0===V||null===(o=V.location)||void 0===o?void 0:o.city)&&void 0!==a?a:"",ie=null!==(s=null===V||void 0===V||null===(l=V.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",re=null!==(c=null===V||void 0===V?void 0:V.provider)&&void 0!==c?c:"",ne="";ne=Object(x.isEmpty)(te)&&Object(x.isEmpty)(ie)?"".concat(ee):"".concat(ee," ").concat((null===z||void 0===z?void 0:z.includeCity)||(null===z||void 0===z?void 0:z.includeState)?"(".concat((null===z||void 0===z?void 0:z.includeCity)?te:"").concat((null===z||void 0===z?void 0:z.includeState)&&!Object(x.isEmpty)(ie)?(null===z||void 0===z?void 0:z.includeCity)&&!Object(x.isEmpty)(te)?", ".concat(ie):ie:"",")"):""),M=W?(null===V||void 0===V?void 0:V.sessionInstructors)&&(null===V||void 0===V?void 0:V.sessionInstructors.find((function(e){return e.userId===_}))):(null===V||void 0===V?void 0:V.sessionParticipants)&&(null===V||void 0===V?void 0:V.sessionParticipants.find((function(e){return e.userId===_})));var ae="".concat(M.firstName," ").concat((null===z||void 0===z?void 0:z.includeMiddleName)?"".concat(M.middleName):""," ").concat(M.lastName),oe="".concat((null===z||void 0===z?void 0:z.includeBarNumber)&&null!==(d=null===(u=M)||void 0===u?void 0:u.licenseBarNumber)&&void 0!==d?d:""),se=null!==(v=null===(f=M)||void 0===f?void 0:f.phone)&&void 0!==v?v:"",le=null!==(m=null===(y=M)||void 0===y?void 0:y.email)&&void 0!==m?m:"",ce=null===(g=M)||void 0===g||null===(b=g.userLicenseCreditValues)||void 0===b?void 0:b.filter((function(e){return e.licenseId===Ee})),de=null===(S=M)||void 0===S||null===(E=S.userLicensePropertyValues)||void 0===E?void 0:E.filter((function(e){return e.licenseId===Ee})),ue=null!==(I=null===(O=M)||void 0===O?void 0:O.vaLawDeliveryMethod)&&void 0!==I?I:"",he=function(e){var t,i=null===V||void 0===V||null===(t=V.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===Ee})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(M.completionDate);return r||n||a?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},ve=function(e){var t,i=null===V||void 0===V||null===(t=V.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===Ee})),r=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Pending,n=(null===i||void 0===i?void 0:i.licenseStatus)===p.Dd.Denied,a=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(M.completionDate);return r||n||a?"":e||""},pe=null===V||void 0===V||null===(C=V.sessionLicenses)||void 0===C||null===(j=C.find((function(e){return e.licenseId===Ee})))||void 0===j?void 0:j.sessionLicenseCredits,fe=he(Object(x.sum)(null===pe||void 0===pe?void 0:pe.map((function(e){return e.creditValue})))),me=he(null===pe||void 0===pe||null===(w=pe.find((function(e){return 1===e.creditId})))||void 0===w?void 0:w.creditValue),ye=he(null===pe||void 0===pe||null===(P=pe.find((function(e){return 4===e.creditId})))||void 0===P?void 0:P.creditValue),ge=he(Object(x.sum)(null===ce||void 0===ce?void 0:ce.map((function(e){return e.value})))),be=he(null===ce||void 0===ce||null===(T=ce.find((function(e){return 1===e.creditId})))||void 0===T?void 0:T.value),Se=he(null===ce||void 0===ce||null===(A=ce.find((function(e){return 4===e.creditId})))||void 0===A?void 0:A.value),Ie=ve(null===de||void 0===de||null===(k=de.find((function(e){return e.propertyId===Ye})))||void 0===k?void 0:k.valueChar),Oe=ve(null===de||void 0===de||null===(D=de.find((function(e){return e.propertyId===$e})))||void 0===D?void 0:D.valueChar),Ce=ve(null===de||void 0===de||null===(L=de.find((function(e){return e.propertyId===He})))||void 0===L?void 0:L.valueChar),xe=ve(null===de||void 0===de||null===(J=de.find((function(e){return e.propertyId===Ke})))||void 0===J?void 0:J.valueChar),je=ve(null===de||void 0===de||null===(F=de.find((function(e){return e.propertyId===Qe})))||void 0===F?void 0:F.valueChar),we=null!==(B=null===V||void 0===V||null===(R=V.approvalCodes)||void 0===R||null===(U=R.find((function(e){return e.licenseId===Ee})))||void 0===U?void 0:U.propertyValue)&&void 0!==B?B:"",Pe=M.completionDate?Q()(M.completionDate).format("MMMM DD, YYYY"):"",Te=(null===V||void 0===V?void 0:V.isIndividualSessionDateAllowed)?Pe:X;return n.a.createElement(h.Box,{maxWidth:"1000px",style:{width:"100%",alignItems:"center",padding:"0 0 0 10px",margin:"0 auto"},className:W?Y.divDetails:Y.divDetails2022},n.a.createElement(h.Table,{className:Y.table,id:"tblVACertificate",style:{width:"100%",pageBreakAfter:"auto"}},n.a.createElement(h.TableBody,null,W?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text},n.a.createElement(h.Typography,{className:Y.textSize17},"Virginia MCLE Board"),n.a.createElement(h.Typography,{className:Y.textSize14,style:{fontWeight:"bolder"}},"CERTIFICATION OF TEACHING (FORM 3)"),n.a.createElement(h.Typography,{className:Y.textSize11},"MCLE requirement pursuant to Paragraph 17, of Section IV, Part Six, Rules of the Supreme Court of Virginia",n.a.createElement("br",null),"and the MCLE Board Regulations."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text},n.a.createElement(h.Typography,{className:Y.textSize14},"INSTRUCTIONS"),n.a.createElement(h.Typography,{className:Y.textSize12,style:{fontWeight:"bold"}},"Email this form to mymcle@vsb.org"),n.a.createElement(h.Typography,{className:Y.textSize12},"Complete this Certification to Include Both Teaching and Attendance hours. Retain copy for two years."),n.a.createElement(h.Typography,{className:Y.textSize12},"MCLE Compliance Deadline - October 31. MCLE Reporting Deadline - December 15."),n.a.createElement(h.Typography,{className:Y.textSize12},"Subsequent Late Reporting Deadline - February 1"),n.a.createElement(h.Typography,{className:Y.textSize12},"A $100 fee will be assessed for failure to comply with each deadline.")))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"14px 0"}},n.a.createElement(h.Typography,{className:Y.textSize17},"Virginia MCLE Board"),n.a.createElement(h.Typography,{className:Y.textSize13Bold},"Virginia State Bar"),n.a.createElement(h.Typography,{className:Y.textSize13Bold},"1111 East Main Street, Suite 700"),n.a.createElement(h.Typography,{className:Y.textSize13Bold},"Richmond, VA 23219-0026"),n.a.createElement(h.Typography,{className:Y.textSize13Bold},"(804) 775-0577 \u2219 Web site: www.vsb.org"))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"14px 0"}},n.a.createElement(h.Typography,{className:Y.textSize14Bold},"CERTIFICATION OF ATTENDANCE (FORM 2)"),n.a.createElement(h.Typography,{className:Y.textSize11,style:{letterSpacing:"0.01pt"}},"Pursuant to Paragraph 17B, C and D of Section IV, Part Six, Rules of the Supreme Court of Virginia. The information provided will be available for"),n.a.createElement(h.Typography,{className:Y.textSize12,style:{letterSpacing:"0.01pt"}},"inspection by the public under the Freedom of Information Act. Complete all requested information and sign certification."),n.a.createElement(h.Typography,{className:Y.textSize14Customize,style:{padding:0}},n.a.createElement(h.Box,{style:{letterSpacing:"0.01pt",padding:"16px 10px 0 10px",display:"flex"}},"Contact the Sponsor First for Virginia Approval Information and Form.",n.a.createElement(h.Typography,{className:Y.textSize13Customize,style:{paddingTop:"3px"}},"\xa0The Virginia certification of attendance and"))),n.a.createElement(h.Typography,{className:Y.textSize13Customize},"Virginia course approval ID# has been provided to the sponsor for all Virginia approved programs."),n.a.createElement(h.Typography,{className:Y.textSize14Bold},n.a.createElement(h.Box,{style:{display:"flex",padding:"0 250px"}},"Certify Your Attendance Online at",n.a.createElement(h.Typography,{className:Y.textSize14CustomizeA},"\xa0www.vsb.org")))))),W?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"Member Name:"),n.a.createElement(h.Typography,{className:Y.infoDescription},ae))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 16px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"VSB Member Number:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{minWidth:"294px"}},oe)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"0 "}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"Address:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{marginLeft:"53px"}}))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"0 0 0 15px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"Daytime Phone:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{minWidth:"350px"}},se)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel}),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{marginLeft:"123px"}}," "))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"0 0 0 15px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"E-mail Address:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{minWidth:"349px"}},le)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel}),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{marginLeft:"123px"}}," ")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},n.a.createElement(h.Typography,{className:Y.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left"}},"City"),n.a.createElement(h.Box,{style:{flex:"0%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:Y.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"State"))),n.a.createElement(h.Box,{style:{flex:"55%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:Y.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip")))))))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"Member Name:"),n.a.createElement(h.Typography,{className:Y.infoDescription},ae))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 16px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"VSB Member Number:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{minWidth:"294px"}},oe)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"0 "}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabelV2},"Official Address of Record:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{marginLeft:"3px",minWidth:"220px"}})))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel}),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{marginLeft:"123px"}}," "))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"0 0 0 15px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"Daytime Phone:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{minWidth:"350px"}},se)))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel}),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{marginLeft:"123px"}}," "))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"0 0 0 15px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"E-mail Address:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{minWidth:"349px"}},le)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},n.a.createElement(h.Typography,{className:Y.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left"}},"City"),n.a.createElement(h.Box,{style:{flex:"0%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:Y.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"State"))),n.a.createElement(h.Box,{style:{flex:"55%"}},n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},n.a.createElement(h.Typography,{className:Y.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip")))))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.dataLabel},"Course ID Number:"),n.a.createElement(h.Typography,{className:Y.dataDescription},we)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.dataLabel},"Sponsor:"),n.a.createElement(h.Typography,{className:Y.dataDescription},re)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.dataLabel},W?"Course Program/Title:":"Course/Program Title:"),n.a.createElement(h.Typography,{className:Y.dataDescription},$)))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{fontWeight:"bolder",padding:0}},n.a.createElement(h.Box,{className:Y.infoContainer},"\xa0",n.a.createElement(h.Typography,{className:Y.dataLabel},"CLE (Ethics) Credits: \xa0",n.a.createElement(h.Typography,{className:Y.creditDescriptionNoBorder,style:{marginRight:"32px"}},W?ge:fe),n.a.createElement(h.Typography,{className:Y.creditDescriptionNoBorder,style:{marginRight:"32px"}},"(",W?be:me,") Ethics"),"\xa0",n.a.createElement(h.Typography,{className:Y.creditDescriptionNoBorder},W?Se:ye," Well-Being"))))),!W&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,{style:{lineHeight:"15px"}},n.a.createElement(h.TableCell,{className:Y.text},n.a.createElement(h.Typography,{className:Y.textSize14Bold},"CERTIFICATION")))),n.a.createElement(h.TableRow,{style:{display:"flex"}},n.a.createElement(h.TableCell,{className:Y.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},W?"Date(s) of Teaching:":"Date(s) Attended:"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{fontWeight:"bolder"}},Te))),n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 15px"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Typography,{className:Y.infoLabel},"Location",W&&"(s):"),n.a.createElement(h.Typography,{className:Y.infoDescription,style:{fontWeight:"bolder",minWidth:"391px"}},(null===z||void 0===z?void 0:z.includeLocation)?ne:"")))),!W&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.infoLabelV3},"Delivery method:"),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.LiveOrGroupVideo&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,{className:Y.lineTextV3,style:{minWidth:"160px"}},"Live or Group Video"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.LiveTelephoneOrLiveWebcast&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,{className:Y.lineTextV3},"*Live Telephone or live Webcast"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.VideoconferenceOrSatellite&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,{className:Y.lineTextV3},"*Videoconference or Satellite")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"5px 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.infoLabelV3,style:{minWidth:"70px"}}),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.InternetOnDemand&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,{className:Y.lineTextV3,style:{minWidth:"160px"}},"* Internet on-demand"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2}),n.a.createElement(h.Box,{className:Y.lineTextV5},"*CD-ROM"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.VideoDVD&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,{className:Y.lineTextV5},"\u2666 Video/DVD"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.AudioCD&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,{className:Y.lineTextV5},"\u2666Audio/CD"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.lineV2},ue===si.Other&&n.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.infoLabelV4},"Other"),n.a.createElement(h.Box,{className:Y.infoDescriptionV2,style:{minWidth:"115px"}},ue===si.Other&&H)))))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"5px 0"}},n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.infoLabelV3},"Setting:"),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineTextV4},"Group (with other attendees)"))),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineTextV4},"* Individual attendance at my location")))))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{padding:"16px 0 0 0"}},n.a.createElement(h.Typography,{className:Y.textSize12Bold,style:{letterSpacing:"0.01pt"}},"*Distance Learning Programs Require Attendance Form Verified and Provided by the Course Sponsor when done in an Individual Setting."),n.a.createElement(h.Typography,{className:Y.textSize12Bold,style:{letterSpacing:"0.01pt"}},"\u2666Video and Audio programs require at least 2 attorneys in attendance")))),!W&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.textB,style:{padding:"16px 0 0 0",letterSpacing:"0.01pt"}},n.a.createElement(h.Typography,{className:Y.textB,style:{fontWeight:"bolder"}},"By my signature below I certify"),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineText},"I attended a total of"," ",n.a.createElement(h.Typography,{className:Y.creditDescription},ge),"\xa0(hrs/mins) of ",n.a.createElement("b",null,"approved CLE"),", of which (",n.a.createElement(h.Typography,{className:Y.creditDescription},be),") (hrs/mins) were in ",n.a.createElement("b",null,"approved Ethics")," and")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.noLine}),n.a.createElement(h.Box,{className:Y.lineText},n.a.createElement(h.Typography,{className:Y.creditDescription},Se),"were in ",n.a.createElement("b",null,"approved Well-Being"),".")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineText},"The sessions I am claiming had written instructional materials to cover the subject.")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineText},"I participated in this program in a setting physically suitable to the course.")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineTextV2},"I was given the opportunity to participate in discussions with other attendees and/or the presenter (in real time or via e-mail.)")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineText},"I understand I may not receive credit for any course/segment which is not materially different in substance than a")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.noLine}),n.a.createElement(h.Box,{className:Y.lineText},"course/segment for which credit has been previously given during the same completion period or the completion period")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.noLine}),n.a.createElement(h.Box,{className:Y.lineText},"immediately prior.")),n.a.createElement(h.Box,{className:Y.infoContainer},n.a.createElement(h.Box,{className:Y.line}),n.a.createElement(h.Box,{className:Y.lineText},"I understand that a materially false statement shall be subject to appropriate disciplinary action.")),n.a.createElement("br",null),n.a.createElement("br",null),"NOTE: Credit is awarded for actual time in attendance rounded to the nearest half hour.")),W&&n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.textB,style:{fontSize:"13pt",padding:"16px 0 0 0"}},n.a.createElement(h.Typography,{className:Y.textB,style:{fontWeight:"bolder",textDecoration:"underline"}},n.a.createElement("i",null,"ONLY SESSIONS WITH WRITTEN INSTRUCTIONAL MATERIALS ARE APPROVABLE FOR CREDIT")),n.a.createElement(h.Typography,{className:Y.textB,style:{display:"list-item",margin:"0 0 0 40px",padding:"16px 0 0 0",letterSpacing:"0.1pt"}},"My teaching segment was"," ",n.a.createElement(h.Typography,{className:Y.creditDescription},Ie)," (hrs/mins) of CLE, of which (",n.a.createElement(h.Typography,{className:Y.creditDescription},Oe),") (hrs/mins) were in Ethics and",n.a.createElement(h.Typography,{className:Y.creditDescription},Se)," were in",n.a.createElement("br",null),"Well-Being."),n.a.createElement(h.Typography,{className:Y.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"In addition, I attended ",n.a.createElement("i",null,"other")," segments totaling"," ",n.a.createElement(h.Typography,{className:Y.creditDescription},Ce)," (hrs/mins) of CLE, of which (",n.a.createElement(h.Typography,{className:Y.creditDescription},xe),") (hrs/mins) were in Ethics and",n.a.createElement("br",null),n.a.createElement(h.Typography,{className:Y.creditDescription},Se)," were in Well-Being."),n.a.createElement(h.Typography,{className:Y.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"I spent ",n.a.createElement(h.Typography,{className:Y.creditDescription},je)," hours preparing for teaching my segment of the course."),n.a.createElement(h.Typography,{className:Y.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"No more than four (4) hours of preparation credit may be claimed per one hour of instructional time in your presentation, and",n.a.createElement("br",null)," no more than eight (8) hours total for any course. Total credit is awarded for actual time spent teaching, attendance and",n.a.createElement("br",null)," preparation rounded to the nearest half hour. (Example: 1hr 15min = 1.5hr)"),n.a.createElement(h.Typography,{className:Y.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"A materially false statement shall be subject to appropriate disciplinary action."))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text,style:{fontSize:"13pt",padding:"45px 0 0 0"}},n.a.createElement(h.Box,{className:Y.infoContainer,style:{justifyContent:"flex-end"}},n.a.createElement(h.Typography,{className:Y.dateField},n.a.createElement(h.Typography,{className:Y.label},"Date")),n.a.createElement(h.Typography,{className:Y.signatureField},(null===z||void 0===z?void 0:z.includeParticipantSignature)&&!Object(x.isEmpty)(null===(G=M)||void 0===G?void 0:G.signatureUrl)&&n.a.createElement("img",{alt:"signature",src:null===(q=M)||void 0===q?void 0:q.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),n.a.createElement(h.Typography,{className:Y.label},"Signature"))))),W?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text},n.a.createElement(h.Typography,{className:Y.textSize14},n.a.createElement(h.Box,{style:{display:"flex",padding:"0 65px"}},n.a.createElement(h.Typography,{className:Y.textSize14,style:{fontWeight:"bolder"}},"Questions?"),"\xa0Contact the MCLE Department at (804) 775-0577 or E-mail questions to mcle@vsb.org")))),n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text},n.a.createElement(h.Typography,{className:Y.textSize11},"If not e-mailed, this form may be mailed to"),n.a.createElement(h.Typography,{className:Y.textSize13},"Virginia MCLE Board"),n.a.createElement(h.Typography,{className:Y.textSize11},"Virginia State Bar"),n.a.createElement(h.Typography,{className:Y.textSize11},"1111 East Main Street, Suite 700"),n.a.createElement(h.Typography,{className:Y.textSize11},"Richmond, VA 23219-3565"),n.a.createElement(h.Typography,{className:Y.textSize11},"Web site: www.vsb.org")))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{className:Y.text},n.a.createElement(h.Typography,{className:Y.textSize13Bold},"MCLE Completion Deadline \u2013 October 31"),n.a.createElement(h.Typography,{className:Y.textSize13Bold},"Deadline to Certify MCLE Approved Hours \u2013 December 15"),n.a.createElement(h.Typography,{className:Y.textSize13Bold},"Subsequent Late Reporting Deadline \u2013 February 1"),n.a.createElement(h.Typography,{className:Y.textSize12},"A $100 fee will be charged for failure to comply with each deadline")))))))},gi=function(e){var t=e.certificate,i=e.isInstructor,r=e.licenseId,a=e.sessionDetails,o=e.userId;switch(t.templateId){case 1:case 22:return n.a.createElement($t,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 5:return n.a.createElement(Gt,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 7:return n.a.createElement(Wt,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 10:return n.a.createElement(Qt,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 16:return n.a.createElement(li,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 17:return n.a.createElement(di,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 19:return n.a.createElement(pi,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 20:return n.a.createElement(mi,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 23:return n.a.createElement(yi,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 24:return n.a.createElement(hi,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 25:return n.a.createElement(ui,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o,isBlank:!1});case 26:return n.a.createElement(ri,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o,isBlank:!1});case 27:return n.a.createElement(Mt,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});case 28:return n.a.createElement(ai,{certificate:t,sessionDetails:a,isInstructor:i,licenseId:+r,userId:+o});default:return n.a.createElement(n.a.Fragment,null)}},bi=Object(s.b)((function(e){return{requestBody:e.users.multipleCertificatePrintRequest}}),(function(e){return{getMultipleCertificate:function(){return e((function(e,t){var i,r,n=t().users.multipleCertificatePrintRequest,a=new p.Bc({userId:null!==(i=null===n||void 0===n?void 0:n.userId)&&void 0!==i?i:0,licenseIds:null===n||void 0===n?void 0:n.licenseIds,sessionDetails:null===n||void 0===n?void 0:n.sessionDetails,sessionUsers:null!==(r=null===n||void 0===n?void 0:n.sessionUsers)&&void 0!==r?r:[]});return q.g.getByMultipleLicense(void 0,p.Bc.fromJS(a)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}))},getMultipleSessionDetails:function(){return e((function(e,t){var i,r,n,a=t().users.multipleCertificatePrintRequest,o=null===a||void 0===a||null===(i=a.sessionDetails)||void 0===i?void 0:i.map((function(e){var t;return null!==(t=e.sessionId)&&void 0!==t?t:0})),s=new p.ad({sessionIds:o,userId:null!==(r=null===a||void 0===a?void 0:a.userId)&&void 0!==r?r:0,licenseIds:null===a||void 0===a?void 0:a.licenseIds,sessionUsers:null!==(n=null===a||void 0===a?void 0:a.sessionUsers)&&void 0!==n?n:[]});return q.g.getMultipleSessionTemplateDetails(void 0,p.ad.fromJS(s)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}))}}})),Si=Object(d.o)(bi((function(e){var t=e.getMultipleCertificate,i=e.getMultipleSessionDetails,a=e.requestBody,o=H(),s=Object(r.useState)(),l=Object(c.a)(s,2),d=l[0],u=l[1],v=Object(r.useState)(),p=Object(c.a)(v,2),f=p[0],m=p[1];return Object(r.useEffect)((function(){u(void 0),m(void 0),t().then((function(e){u(e),i().then((function(e){m(e)}))}))}),[t,i]),n.a.createElement(h.Box,{margin:"20px auto",maxWidth:"940px"},d&&d.length>0&&f&&f.length>0&&n.a.createElement(h.Grid,{container:!0,spacing:"form",className:o.printButton},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:o.printButton},n.a.createElement(h.Box,{mr:4,width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.print()},variant:"contained",color:"primary",size:"small"},"Print")))),n.a.createElement(n.a.Fragment,null,void 0===d||void 0===f?n.a.createElement(h.Grid,{container:!0,spacing:"form",className:o.printButton},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignment:"center"},n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})))):n.a.createElement(n.a.Fragment,null,d&&d.length>0&&f&&f.length>0?a&&a.sessionDetails.map((function(e){return n.a.createElement(n.a.Fragment,null,a.licenseIds.map((function(t){var i,r,s,l,c,u,v,p,m,y,g,b,S,E,I,O=null===d||void 0===d||null===(i=d.find((function(i){return i.licenseId===t&&i.sessionId===e.sessionId})))||void 0===i?void 0:i.certificateDetails,C=null===f||void 0===f||null===(r=f.find((function(i){return i.licenseId===t&&i.sessionId===e.sessionId})))||void 0===r?void 0:r.sessionDetails,x=null!==(s=e.isInstructor)&&void 0!==s&&s,j=null===C||void 0===C||null===(l=C.sessionLicenses)||void 0===l||null===(c=l.find((function(e){return e.licenseId===t})))||void 0===c?void 0:c.expirationDate,w=x?null===C||void 0===C||null===(u=C.sessionInstructors)||void 0===u||null===(v=u.find((function(e){return e.userId===(a&&a.userId)})))||void 0===v||null===(p=v.userLicensePropertyValues)||void 0===p?void 0:p.find((function(e){return"Reciprocal"===e.propertyLabel&&e.licenseId===t})):null===C||void 0===C||null===(m=C.sessionParticipants)||void 0===m||null===(y=m.find((function(e){return e.userId===(a&&a.userId)})))||void 0===y||null===(g=y.userLicensePropertyValues)||void 0===g?void 0:g.find((function(e){return"Reciprocal"===e.propertyLabel&&e.licenseId===t})),P=x?null===C||void 0===C||null===(b=C.sessionInstructors)||void 0===b||null===(S=b.find((function(e){return e.userId===(a&&a.userId)})))||void 0===S?void 0:S.completionDate:null===C||void 0===C||null===(E=C.sessionParticipants)||void 0===E||null===(I=E.find((function(e){return e.userId===(a&&a.userId)})))||void 0===I?void 0:I.completionDate,T=void 0!==j&&(null!==j&&Object(N.d)(j)<=Object(N.d)(P));return O&&C&&!T&&!(0!==t&&void 0!==w)?n.a.createElement(h.Box,{mt:2,mb:2},n.a.createElement(h.Box,{className:o.boxProp},n.a.createElement(gi,{certificate:O,sessionDetails:C,isInstructor:x,licenseId:t,userId:null===a||void 0===a?void 0:a.userId}))):n.a.createElement(n.a.Fragment,null)})))})):n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records are available for printing.")))))))}))),Ei=Object(s.b)(null,(function(e){return{getCertificate:function(t,i,r,n){return e((a=new p.Ac({licenseId:t,sessionId:i,userId:r,isInstructor:n}),function(e){return q.g.getByLicense(void 0,p.Ac.fromJS(a)).then((function(e){return e})).catch((function(t){var i;throw e(Object(M.a)({message:null!==(i=t.detail)&&void 0!==i?i:"Retrieval error",variant:"error"})),t}))}));var a},getSessionDetails:function(t,i,r){return e((n=new p.Zc({sessionId:t,userId:i,licenseId:r}),function(e){return q.g.getSessionTemplateDetails(void 0,p.Zc.fromJS(n)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}));var n}}})),Ii=Object(d.o)(Ei((function(e){var t=e.getCertificate,i=e.getSessionDetails,a=e.match,o=H(),s=Object(r.useState)(),l=Object(c.a)(s,2),d=l[0],u=l[1],v=Object(r.useState)(),p=Object(c.a)(v,2),f=p[0],m=p[1],y=a.params,g=y.userId,b=y.sessionId,S=y.licenseId,E=y.isInstructor;return Object(r.useEffect)((function(){u(void 0),m(void 0),t(+S,+b,+g,"true"===E).then((function(e){return u(e),i(+b,+g,+S).then((function(e){m(e)})),+S}))}),[S,b,g,E,t,i]),n.a.createElement(h.Box,{margin:"20px auto",maxWidth:"940px"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:o.printButton},n.a.createElement(h.Box,{mr:4,width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.print()},variant:"contained",color:"primary",size:"small"},"Print"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignment:"center"},void 0===d||void 0===f?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(gi,{certificate:d,sessionDetails:f,isInstructor:"true"===E,licenseId:+S,userId:+g}))))}))),Oi=i(50),Ci=i(366),xi=i.n(Ci),ji=function(e){var t=xi.a.SHA256("".concat("micronapps.com")).toString().substring(0,16),i=xi.a.enc.Utf8.parse(t);return xi.a.AES.encrypt(e,i,{iv:i,mode:xi.a.mode.CBC,padding:xi.a.pad.Pkcs7}).toString()},wi=i(120),Pi=function(e){return{type:wi.a,payload:e}},Ti=function(e){return{type:wi.c,payload:e}},Ai=function(e){return{type:wi.d,payload:e}},Ni=function(e){return{type:wi.e,payload:e}},ki=function(e){return{type:wi.f,payload:e}},Di=function(e){return{type:wi.h,payload:e}},Li=function(e){return{type:wi.g,payload:e}},Ji=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return function(o,s){var l=s().sessions.savedCalendarFilters,c=null===l||void 0===l?void 0:l.find((function(e){return e.isDefault}));if(n)if(void 0===c)o(ki(0)),o(Ai({searchCriteria:void 0,filterBy:void 0,portalCategory:i,isFavorite:r})),o(Di([]));else{var d,u=null===(d=c.filter)||void 0===d?void 0:d.split("|");u=""===u[0]?[]:u,o(ki(c.calendarSavedFilterId)),o(Ai({searchCriteria:u,filterBy:void 0,portalCategory:i,isFavorite:r})),o(Di(u))}var h=s().sessions.portalSessionFilterRequestBody,v=s().users.loggedUser;o(Pi(!0)),o(Ti(null));var f=s().portalSettings.calendarFilters,m=Array();if((null===h||void 0===h?void 0:h.searchCriteria)&&(null===h||void 0===h?void 0:h.searchCriteria.length)>0&&m.push.apply(m,Object(Oi.a)(null===h||void 0===h?void 0:h.searchCriteria)),f){var y,g=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CourseDepartment")})),b=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("SessionLocation")})),S=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CoursePracticeArea")})),E=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CourseLevel")})),I=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CourseLevel")})),O=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CourseCompetency")})),C=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CourseClassYear")})),x=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("CourseTag")})),j=null===m||void 0===m?void 0:m.findIndex((function(e){return e.includes("SessionFormat")}));if(a)o(ki(null!==(y=c&&c.calendarSavedFilterId)&&void 0!==y?y:0));-1===g&&f.departmentIds.length>0&&m.push("CourseDepartment[or]: ".concat(f.departmentIds.map(String))),-1===b&&f.locationIds.length>0&&m.push("SessionLocation: ".concat(f.locationIds.map(String))),-1===E&&f.levelIds.length>0&&m.push("CourseLevel[or]: ".concat(f.levelIds.map(String))),-1===S&&f.practiceAreaIds.length>0&&m.push("CoursePracticeArea[or]: ".concat(f.practiceAreaIds.map(String))),-1===I&&f.providerIds.length>0&&m.push("ProviderIds: ".concat(f.providerIds.map(String))),-1===O&&f.competencyIds.length>0&&m.push("CourseCompetency[or]: ".concat(f.competencyIds.map(String))),-1===C&&f.classYearIds.length>0&&m.push("CourseClassYear[or]: ".concat(f.classYearIds.map(String))),-1===x&&f.tagIds.length>0&&m.push("CourseTag[or]: ".concat(f.tagIds.map(String))),-1===j&&f.courseFormatIds.length>0&&m.push("SessionFormat: ".concat(f.courseFormatIds.map(String))),!a&&n&&o(Ai(Object(J.a)(Object(J.a)({},h),{},{searchCriteria:m})))}var w=new p.jc({pageSize:-1,filterBy:null===h||void 0===h?void 0:h.filterBy,searchCriteria:m,startDate:e,endDate:t,userId:null===v||void 0===v?void 0:v.userId,portalCategory:0===i.length?["Classroom","Webcast"]:i,isFavorite:r});return q.S.getAllPortalSessionByMonth(void 0,p.jc.fromJS(w)).then((function(e){return o(Pi(!1)),o(Ti(e.sessions)),e})).catch((function(e){o(Pi(!1)),o(Ti(null)),o(Object(M.b)(e))}))}},Fi=function(){return function(e,t){var i=t().users.loggedUser,r=new p.Xb({userId:null===i||void 0===i?void 0:i.userId});return q.A.getAllActiveLearningPlanNames(void 0,p.Xb.fromJS(r)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},Bi=function(e){return function(t,i){var r=i().users.loggedUser;return e&&t(Ti(null)),t(Ni(void 0)),q.e.getAll(void 0,p.Zb.fromJS({createdBy:null===r||void 0===r?void 0:r.userName,pageSize:-1})).then((function(e){t(Ni(e.calendarSavedFilters))})).catch((function(e){t(Ni(void 0)),t(Object(M.b)(e))}))}},Ri=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,r){var n,a,o=r().users.loggedUser;return t?(a=q.e.update(void 0,p.ve.fromJS(e)),n="Filter successfully updated."):(a=q.e.create(void 0,p.L.fromJS(e)),n="Filter successfully saved."),a.then((function(t){return i(Ni(void 0)),!0===e.isDefault?(t.isDefault=!0,q.O.setSavedFilterDefault(void 0,p.pe.fromJS({userId:null===o||void 0===o?void 0:o.userId,calendarSavedFilterId:t.calendarSavedFilterId})).then((function(){i(Object(M.a)({message:n,variant:"success"})),i(Bi(!1))})).catch((function(e){i(Object(M.b)(e))}))):(i(Object(M.a)({message:n,variant:"success"})),i(Bi(!1))),t})).catch((function(e){i(Object(M.b)(e))}))}},Ui=function(e,t,i){return function(r){return q.e.validateCalendarSavedFilterName(void 0,p.Se.fromJS({calendarSavedFilterId:e,name:t,createdBy:i})).then((function(e){return e})).catch((function(e){r(Object(M.b)(e))}))}},Gi=function(e){return function(t){return q.S.get(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}},qi=function(e,t,i,r){return function(n){var a=new p.ab({userIdList:e,sessionId:t,isInstructor:i,isTentative:r,sendEmailConfirmation:!0});return q.R.create(void 0,a).then((function(){n(Gi(t))})).catch((function(e){n(Object(M.a)({message:e.detail,variant:"error"}))}))}},Mi=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(o){var s={sessionParticipantIds:e,sessionParticipantStatusId:t,isParticipantUnvalidated:i,isCreditAdjusted:r,sessionId:n,isApproval:a,sendEmailConfirmation:!0};return q.R.update(void 0,p.Ee.fromJS(s)).then((function(e){return o(Gi(n)),e})).catch((function(e){o(Object(M.b)(e))}))}},zi=function(e,t,i){return function(r){var n=new p.xb({sessionId:i,sessionParticipantIdList:e,sendEmailConfirmation:!0});return q.R.delete(void 0,n).then((function(n){if(r(Gi(i)),t>0){var a={sessionId:i,sessionParticipantIdList:e};q.R.deleteParticipantLicenseProperties(void 0,p.Bb.fromJS(a)).catch((function(e){r(Object(M.b)(e))})),q.R.deleteParticipantLicenseCredits(void 0,p.Ab.fromJS(a)).catch((function(e){r(Object(M.b)(e))}))}return n})).catch((function(e){r(Object(M.b)(e))}))}},Wi=function(e,t,i,r){return function(n){var a=new p.i({userIds:e,sessionId:t,exemptedIdList:i,isSelectedAll:r,sendEmailConfirmation:!0});return q.S.addToSessionWaitlist(void 0,p.i.fromJS(a)).then((function(){n(Gi(t))})).catch((function(e){n(Object(M.b)(e))}))}},Vi=function(e,t){var i=new p.tb({sessionId:t,userIdList:e,sendEmailConfirmation:!0});return function(e){return q.S.deleteFromSessionWaitlist(void 0,i).then((function(){return Promise.resolve()})).catch((function(t){throw e(Object(M.b)(t)),t}))}},_i=function(e){return function(t){var i=ji(e);q.D.downloadFile(void 0,new p.Hb({file:i})).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(e){throw t(Object(M.b)(e)),e}))}},Yi=i(28),$i=i.n(Yi),Hi=i(175),Ki=function(e){return{type:Hi.c,payload:e}},Qi=function(e){return{type:Hi.e,payload:e}},Zi=function(e){return{type:Hi.d,payload:e}},Xi=i(173),er=i(84),tr=function(e){return{type:er.b,payload:e}},ir=function(e){return{type:er.c,payload:e}},rr=function(e){return{type:er.d,payload:e}},nr=function(e){return{type:er.h,payload:e}},ar=function(e){return{type:er.k,payload:e}},or=function(e){return{type:er.i,payload:e}},sr=function(e){return{type:er.j,payload:e}},lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:er.a,payload:{courseId:e,favorite:t}}},cr=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return function(i,r){var n,a=r().catalog,o=a.filters,s=a.searchOptionTextFilter,l=a.searchOptionCategories,c=a.searchOptionFavoritesOnly,d=a.searchRequestBody,u=r().users.loggedUser,h=r().portalSettings.courseFilters;i(ar(!0)),i(or(null));var v,f=Array();if(f.push.apply(f,Object(Oi.a)(o)),h){var m=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CourseDepartment")})),y=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("SessionLocation")})),g=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CoursePracticeArea")})),b=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CourseLevel")})),S=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CourseLevel")})),E=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CourseCompetency")})),I=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CourseClassYear")})),O=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("CourseTag")})),C=null===f||void 0===f?void 0:f.findIndex((function(e){return e.includes("SessionFormat")}));-1===m&&h.departmentIds.length>0&&f.push("CourseDepartment[or]: ".concat(h.departmentIds.map(String))),-1===y&&h.locationIds.length>0&&f.push("SessionLocation: ".concat(h.locationIds.map(String))),-1===b&&h.levelIds.length>0&&f.push("CourseLevel[or]: ".concat(h.levelIds.map(String))),-1===g&&h.practiceAreaIds.length>0&&f.push("CoursePracticeArea[or]: ".concat(h.practiceAreaIds.map(String))),-1===S&&h.providerIds.length>0&&f.push("ProviderIds: ".concat(h.providerIds.map(String))),-1===E&&h.competencyIds.length>0&&f.push("CourseCompetency[or]: ".concat(h.competencyIds.map(String))),-1===I&&h.classYearIds.length>0&&f.push("CourseClassYear[or]: ".concat(h.classYearIds.map(String))),-1===O&&h.tagIds.length>0&&f.push("CourseTag[or]: ".concat(h.tagIds.map(String))),-1===C&&h.courseFormatIds.length>0&&f.push("SessionFormat: ".concat(h.courseFormatIds.map(String))),t||-1===m||-1===y||-1===b||-1===g||-1===S||-1===E||-1===I||-1===O||-1===C||i(tr(f))}"undefined"!==typeof r().authentication.cancelTokenSource&&"undefined"!==typeof(null===(n=r().authentication.cancelTokenSource)||void 0===n?void 0:n.cancel)&&(null===(v=r().authentication.cancelTokenSource)||void 0===v||v.cancel("Operation canceled due to new request."));var x=$i.a.CancelToken.source(),j=x.token;i(Xi.b(x)),i(Xi.a(j));var w=new p.Cc({pageSize:(null===d||void 0===d?void 0:d.pageSize)||10,page:e?1:null===d||void 0===d?void 0:d.page,filterBy:s&&""!==s?["Title[contains]:".concat(s),"Description[contains]:".concat(s)]:[],searchCriteria:f,userId:null===u||void 0===u?void 0:u.userId,portalCategory:0===l.length?["On-demand","Classroom","Webcast"]:l,favoritesOnly:c});return i(nr(w)),q.l.getAll(void 0,p.Cc.fromJS(w)).then((function(e){return i(ar(!1)),i(or(e.catalog)),i(sr(e.recordCount)),e})).catch((function(e){i(ar(!1)),i(or(null)),i(sr(0)),i(Object(M.b)(e))})).finally((function(){i(Xi.b(void 0)),i(Xi.a(void 0))}))}},dr=function(){return function(e,t){var i=t().users.loggedUser,r=new p.Xb({userId:null===i||void 0===i?void 0:i.userId});return q.A.getAllActiveLearningPlanNames(void 0,p.Xb.fromJS(r)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},ur=function(e,t){return function(i){var r=new p.h({collectionId:e,courseId:t});return q.m.addToCollection(void 0,r).then((function(){return!0})).catch((function(e){return i(Object(M.b)(e)),!1}))}},hr=function(e,t){return function(i,r){var n=r().users.loggedUser,a=null===n||void 0===n?void 0:n.userId;return q.m.removeCourseFromCollection(void 0,new p.Td({userId:a,collectionId:e,courseId:t})).then((function(){return!0})).catch((function(e){return i(Object(M.b)(e)),!1}))}},vr=function(e,t,i){return function(r,n){var a=n().users.loggedUser,o=n().catalogDrawer.courseDetail,s=null===a||void 0===a?void 0:a.userId,l=t?"Course successfully removed from favorites":"Course successfully added as favorite",c=new p.ue({userId:s,courseId:e,isFavorite:t});return q.n.toggleCourseFavorite(void 0,c).then((function(){return i?(r(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.userFavorite=t,{type:Hi.b,payload:e}}(o,!t)),r(lr(null!==e&&void 0!==e?e:0,!t))):r(lr(null!==e&&void 0!==e?e:0,!t)),r(Object(M.a)({message:l,variant:"success"})),!0})).catch((function(e){return r(Object(M.b)(e)),!1}))}},pr=function(e){return function(t,i){var r=i().users.loggedUser;return e&&t(or(null)),t(ir(void 0)),q.f.getAll(void 0,p.ac.fromJS({createdBy:null===r||void 0===r?void 0:r.userName,pageSize:-1})).then((function(e){t(ir(e.catalogSavedFilters))})).catch((function(e){t(ir(void 0)),t(Object(M.b)(e))}))}},fr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,r){var n,a,o=r().users.loggedUser;return t?(a=q.f.update(void 0,p.we.fromJS(e)),n="Filter successfully updated."):(a=q.f.create(void 0,p.M.fromJS(e)),n="Filter successfully saved."),a.then((function(t){return i(ir(void 0)),!0===e.isDefault?(t.isDefault=!0,q.O.setSavedFilterDefault(void 0,p.pe.fromJS({userId:null===o||void 0===o?void 0:o.userId,catalogSavedFilterId:t.catalogSavedFilterId})).then((function(){i(Object(M.a)({message:n,variant:"success"})),i(pr(!1))})).catch((function(e){i(Object(M.b)(e))}))):(i(Object(M.a)({message:n,variant:"success"})),i(pr(!1))),t})).catch((function(e){i(Object(M.b)(e))}))}},mr=function(e,t,i){return function(r){return q.f.validateCatalogSavedFilterName(void 0,p.Te.fromJS({catalogSavedFilterId:e,name:t,createdBy:i})).then((function(e){return e})).catch((function(e){r(Object(M.b)(e))}))}},yr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(i){return q.ab.getAllPortalUserCompletedTranscriptSummaryByGuid(e,t,void 0).then((function(e){return e})).catch((function(e){i(Object(M.b)(e))}))}},gr=function(e){return function(t){return q.S.getAllSessionInstructors(void 0,new p.dd({sessionId:e})).then((function(e){return e})).catch((function(e){return[]}))}},br=function(e){return function(t){return q.t.getById(void 0,new p.Ic({evaluationId:e})).then((function(e){return e})).catch((function(e){var i;throw t(Object(M.a)({message:null!==(i=e.detail)&&void 0!==i?i:"Retrieval error",variant:"error"})),e}))}},Sr=function(e){if(!+e)return"";for(var t=String(+e).split(""),i=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",n=3;n>=0;)n-=1,r=(i[+(t.pop()||0)+10*n]||"")+r;return Array(+t.join("")+1).join("M")+r},Er=function(e){for(var t="",i=e;i>26;){var r=i%26;r>0&&(t=String.fromCharCode(97+r-1)+t),i=Math.floor(i/26)}return t=String.fromCharCode(97+i-1)+t},Ir=function(e,t){switch(e){case"numbers":return t.toString();case"lowerCaseRoman":return Sr(t).toLowerCase();case"upperCaseRoman":return Sr(t);case"lowerCaseAlpha":return Er(t);case"upperCaseAlpha":return Er(t).toUpperCase();default:return""}},Or=function(e){var t,i=e.answer,a=e.disabled,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=e.validate,u=e.instructor,v=e.onChange,p=e.onCommentChange,f=i?JSON.parse(i.answer):void 0,m=Object(r.useState)(f?f.content[0].answerId:""),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(f?f.comment:""),E=Object(c.a)(S,2),I=E[0],O=E[1],C=Object(r.useState)(!1),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(""),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)(!1),D=Object(c.a)(k,2),J=D[0],F=D[1],B=Object(r.useState)(""),R=Object(c.a)(B,2),U=R[0],G=R[1],q=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,M=Ir(s,q),z=l&&(s&&""!==s?"".concat(M,". ").concat(null===l||void 0===l?void 0:l.name):null===l||void 0===l?void 0:l.name),W=Object(r.useCallback)((function(e){var t=!1;""===e&&(null===l||void 0===l?void 0:l.required)?(w(!0),N("This field is required")):(t=!0,w(!1),N("")),v&&v(l,JSON.stringify([{questionId:(l.questionId||0).toString(),answerId:e}]),t,u?u.sessionParticipantId:void 0)}),[l,v,u]),V=Object(r.useCallback)((function(e){var t=!1;""===e&&(null===l||void 0===l?void 0:l.requiredComments)?(F(!0),G("This field is required")):(F(!1),G(""),t=!0),p&&p(l,e,t,u?u.sessionParticipantId:void 0)}),[l,p,u]);Object(r.useEffect)((function(){d&&(W(g),V(I))}),[d,g,I,W,V]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,null,!o&&n.a.createElement(n.a.Fragment,null,(null===l||void 0===l?void 0:l.instructor)&&u&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",u.fullName)),n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Typography,{variant:"body1"},z),n.a.createElement(h.TextField,{id:"question",required:null===l||void 0===l?void 0:l.required,fullWidth:!0,multiline:!0,rows:3,rowsMax:3,value:g,disabled:a,formikContext:!1,error:j,helperText:A,onChange:function(e){return t=e.target.value,b(t),void W(t);var t}}))),""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{paddingX:1},n.a.createElement(h.Box,{dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}))),(null===l||void 0===l?void 0:l.enableComments)&&n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Typography,{variant:"body1"},"Additional Comments"),n.a.createElement(h.TextField,{id:"comment",required:l.requiredComments,disabled:a,fullWidth:!0,multiline:!0,rows:3,rowsMax:3,value:I,formikContext:!1,error:J,helperText:U,onChange:function(e){return t=e.target.value,O(t),void V(t);var t}})))},Cr=function(e){var t=e.answers,i=e.instructors,r=e.question;return(null===r||void 0===r?void 0:r.instructor)&&i&&i.length>0?n.a.createElement(n.a.Fragment,null,i.map((function(i){var a,o=null!==(a=null===t||void 0===t?void 0:t.filter((function(e){return e.instructorId===i.sessionParticipantId}))[0])&&void 0!==a?a:void 0;return n.a.createElement(Or,Object.assign({key:"".concat(r.questionId,"_").concat(i.sessionParticipantId)},e,{answer:o,instructor:i}))}))):n.a.createElement(Or,Object.assign({key:"".concat(r.questionId,"_0")},e,{answer:t?t[0]:void 0}))},xr=function(e){var t,i=e.excludeNumbering,r=e.hideQuestion,a=e.numberStyle,o=e.question,s=e.tokens,l=null!==(t=null===o||void 0===o?void 0:o.sequence)&&void 0!==t?t:1,c=Ir(a,l),d=o&&(!i&&a&&""!==a?"".concat(c,". ").concat(null===o||void 0===o?void 0:o.name):null===o||void 0===o?void 0:o.name);return n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Card,{variant:"outlined",background:"grey",style:{border:"none"}},n.a.createElement(h.Box,{px:4,pt:3,pb:1},!r&&n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"body1",style:{fontWeight:700}},d)),""!==(null===o||void 0===o?void 0:o.text)&&n.a.createElement(h.Box,{pt:r?0:1},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:L(function(e){var t=e;return t=(t=(t=(t=t.replace("[First Name]",(null===s||void 0===s?void 0:s.firstName)||"")).replace("[Last Name]",(null===s||void 0===s?void 0:s.lastName)||"")).replace("[Office]",(null===s||void 0===s?void 0:s.office)||"")).replace("[Department]",(null===s||void 0===s?void 0:s.department)||"")}((null===o||void 0===o?void 0:o.text)||""))}})))))},jr=function(e){var t,i=e.answer,a=e.instructor,o=e.disabled,s=e.gridNumberStyle,l=e.mobileView,d=e.hideQuestion,u=e.question,v=e.validate,p=e.onChange,f=e.onCommentChange,m=e.onAnswerHasError,y=i?JSON.parse(i.answer):void 0,g=JSON.parse(null!==(t=null===u||void 0===u?void 0:u.content)&&void 0!==t?t:"{}"),b=!1,S=Object(r.useState)(y?function(e){var t=new Array;return b=!1,g.questions.forEach((function(i){g.answerDefinitions.forEach((function(r){e.filter((function(e){return e.answerId===r.answerId&&e.questionId===i.questionId})).length>0&&(t.push({questionId:i.questionId,answerId:r.answerId,commentRequired:r.commentRequired}),r.commentRequired&&(b=!0))}))})),t}(y.content):[]),E=Object(c.a)(S,2),I=E[0],O=E[1],C=Object(r.useState)(y?y.comment:""),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(!!y&&b),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)(!1),D=Object(c.a)(k,2),L=D[0],J=D[1],F=Object(r.useState)(""),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(!1),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(""),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useCallback)((function(e){var t=!1;if(g.questions.forEach((function(i){var r=e.filter((function(e){return e.questionId===i.questionId}));(null===u||void 0===u?void 0:u.required)&&r&&0===r.length&&(t=!0)})),(null===u||void 0===u?void 0:u.required)&&t?(J(!0),m&&m(!0),U("This field is required")):(J(!1),m&&m(!1),U("")),p){var i=new Array;e.sort((function(e,t){return e.questionId.localeCompare(t.questionId)})).forEach((function(e){i.push({questionId:e.questionId,answerId:e.answerId})})),p(u,JSON.stringify(i),!t,a?a.sessionParticipantId:void 0)}}),[u,g.questions,p,m,a]),H=Object(r.useCallback)((function(e){var t=!1;""===e&&((null===u||void 0===u?void 0:u.requiredComments)||A)?(z(!0),Y("This field is required")):(z(!1),Y(""),t=!0),f&&f(u,e,t,a?a.sessionParticipantId:void 0)}),[u,A,f,a]);Object(r.useEffect)((function(){v&&($(I),H(j))}),[v,I,j,$,H]);var K=function(e){$(e)},Q=function(){return n.a.createElement(h.Box,null,g.questions.map((function(e,t){var i=Ir(s,t+1),r=s&&""!==s?"".concat(i,". ").concat(e.text):e.text;return n.a.createElement(n.a.Fragment,{key:"question-".concat(e.questionId)},n.a.createElement(h.Box,{px:1},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:12,key:e.questionId},n.a.createElement(h.Typography,{variant:"body1"},r)),g.answerDefinitions.map((function(t){return n.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-".concat(e.questionId,"-").concat(t.answerId)},n.a.createElement(h.FormControlLabel,{name:"answer-".concat(t.answerId),value:t.answerId,label:t.text,control:n.a.createElement(h.Radio,{size:"small",formikContext:!1,name:t.answerId,value:t.answerId,color:"primary",checked:I.filter((function(i){return i.questionId===e.questionId&&i.answerId===t.answerId})).length>0,disabled:o,onChange:function(){var i=Object(Oi.a)(I.filter((function(t){return t.questionId!==e.questionId})));i=i.concat({questionId:e.questionId,answerId:t.answerId,commentRequired:t.commentRequired}),O(i);var r=i.filter((function(e){return e.commentRequired})).length>0;r||(z(!1),Y("")),N(r),K(i)}})}))})))),n.a.createElement(h.Box,{my:2},n.a.createElement(h.Divider,null)))})))};return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{pl:1},(null===u||void 0===u?void 0:u.instructor)&&a&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",a.fullName))),l?Q():n.a.createElement(h.Box,{ml:d?0:-2,mr:d?0:-1},n.a.createElement(h.Hidden,{smDown:!0},n.a.createElement(h.Table,null,n.a.createElement(h.TableBody,null,n.a.createElement(h.TableRow,null,n.a.createElement(h.TableCell,{style:{minWidth:"200px"}},"\xa0"),g.answerDefinitions.map((function(e){return n.a.createElement(h.TableCell,{key:"grid-header-".concat(e.answerId),align:"center",width:"".concat(70/g.answerDefinitions.length,"%"),style:{minWidth:"80px",whiteSpace:"normal"}},n.a.createElement(h.Typography,{variant:"body1"},e.text))}))),g.questions.map((function(e,t){var i=Ir(s,t+1),r=s&&""!==s?"".concat(i,". ").concat(e.text):e.text;return n.a.createElement(h.TableRow,{key:"question-".concat(e.questionId)},n.a.createElement(h.TableCell,{key:e.questionId,style:{minWidth:"200px",whiteSpace:"normal"}},r),g.answerDefinitions.map((function(t){return n.a.createElement(h.TableCell,{key:"grid-".concat(e.questionId,"-").concat(t.answerId),align:"center",padding:"none",style:{minWidth:"80px"},width:"".concat(70/g.answerDefinitions.length,"%")},n.a.createElement(h.Radio,{size:"small",formikContext:!1,name:t.answerId,value:t.answerId,color:"primary",checked:I.filter((function(i){return i.questionId===e.questionId&&i.answerId===t.answerId})).length>0,disabled:o,onChange:function(){var i=Object(Oi.a)(I.filter((function(t){return t.questionId!==e.questionId})));i=i.concat({questionId:e.questionId,answerId:t.answerId,commentRequired:t.commentRequired}),O(i);var r=i.filter((function(e){return e.commentRequired})).length>0;r||(z(!1),Y("")),N(r),K(i)}}))})))}))))),n.a.createElement(h.Hidden,{mdUp:!0},Q())),L&&""!==R&&n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"caption",color:"error"},R)),n.a.createElement(h.Box,{pl:1},(null===u||void 0===u?void 0:u.enableComments)&&n.a.createElement(h.Box,{pt:3},n.a.createElement(h.TextField,{id:"comment",required:u.requiredComments||A,label:(null===u||void 0===u?void 0:u.commentTitle)&&""!==(null===u||void 0===u?void 0:u.commentTitle)?null===u||void 0===u?void 0:u.commentTitle:"Additional Comments",disabled:o,fullWidth:!0,multiline:!0,rows:3,rowsMax:3,value:j,formikContext:!1,error:M,helperText:_,onChange:function(e){var t;t=e.target.value,w(t),H(t)}}))))},wr=function(e){var t,i=e.answers,a=e.instructors,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=Object(r.useState)(!1),u=Object(c.a)(d,2),v=u[0],p=u[1],f=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,m=Ir(s,f),y=l&&(s&&""!==s?"".concat(m,". ").concat(null===l||void 0===l?void 0:l.name):null===l||void 0===l?void 0:l.name),g=(null===l||void 0===l?void 0:l.instructor)&&a&&a.length>0?n.a.createElement(n.a.Fragment,null,a.map((function(t){var r,a=null!==(r=null===i||void 0===i?void 0:i.filter((function(e){return e.instructorId===t.sessionParticipantId}))[0])&&void 0!==r?r:void 0;return n.a.createElement(jr,Object.assign({key:"".concat(l.questionId,"_").concat(t.sessionParticipantId)},e,{answer:a,instructor:t,onAnswerHasError:function(e){return p(e)}}))}))):n.a.createElement(jr,Object.assign({key:"".concat(l.questionId,"_0")},e,{answer:i?i[0]:void 0,onAnswerHasError:function(e){return p(e)}}));return o?n.a.createElement(h.Box,{pb:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}),g):n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{p:2},n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Typography,{variant:"body1",color:v?"error":"default"},y,(null===l||void 0===l?void 0:l.required)&&" *")),n.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}),g))))},Pr=function(e){var t,i=e.answer,a=e.instructor,o=e.disabled,s=e.mobileView,l=e.question,d=e.validate,u=e.onChange,v=e.onCommentChange,p=e.onAnswerHasError,f=i?JSON.parse(i.answer):void 0,m=JSON.parse(null!==(t=null===l||void 0===l?void 0:l.content)&&void 0!==t?t:"{}"),y=Object(r.useState)(f?function(e){var t=new Array;return m.answerDefinitions.forEach((function(i){e.filter((function(e){return e.answerId===i.answerId})).length>0&&t.push(i)})),t}(f.content):[]),g=Object(c.a)(y,2),b=g[0],S=g[1],E=Object(r.useState)(f?f.comment:""),I=Object(c.a)(E,2),O=I[0],C=I[1],x=Object(r.useState)(!1),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(!1),A=Object(c.a)(T,2),N=A[0],k=A[1],D=Object(r.useState)(""),L=Object(c.a)(D,2),J=L[0],F=L[1],B=Object(r.useState)(!1),R=Object(c.a)(B,2),U=R[0],G=R[1],q=Object(r.useState)(""),M=Object(c.a)(q,2),z=M[0],W=M[1],V=Object(r.useCallback)((function(e){var t=!1;if(0===e.length&&(null===l||void 0===l?void 0:l.required)?(k(!0),p&&p(!0),F("This field is required")):(t=!0,k(!1),p&&p(!1),F("")),u){var i=new Array;e.sort((function(e,t){return e.answerId.localeCompare(t.answerId)})).forEach((function(e){i.push({questionId:(l.questionId||0).toString(),answerId:e.answerId})})),u(l,JSON.stringify(i),t,a?a.sessionParticipantId:void 0)}}),[l,u,p,a]),_=Object(r.useCallback)((function(e){var t=!1;""===e&&((null===l||void 0===l?void 0:l.requiredComments)||w)?(G(!0),W("This field is required")):(G(!1),W(""),t=!0),v&&v(l,e,t,a?a.sessionParticipantId:void 0)}),[l,w,v,a]);Object(r.useEffect)((function(){d&&(V(b),_(O))}),[d,b,O,V,_]);return n.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.instructor)&&a&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",a.fullName)),n.a.createElement(h.Box,{pl:1},n.a.createElement(h.Grid,{container:!0},m.answerDefinitions.map((function(e){return n.a.createElement(h.Grid,{item:!0,key:e.answerId,md:s?12:"ThreeColumn"===m.answerOrientation?4:"TwoColumn"===m.answerOrientation?6:"OneColumn"===m.answerOrientation?12:"auto",xs:12},n.a.createElement(h.FormControlLabel,{name:"question-".concat(l.questionId),value:e.answerId,label:e.text,control:n.a.createElement(h.Checkbox,{size:"small",name:"question-".concat(l.questionId),value:e.answerId,color:"primary",checked:b.filter((function(t){return t.answerId===e.answerId})).length>0,disabled:o,formikContext:!1,onChange:function(t,i){var r=Object(Oi.a)(b);r=i?r.concat(e):r.filter((function(t){return t.answerId!==e.answerId})),S(r);var n=r.filter((function(e){return e.commentRequired})).length>0;n||(G(!1),W("")),P(n),V(r)}})}))})))),N&&""!==J&&n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"caption",color:"error"},J)),(null===l||void 0===l?void 0:l.enableComments)&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.TextField,{id:"comment",required:l.requiredComments||w,label:(null===l||void 0===l?void 0:l.commentTitle)&&""!==(null===l||void 0===l?void 0:l.commentTitle)?null===l||void 0===l?void 0:l.commentTitle:"Additional Comments",disabled:o,fullWidth:!0,multiline:!0,rows:3,rowsMax:3,value:O,formikContext:!1,error:U,helperText:z,onChange:function(e){var t;t=e.target.value,C(t),_(t)}})))},Tr=function(e){var t,i=e.answers,a=e.instructors,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=Object(r.useState)(!1),u=Object(c.a)(d,2),v=u[0],p=u[1],f=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,m=Ir(s,f),y=l&&(s&&""!==s?"".concat(m,". ").concat(null===l||void 0===l?void 0:l.name):null===l||void 0===l?void 0:l.name),g=(null===l||void 0===l?void 0:l.instructor)&&a&&a.length>0?n.a.createElement(n.a.Fragment,null,a.map((function(t){var r,a=null!==(r=null===i||void 0===i?void 0:i.filter((function(e){return e.instructorId===t.sessionParticipantId}))[0])&&void 0!==r?r:void 0;return n.a.createElement(Pr,Object.assign({key:"".concat(l.questionId,"_").concat(t.sessionParticipantId)},e,{answer:a,instructor:t,onAnswerHasError:function(e){return p(e)}}))}))):n.a.createElement(Pr,Object.assign({key:"".concat(l.questionId,"_0")},e,{answer:i?i[0]:void 0,onAnswerHasError:function(e){return p(e)}}));return o?n.a.createElement(h.Box,{pb:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}),g):n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{p:2},n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Typography,{variant:"body1",color:v?"error":"default"},y,(null===l||void 0===l?void 0:l.required)&&" *")),n.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}),g))))},Ar=function(e){var t,i=e.answer,a=e.instructor,o=e.disabled,s=e.mobileView,l=e.question,d=e.validate,u=e.onChange,v=e.onCommentChange,p=e.onAnswerHasError,f=i?JSON.parse(i.answer):void 0,m=Object(r.useState)(f&&f.content[0]?f.content[0].answerId:""),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(f?f.comment:""),E=Object(c.a)(S,2),I=E[0],O=E[1],C=Object(r.useState)(!1),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(!1),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)(""),D=Object(c.a)(k,2),L=D[0],J=D[1],F=Object(r.useState)(!1),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(""),q=Object(c.a)(G,2),M=q[0],z=q[1],W=JSON.parse(null!==(t=null===l||void 0===l?void 0:l.content)&&void 0!==t?t:"{}"),V=Object(r.useCallback)((function(e){var t=!1;""===e&&(null===l||void 0===l?void 0:l.required)?(N(!0),p&&p(!0),J("This field is required")):(t=!0,N(!1),p&&p(!1),J("")),u&&u(l,JSON.stringify([{questionId:(l.questionId||0).toString(),answerId:e}]),t,a?a.sessionParticipantId:void 0)}),[l,u,p,a]),_=Object(r.useCallback)((function(e){var t=!1;""===e&&((null===l||void 0===l?void 0:l.requiredComments)||j)?(U(!0),z("This field is required")):(U(!1),z(""),t=!0),v&&v(l,e,t,a?a.sessionParticipantId:void 0)}),[l,j,v,a]);Object(r.useEffect)((function(){d&&(V(g),_(I))}),[d,g,I,V,_]);return n.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.instructor)&&a&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor:"," ".concat(a.fullName))),n.a.createElement(h.Grid,{container:!0},W.answerDefinitions.map((function(e){return n.a.createElement(h.Grid,{item:!0,key:e.answerId,md:s?12:"ThreeColumn"===W.answerOrientation?4:"TwoColumn"===W.answerOrientation?6:"OneColumn"===W.answerOrientation?12:"auto",xs:s?12:"ThreeColumn"===W.answerOrientation?4:"TwoColumn"===W.answerOrientation?6:"OneColumn"===W.answerOrientation?12:"auto"},n.a.createElement(h.FormControlLabel,{name:"question-".concat(l.questionId),value:e.answerId,label:e.text,control:n.a.createElement(h.Radio,{size:"small",name:"question-".concat(l.questionId),value:e.answerId,color:"primary",checked:e.answerId===g,disabled:o,formikContext:!1,onChange:function(){var t;b(e.answerId),w(e.commentRequired),e.commentRequired||(U(!1),z("")),w(e.commentRequired),t=e.answerId,V(t)}})}))}))),A&&""!==L&&n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"caption",color:"error"},L)),(null===l||void 0===l?void 0:l.enableComments)&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.TextField,{id:"comment",required:l.requiredComments||j,label:(null===l||void 0===l?void 0:l.commentTitle)&&""!==(null===l||void 0===l?void 0:l.commentTitle)?null===l||void 0===l?void 0:l.commentTitle:"Additional Comments",disabled:o,fullWidth:!0,multiline:!0,rows:3,rowsMax:3,value:I,formikContext:!1,error:R,helperText:M,onChange:function(e){var t;t=e.target.value,O(t),_(t)}})))},Nr=function(e){var t,i=e.answers,a=e.instructors,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=Object(r.useState)(!1),u=Object(c.a)(d,2),v=u[0],p=u[1],f=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,m=Ir(s,f),y=l&&(s&&""!==s?"".concat(m,". ").concat(null===l||void 0===l?void 0:l.name):null===l||void 0===l?void 0:l.name),g=(null===l||void 0===l?void 0:l.instructor)&&a&&a.length>0?n.a.createElement(n.a.Fragment,null,a.map((function(t){var r,a=null!==(r=null===i||void 0===i?void 0:i.filter((function(e){return e.instructorId===t.sessionParticipantId}))[0])&&void 0!==r?r:void 0;return n.a.createElement(Ar,Object.assign({key:"".concat(l.questionId,"_").concat(t.sessionParticipantId)},e,{answer:a,instructor:t,onAnswerHasError:function(e){return p(e)}}))}))):n.a.createElement(Ar,Object.assign({key:"".concat(l.questionId,"_0")},e,{answer:i?i[0]:void 0,onAnswerHasError:function(e){return p(e)}}));return o?n.a.createElement(h.Box,{pb:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}),g):n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{p:2},n.a.createElement(h.Box,{pb:1},n.a.createElement(h.Typography,{variant:"body1",color:v?"error":"default"},y,(null===l||void 0===l?void 0:l.required)&&" *")),n.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===l||void 0===l?void 0:l.text)}}),g))))},kr=function(e){var t,i=e.disabled,a=e.hideQuestion,o=e.numberStyle,s=e.question,l=e.answer,d=e.instructor,u=e.validate,v=e.onChange,p=e.onCommentChange,f=l?JSON.parse(l.answer):void 0,m=Object(r.useState)(f?f.content[0].answerId:""),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(f?f.comment:""),E=Object(c.a)(S,2),I=E[0],O=E[1],C=Object(r.useState)(!1),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(""),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)(!1),D=Object(c.a)(k,2),J=D[0],F=D[1],B=Object(r.useState)(""),R=Object(c.a)(B,2),U=R[0],G=R[1],q=null!==(t=null===s||void 0===s?void 0:s.sequence)&&void 0!==t?t:1,M=Ir(o,q),z=s&&(o&&""!==o?"".concat(M,". ").concat(null===s||void 0===s?void 0:s.name):null===s||void 0===s?void 0:s.name),W=Object(r.useCallback)((function(e){var t=!1;""===e&&(null===s||void 0===s?void 0:s.required)?(w(!0),N("This field is required")):e.length>500?(w(!0),N("500 character limit.")):(t=!0,w(!1),N("")),v&&v(s,JSON.stringify([{questionId:(s.questionId||0).toString(),answerId:e}]),t,d?d.sessionParticipantId:void 0)}),[v,s,d]),V=Object(r.useCallback)((function(e){var t=!1;""===e&&(null===s||void 0===s?void 0:s.requiredComments)?(F(!0),G("This field is required")):(F(!1),G(""),t=!0),p&&p(s,e,t,d?d.sessionParticipantId:void 0)}),[p,s,d]);Object(r.useEffect)((function(){u&&(W(g),V(I))}),[u,g,I,W,V]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,null,!a&&n.a.createElement(n.a.Fragment,null,(null===s||void 0===s?void 0:s.instructor)&&d&&n.a.createElement(h.Box,{pt:1},n.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",d.fullName)),n.a.createElement(h.Box,{pb:1},n.a.createElement(h.TextField,{id:"question",required:null===s||void 0===s?void 0:s.required,label:z,fullWidth:!0,formikContext:!1,error:j,value:g,helperText:A,disabled:i,onChange:function(e){var t;t=e.target.value,W(t),b(t)}}))),""!==(null===s||void 0===s?void 0:s.text)&&n.a.createElement(h.Box,{paddingX:1},n.a.createElement(h.Box,{dangerouslySetInnerHTML:{__html:L(null===s||void 0===s?void 0:s.text)}}))),(null===s||void 0===s?void 0:s.enableComments)&&n.a.createElement(h.Box,{pb:1},n.a.createElement(h.TextField,{id:"comment",required:s.requiredComments,label:(null===s||void 0===s?void 0:s.commentTitle)&&""!==(null===s||void 0===s?void 0:s.commentTitle)?null===s||void 0===s?void 0:s.commentTitle:"Additional Comments",fullWidth:!0,multiline:!0,rows:3,rowsMax:3,disabled:i,value:I,formikContext:!1,error:J,helperText:U,onChange:function(e){var t;t=e.target.value,V(t),O(t)}})))},Dr=function(e){var t=e.answers,i=e.instructors,r=e.question;return(null===r||void 0===r?void 0:r.instructor)&&i&&i.length>0?n.a.createElement(n.a.Fragment,null,i.map((function(i){var a,o=null!==(a=null===t||void 0===t?void 0:t.filter((function(e){return e.instructorId===i.sessionParticipantId}))[0])&&void 0!==a?a:void 0;return n.a.createElement(kr,Object.assign({key:"".concat(r.questionId,"_").concat(i.sessionParticipantId)},e,{answer:o,instructor:i}))}))):n.a.createElement(kr,Object.assign({key:"".concat(r.questionId,"_0")},e,{answer:t?t[0]:void 0}))},Lr=function(e){var t=e.hideQuestion,i=e.question;return n.a.createElement(h.Box,{py:t?0:.5},function(){switch(null===i||void 0===i?void 0:i.questionTypeCode){case"essay":return n.a.createElement(Cr,e);case"ratings":case"mcqsingle":return n.a.createElement(Nr,e);case"mcqmultiple":return n.a.createElement(Tr,e);case"grid":return n.a.createElement(wr,e);case"infobox":return n.a.createElement(xr,e);default:return n.a.createElement(Dr,e)}}())},Jr=function(e){var t,i=e.numberStyle,r=e.section,a=e.readOnly,o=null!==(t=null===r||void 0===r?void 0:r.sequence)&&void 0!==t?t:1,s=Ir(i,o);return n.a.createElement(h.Box,null,"__default__"!==(null===r||void 0===r?void 0:r.name)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{paddingY:.5},n.a.createElement(h.Typography,{variant:"h6"},r&&(i&&""!==i?"".concat(s,". ").concat(null===r||void 0===r?void 0:r.name):null===r||void 0===r?void 0:r.name))),n.a.createElement(h.Divider,{style:{backgroundColor:"black"}}),a||""===(null===r||void 0===r?void 0:r.text)?n.a.createElement(h.Box,{pb:1}):n.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:L(null===r||void 0===r?void 0:r.text)}})))},Fr=function(e){var t,i,r=e.currentQuestion,a=e.currentSectionId,o=e.disabled,s=e.evaluation,l=e.evaluationAnswers,c=e.validate,d=e.tokens,u=e.instructors,v=e.onChange,p=e.onCommentChange,f=e.onValidate,m=null!==(t=null===s||void 0===s||null===(i=s.evaluationFormNumberExcludes)||void 0===i?void 0:i.map((function(e){var t;return null!==(t=e.formNumberExcludeCode)&&void 0!==t?t:""})))&&void 0!==t?t:[];return n.a.createElement(h.Box,null,function(e){var t,i,y=!!(null===e||void 0===e?void 0:e.questionTypeCode)&&m.includes(e.questionTypeCode),g=null===s||void 0===s||null===(t=s.sections)||void 0===t?void 0:t.filter((function(e){return e.sectionId===a}))[0],b=(null===g||void 0===g||null===(i=g.questions)||void 0===i?void 0:i.filter((function(t){var i;return m.includes(null!==(i=t.questionTypeCode)&&void 0!==i?i:"")&&(t.sequence||0)<((null===e||void 0===e?void 0:e.sequence)||0)})).length)||0,S=((null===e||void 0===e?void 0:e.sequence)||1)-b;return n.a.createElement(h.Box,{key:null===g||void 0===g?void 0:g.sectionId},a&&g&&n.a.createElement(Jr,{numberStyle:null===s||void 0===s?void 0:s.sectionFormNumberStyleCode,section:g}),r&&n.a.createElement(h.Box,{key:null===e||void 0===e?void 0:e.questionId},n.a.createElement(Lr,{gridNumberStyle:null===s||void 0===s?void 0:s.gridQuestionFormNumberStyleCode,numberStyle:null===s||void 0===s?void 0:s.questionFormNumberStyleCode,question:Object(J.a)(Object(J.a)({},e),{},{sequence:S}),excludeNumbering:y,mobileView:!0,disabled:o,validate:c,tokens:d,instructors:u,answers:null===l||void 0===l?void 0:l.filter((function(e){return e.questionId===r.questionId})),onChange:v,onCommentChange:p,onValidate:f})))}(r))},Br=function(e){var t,i,a,o=e.currentQuestion,s=e.evaluation,l=e.currentSectionId,c=e.disabled,d=e.evaluationAnswers,u=e.tokens,v=e.validate,p=e.instructors,f=e.setValidate,m=e.onChange,y=e.onValidate,g=Object(Oi.a)(d||new Array),b=Object(r.useCallback)((function(){var e=g.filter((function(e){return!e.isValid||!e.isCommentValid})),t=!0;e&&e.length>0&&(t=!1),f&&f(!1),y&&y(t,g)}),[g,f,y]);Object(r.useEffect)((function(){v&&b()}),[v,b]);var S=null!==(t=null===s||void 0===s||null===(i=s.evaluationFormNumberExcludes)||void 0===i?void 0:i.map((function(e){var t;return null!==(t=e.formNumberExcludeCode)&&void 0!==t?t:""})))&&void 0!==t?t:[],E=window.screen.width<600,I=function(e,t,i,r){var n=g.filter((function(t){return t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId)})),a="",o=!0,s="";if(n.length>0){var l=JSON.parse(n[0].answer);s=n[0].initialAnswer,g=g.filter((function(t){return!(t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId))})),a=l.comment,o=n[0].isCommentValid}g.push({questionId:e.questionId||0,instructorId:r,initialAnswer:s,answer:JSON.stringify({content:JSON.parse(t),comment:a}),isValid:i,isCommentValid:o}),m&&m(g)},O=function(e,t,i,r){var n=g.filter((function(t){return t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId)})),a=[],o=!0,s="";if(n.length>0){var l=JSON.parse(n[0].answer);g=g.filter((function(t){return!(t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId))})),a=l.content,s=n[0].initialAnswer,o=n[0].isValid}g.push({questionId:e.questionId||0,instructorId:r,answer:JSON.stringify({content:a,comment:t}),initialAnswer:s,isValid:o,isCommentValid:i}),m&&m(g)};return n.a.createElement(h.Box,null,E?n.a.createElement(Fr,{currentQuestion:o,currentSectionId:l,disabled:c,evaluation:s,evaluationAnswers:g,tokens:u,validate:v,onChange:I,onCommentChange:O,instructors:p}):null===s||void 0===s||null===(a=s.sections)||void 0===a?void 0:a.sort((function(e,t){return(e.sequence||0)-(t.sequence||0)})).map((function(e){var t,i=0;return n.a.createElement(h.Box,{key:e.sectionId},n.a.createElement(Jr,{numberStyle:null===s||void 0===s?void 0:s.sectionFormNumberStyleCode,section:e}),null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.sort((function(e,t){return(e.sequence||0)-(t.sequence||0)})).map((function(e){var t=!!e.questionTypeCode&&S.includes(e.questionTypeCode);return t||(i+=1),function(e,t){var i;return n.a.createElement(h.Box,{key:e.questionId},n.a.createElement(Lr,{gridNumberStyle:null===s||void 0===s?void 0:s.gridQuestionFormNumberStyleCode,numberStyle:null===s||void 0===s?void 0:s.questionFormNumberStyleCode,question:e,answers:null===(i=g)||void 0===i?void 0:i.filter((function(t){return t.questionId===e.questionId})),disabled:c,excludeNumbering:t,validate:v,tokens:u,onChange:I,onCommentChange:O,instructors:p}))}(Object(J.a)(Object(J.a)({},e),{},{sequence:i}),t)})))})))},Rr=Object(V.makeStyles)((function(){return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}}})})),Ur=Object(s.b)(null,(function(e){return{getEvaluation:function(t){return e(br(t))},getCourseById:function(t){return e(function(e){return function(t){return q.n.get(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getSessionById:function(t){return e(Gi(t))},getAllSessionInstructors:function(t){return e(gr(t))}}})),Gr=Object(d.o)(Ur((function(e){var t,i,a,o,s,l=e.getEvaluation,d=e.match,u=e.getCourseById,v=e.getSessionById,p=e.getAllSessionInstructors,f=Rr(),m=d.params,y=m.evaluationId,g=m.courseId,b=m.sessionId,S=Object(r.useState)(),E=Object(c.a)(S,2),I=E[0],O=E[1],C=Object(r.useState)(),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(),T=Object(c.a)(P,2),A=T[0],k=T[1],D=Object(r.useState)(void 0),J=Object(c.a)(D,2),F=J[0],B=J[1],R=Object(r.useState)(void 0),U=Object(c.a)(R,2),G=U[0],q=U[1],M=Object(r.useState)(void 0),z=Object(c.a)(M,2),W=z[0],V=z[1];Object(r.useEffect)((function(){0!==+y?l([+y]).then((function(e){var t,i,r,n,a,o,s,l;e.length>0&&(O(e[0]),q((null===(t=e[0])||void 0===t?void 0:t.sections)&&(null===(i=e[0])||void 0===i?void 0:i.sections.length)>0&&(null===(r=e[0])||void 0===r?void 0:r.sections[0].questions)&&(null===(n=e[0])||void 0===n?void 0:n.sections[0].questions.length)>0?null===(a=e[0])||void 0===a?void 0:a.sections[0].questions[0]:void 0),V((null===(o=e[0])||void 0===o?void 0:o.sections)&&(null===(s=e[0])||void 0===s?void 0:s.sections.length)>0?null===(l=e[0])||void 0===l?void 0:l.sections[0].sectionId:void 0));u(g).then((function(e){w(e)})),v(b).then((function(e){k(e)})),p(+b).then((function(e){B(e)}))})):O({})}),[y,l,g,p,u,v,b]);return n.a.createElement(h.Box,{margin:"10px auto",maxWidth:"1100px"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:f.printButton},n.a.createElement(h.Box,{width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),n.a.createElement(h.Grid,{item:!0,xs:12})),n.a.createElement(n.a.Fragment,null,void 0===I&&void 0===F?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(n.a.Fragment,null,j&&A&&n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Card,{variant:"outlined",status:"primary"},n.a.createElement(h.CardHeader,{style:{padding:"8px"},title:n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{p:1,pr:2,my:"auto"},n.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===j||void 0===j?void 0:j.title),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null===j||void 0===j?void 0:j.providerName)))}),n.a.createElement(h.Divider,null),n.a.createElement(h.CardContent,null,n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},n.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(t=A.startDate)&&void 0!==t?t:new Date})),n.a.createElement(h.Box,{flex:1,my:"auto"},(null===(i=A.title)||void 0===i?void 0:i.trim())!==(null===(a=j.title)||void 0===a?void 0:a.trim())&&n.a.createElement(h.Box,{mb:.5},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},A.title)),n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},A.startTime?"".concat(A.startTime):"",A.endTime?" - ".concat(A.endTime):""," ",A.startTime||A.endTime?" ".concat(null!==(o=A.timeZone)&&void 0!==o?o:"","; "):"",Object(N.c)(A.startDate,"MMM DD, YYYY")||"",A.endDate&&A.endDate!==A.startDate&&" - ".concat(Object(N.c)(A.endDate,"MMM DD, YYYY")||"")))),(A.location||A.room)&&n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},A.location,A.room?"; ".concat(A.room):""))),n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return n.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(s=A.courseFormatPortalCategory)&&void 0!==s?s:"")),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},A.courseFormat))))),A.detail&&n.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:L(A.detail)}})))),n.a.createElement(Br,{evaluation:I,currentQuestion:G,currentSectionId:W,instructors:F}))),void 0!==I&&n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center"},n.a.createElement(h.Box,{mt:3,mb:1},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("b",null,"Micron Systems, Inc."))),n.a.createElement(h.Row,null,n.a.createElement(h.Box,{mr:1,mt:1},n.a.createElement(h.Typography,{variant:"caption"},"Generated by")),n.a.createElement("img",{alt:"",width:"125",height:"30",src:"../../../../images/cemanager-logo.png"})),n.a.createElement(h.Box,{mb:3,mt:1},n.a.createElement(h.Typography,{variant:"caption"},"on ",Object(N.c)(new Date,"MMMM DD, YYYY")))))))}))),qr=function(e){var t=e.history;return Object(r.useEffect)((function(){window.open("".concat("https://micronsystems.freshworks.com/sp/OIDC/335694640572827773","/login?redirect_uri=").concat("https://micronsystems.freshdesk.com/freshid/customer_authorize_callback?hd%3Dhelp-portal-cemanagerv2.micronapps.com","&client_id=").concat("451979510707337272","&slug=jwt"),"_blank"),t.goBack()}),[t]),n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary",variant:"indeterminate"}))},Mr=i(353),zr=i(255),Wr=i(154),Vr=i(68),_r=i(199),Yr=Object(s.b)((function(e){return{authentication:e.authentication}}),(function(e){return{signIn:function(t,i,r){return e(_r.a(t,i,r))},setAdminRedirectIdpId:function(t){return e(Object(O.c)(t))},setRedirectUrl:function(t){return e(Object(O.g)(t))},setSource:function(t){return e(Object(O.j)(t))},setGuid:function(t){return e(Object(O.e)(t))},setType:function(t){return e(Object(O.h)(t))},setRefreshToken:function(t){return e(Object(O.i)(t))},setClientId:function(t){return e(Object(O.d)(t))},getPortalBranding:function(t){return e(Object(Vr.a)(t))},addUserAccessToken:function(t){return e(C.a(t))},setIsUserAccessAdded:function(t){return e(Object(O.f)(t))}}})),$r=Yr((function(e){var t=e.authentication,i=e.signIn,a=e.setAdminRedirectIdpId,o=e.setRedirectUrl,s=e.setSource,l=e.setGuid,c=e.setType,u=e.setRefreshToken,v=e.setClientId,p=e.getPortalBranding,f=e.addUserAccessToken,m=e.setIsUserAccessAdded,y=Object(Wr.useMdsAppContext)().paths,g=Object(d.k)(),b=Object(d.l)(),S=b.hash,E=window.location.hostname.split("."),O=E&&E.length>0?E[0]:"localhost",C=Object(r.useRef)(""),x=Object(r.useCallback)((function(){var e="";document.cookie.split(";").forEach((function(t){t.includes("sessionId")&&(e=t.trim())})),e=e.split("=")[1],C.current=e,null!==C.current&&""!==C.current&&void 0!==C.current||(C.current=Object(zr.v4)(),document.cookie="sessionId=".concat(C.current,";path=/;domain=").concat("micronapps.com")),localStorage.setItem("userLoginSessionId",C.current),f({userLoginSessionId:C.current,localStorageJson:JSON.stringify(localStorage)})}),[f]),j=Object(r.useCallback)((function(e){var r,n,a,o,s,l,c;if(x(),i({idpId:e.payload.sub,authenticated:!0,accessToken:e.jwtToken,jwtExpiration:1e3*e.getExpiration(),userName:e.payload.username,isExpired:!1},t.adminRedirectIdpId,t.source),""!==(null!==(r=t.guid)&&void 0!==r?r:"")&&"session-link"===t.redirectionType)g.push("/registration/".concat(t.guid));else if(""!==(null!==(n=t.guid)&&void 0!==n?n:"")&&"schedule-link"===t.redirectionType)g.push("/schedule/registration/".concat(t.guid));else if(""!==(null!==(a=t.guid)&&void 0!==a?a:"")&&"learning-plan-link"===t.redirectionType)g.push("/learning-plan/".concat(t.guid));else if(""!==(null!==(o=t.guid)&&void 0!==o?o:"")&&"learning-plan-report"===t.redirectionType)g.push("/report/learning-plans/".concat(t.guid));else if(""!==(null!==(s=t.guid)&&void 0!==s?s:"")&&"certificate-link"===t.redirectionType)g.push("/certificate/".concat(t.guid));else if(""!==(null!==(l=t.guid)&&void 0!==l?l:"")&&"attendance-sheet-link"===t.redirectionType)g.push("/attendance-sheet/".concat(t.guid));else if(""!==(null!==(c=t.redirectUrl)&&void 0!==c?c:"")){var d;g.push(null!==(d=t.redirectUrl)&&void 0!==d?d:"")}else g.push(y.home)}),[t.adminRedirectIdpId,t.guid,t.redirectUrl,t.redirectionType,t.source,g,y.home,i,x]),w=Object(r.useRef)(t.refreshToken),P=Object(r.useRef)(p),T=Object(r.useRef)(j),A=Object(r.useRef)(O),N=Object(r.useRef)(a),k=Object(r.useRef)(v),D=Object(r.useRef)(l),L=Object(r.useRef)(o),J=Object(r.useRef)(u),F=Object(r.useRef)(s),B=Object(r.useRef)(c),R=Object(r.useRef)(m);return Object(r.useEffect)((function(){var e,t,i,r,n;localStorage.clear();var a,o,s=new URL(window.location.href).searchParams.get("id_token"),l=function(e){var t="".concat(e,"="),i=decodeURIComponent(document.cookie).split("; "),r="";return i.forEach((function(e){0===e.indexOf(t)&&(r=e.substring(t.length))})),r}("login_state");(null!==new URL(window.location.href).searchParams.get("idpid")&&N.current(null!==(e=new URL(window.location.href).searchParams.get("idpid"))&&void 0!==e?e:void 0),null!==new URL(window.location.href).searchParams.get("redirectUrl")&&L.current(null!==(t=new URL(window.location.href).searchParams.get("redirectUrl"))&&void 0!==t?t:null),null!==new URL(window.location.href).searchParams.get("source"))?F.current(null!==(a=new URL(window.location.href).searchParams.get("source"))&&void 0!==a?a:void 0):F.current(void 0);(null!==new URL(window.location.href).searchParams.get("guid")&&D.current(null!==(i=new URL(window.location.href).searchParams.get("guid"))&&void 0!==i?i:null),null!==new URL(window.location.href).searchParams.get("type")&&B.current(null!==(r=new URL(window.location.href).searchParams.get("type"))&&void 0!==r?r:null),null!==new URL(window.location.href).searchParams.get("refresh_token")&&J.current(null!==(n=new URL(window.location.href).searchParams.get("refresh_token"))&&void 0!==n?n:null),null!==new URL(window.location.href).searchParams.get("client_id"))&&k.current(null!==(o=new URL(window.location.href).searchParams.get("client_id"))&&void 0!==o?o:"");s&&""!==l&&window.location.href.includes(l)?window.location.href=window.location.href.replace("?","#"):""!==l&&window.location.href.includes(l)||window.location.replace("/signout"),Object(I.a)().then((function(e){Mr.a.configure(e),Mr.a.currentSession().then((function(){Mr.a.currentAuthenticatedUser().then((function(e){var t;localStorage.setItem("CognitoIdentityServiceProvider.".concat(e.pool.clientId,".").concat(e.username,".refreshToken"),null!==(t=w.current)&&void 0!==t?t:""),T.current(e.signInUserSession.accessToken),P.current(e.signInUserSession.accessToken.payload.sub)}))})),R.current(!0)})).catch((function(){window.location.href="https://{host}.{app}.micronapps.com/".replace("{host}",A.current).replace("{app}","cem")}))}),[w,P,T,A,N,k,D,L,J,F,B,R]),S.includes("error")&&(S=(S=decodeURIComponent(S.substring(0,S.indexOf("&"))).substring(S.indexOf("=")+1).split("+").join(" ")).substring(0,S.indexOf("..")+1),window.history.pushState({},"unhashedUrl",b.pathname.split("#")[0])),n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,null))})),Hr=function(){var e="",t="";return document.cookie.split(";").forEach((function(e){e.includes("sessionId")&&(t=e.trim())})),""!==(e=t=t.split("=")[1])&&null!==e&&void 0!==e||(e=localStorage.getItem("userLoginSessionId")||""),e},Kr=i(522),Qr=Object(s.b)((function(e){return{authentication:e.authentication,firm:e.generalSettings.firm,passwordPolicy:e.generalSettings.passwordPolicy}}),(function(e){return{signIn:function(t,i,r){return e(_r.b(t,i,r))},getPasswordPolicyAsync:function(){return e(Kr.b())},getUserAccessToken:function(t,i){return e(C.f(t,i))}}}))((function(e){var t=e.getPasswordPolicyAsync,i=e.getUserAccessToken,a=e.signIn,o=Object(Wr.useMdsAppContext)().paths,s=Object(d.k)(),l=Object(r.useState)(!1),u=Object(c.a)(l,2),v=u[0],p=u[1],f=window.location.hostname.split("."),m=f&&f.length>0?f[0]:"localhost",y=Hr();localStorage.setItem("userLoginSessionId",y);var g=Object(r.useCallback)((function(e){var t,i,r,n,l,c=null!==(t=new URL(window.location.href).searchParams.get("idpid"))&&void 0!==t?t:"",d=null!==(i=new URL(window.location.href).searchParams.get("redirectUrl"))&&void 0!==i?i:"",u=null!==(r=new URL(window.location.href).searchParams.get("source"))&&void 0!==r?r:"",h=null!==(n=new URL(window.location.href).searchParams.get("guid"))&&void 0!==n?n:"",v=null!==(l=new URL(window.location.href).searchParams.get("type"))&&void 0!==l?l:"";a({idpId:e.payload.sub,authenticated:!0,accessToken:e.jwtToken,jwtExpiration:1e3*e.getExpiration(),userName:e.payload.username},c,u),""!==h&&"session-link"===v?s.push("/registration/".concat(h)):""!==h&&"schedule-link"===v?s.push("/schedule/registration/".concat(h)):""!==h&&"learning-plan-link"===v?s.push("/learning-plan/".concat(h)):""!==h&&"learning-plan-report"===v?s.push("/report/learning-plans/".concat(h)):""!==h&&"certificate-link"===v?s.push("/certificate/".concat(h)):""!==h&&"attendance-sheet-link"===v?s.push("/attendance-sheet/".concat(h)):""!==d?s.push(d):s.push(o.home)}),[s,o.home,a]);return Object(r.useEffect)((function(){t(),Object(I.a)().then((function(e){Mr.a.configure(e),Mr.a.currentSession().then((function(){Mr.a.currentAuthenticatedUser().then((function(e){p(!0),g(e.signInUserSession.accessToken)}))}))})).catch((function(){window.location.href="https://{host}.{app}.micronapps.com/".replace("{host}",m).replace("{app}","cem")}))}),[t,i,o.error503,o.home,s,s.push,m,a,v,p,y,g]),n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary",variant:"indeterminate"}))})),Zr=i(184);function Xr(){Xr=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var en=Object(s.b)(null,(function(e){return{signOut:function(){return e(_r.d())}}}))((function(e){var t=e.signOut,i=Object(Wr.useMdsAppContext)().paths,a=Object(d.k)().push,o=window.location.hostname.split("."),s=o&&o.length>0?o[0]:"localhost",c=new URLSearchParams(Object(d.l)().search).get("guid"),u=new URLSearchParams(Object(d.l)().search).get("type");return Object(r.useEffect)((function(){Zr.a.clear(),localStorage.clear(),function(){for(var e=document.cookie.split(";"),t=0;t=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var nn=Object(s.b)((function(e){return{authentication:e.authentication}}),(function(e){return{clearUserAccessTokenStore:function(t){return e(C.d(t))},signOut:function(){return e(_r.d())}}}))((function(e){var t,i,a=e.signOut,o=e.clearUserAccessTokenStore,s=e.authentication,c=Object(Wr.useMdsAppContext)().paths,u=Object(d.k)().push,v=null!==(t=new URL(window.location.href).searchParams.get("guid"))&&void 0!==t?t:"",p=null!==(i=new URL(window.location.href).searchParams.get("type"))&&void 0!==i?i:"",f=window.location.hostname.split("."),m=f&&f.length>0?f[0]:"localhost";return Object(r.useEffect)((function(){(null!==localStorage.getItem("userLoginSessionId")&&""!==localStorage.getItem("userLoginSessionId")&&void 0!==localStorage.getItem("userLoginSessionId")||s.isExpired)&&o(localStorage.getItem("userLoginSessionId")||""),setTimeout((function(){Zr.a.clear(),localStorage.clear(),tn(),Mr.a.signOut().then(Object(l.a)(rn().mark((function e(){return rn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:window.location.href=""!==p&&""!==v?"".concat("https://{host}.{app}.micronapps.com/".replace("{host}",m).replace("{app}","cem"),"signout?guid=").concat(v,"&type=").concat(p):"".concat("https://{host}.{app}.micronapps.com/".replace("{host}",m).replace("{app}","cem"),"signout");case 3:case"end":return e.stop()}}),e)})))).catch((function(){u(c.error503)}))}),3e3)}),[c.error503,c.signedOut,m,u,a,o,s.isExpired,p,v]),n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"inherit"}))})),an=Object(V.makeStyles)((function(){return{root:{padding:"3vh",paddingTop:"10vh",display:"flex",flexDirection:"column",alignContent:"center"},imageContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"},image:{maxWidth:"100%",width:560,maxHeight:300,height:"auto"},buttonContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"}}})),on=function(){var e=an(),t=Object(V.useTheme)(),i=Object(V.useMediaQuery)(t.breakpoints.down("sm"));return Object(r.useEffect)((function(){tn()}),[]),n.a.createElement("div",{className:e.root,title:"SignedOut"},n.a.createElement(h.Typography,{align:"center",variant:i?"h3":"h1"},"SignedOut successful."),n.a.createElement(h.Typography,{align:"center",variant:"subtitle2"},"Please click the button below to go back to the login page."),n.a.createElement("div",{className:e.imageContainer},n.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_authentication_fsn5.svg"})),n.a.createElement("div",{className:e.buttonContainer},n.a.createElement(h.Button,{color:"primary",linkTo:"/signin",variant:"outlined"},"Back to home")))},sn=i(30),ln=i.n(sn),cn=Object(B.makeStyles)((function(e){var t=e.spacing;return{firmAvatar:{width:t(10),height:t(10)}}})),dn=function(e){var t=e.open,i=e.onClose,r=e.title,a=e.description,o=Object(s.c)((function(e){var t;return null===(t=e.generalSettings.firm)||void 0===t?void 0:t.name})),l=cn();return n.a.createElement(ln.a,{size:"sm",open:t,onClose:i},n.a.createElement(sn.SideDrawerHeader,{titleBar:{icon:{source:"custom",value:n.a.createElement(h.Avatar,{classes:{root:l.firmAvatar}},Object(N.i)(o))},title:n.a.createElement(h.Typography,{variant:"h6",color:"default"},r)}}),n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"default"},n.a.createElement(h.TextEditorView,{model:L(a)}))))},un=i(26),hn=i.n(un),vn=i(133),pn=i(44),fn=i.n(pn),mn=i(39),yn=i(21),gn=(i(521),i(325)),bn=i(34),Sn=function(e,t,i,r,n){return function(a){return q.Y.getPortalComplianceMainPeriods(void 0,new p.Rc({userId:e,licenseId:t,periodFrom:i,periodTo:r,allPeriods:n})).then((function(e){return e})).catch((function(e){throw a(Object(bn.b)(e)),e}))}},En=function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;return function(n){return q.Y.getPortalComplianceSubPeriods(void 0,new p.Tc({userId:e,licenseId:t,isCurrentPeriod:i,parentLicenseId:r})).then((function(e){return e})).catch((function(e){throw n(Object(bn.b)(e)),e}))}},In=function(e,t){return function(i){var r=new p.kd({userIdList:e,licenseId:t});return q.Y.getUserCompliancePeriods(void 0,r).then((function(e){return e})).catch((function(e){throw i(Object(bn.b)(e)),e}))}},On=Object(s.b)((function(){return{}}),(function(e){return{getReportingPeriods:function(t,i){return e(In(t,i))}}}))((function(e){var t,i,a=e.formikRef,o=e.getReportingPeriods,s=e.isCurrentPeriod,l=Object(r.useState)(),d=Object(c.a)(l,2),u=d[0],v=d[1],p=a.getFieldProps("CACPEReportUserIdList").value,f=Object(r.useCallback)((function(e){var t=e&&e.length>0?e:p;t&&t.length>0&&(v(void 0),o(t&&t,ee).then((function(e){v(e.sort((function(e,t){return t.periodTo.getYear()-e.periodTo.getYear()})))})))}),[p,o]);Object(r.useEffect)((function(){s||f()}),[f,s]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"period"},!s&&(void 0===u?n.a.createElement(h.Skeleton,{width:500,height:30,variant:"rect"}):n.a.createElement(h.SelectField,{label:"Reporting Period: *",id:"CACPEReportYear",value:a.getFieldProps("CACPEReportYear").value,onChange:function(e){var t,i,r,n=e.target.value;a.setFieldValue("CACPEReportYear",null!==(t=u&&(null===(i=u.find((function(e){return(e.periodTo&&e.periodTo.getFullYear())===parseInt(n,10)})))||void 0===i||null===(r=i.periodTo)||void 0===r?void 0:r.getFullYear()))&&void 0!==t?t:"")},formikContext:!1,dense:!0,error:a.errors&&a.errors.CACPEReportYear,helperText:a.errors&&a.errors.CACPEReportYear&&n.a.createElement(h.Typography,{color:"error",variant:"caption"},a.errors.CACPEReportYear)},u.map((function(e){var t,i;return n.a.createElement(h.MenuItem,{value:null===(t=e.periodTo)||void 0===t?void 0:t.getFullYear().toString(),key:null===(i=e.periodTo)||void 0===i?void 0:i.getFullYear().toString()},Object(N.c)(e.periodFrom),"-",Object(N.c)(e.periodTo))})))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"CACPEReportVersion1"},n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Radio,{id:"CACPEReportVersion1",key:"CACPEReportVersion1",checked:null!==(t=a.getFieldProps("CACPEReportVersion1").value)&&void 0!==t?t:a.getFieldProps("CACPEReportVersion1").value,color:"primary",onChange:function(e){a.setFieldValue("CACPEReportVersion1",e.target.checked),a.setFieldValue("CACPEReportVersion2",!e.target.checked)}}),"Include only courses supporting hours claimed"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"CACPEReportVersion2"},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Radio,{id:"CACPEReportVersion2",key:"CACPEReportVersion2",checked:null!==(i=a.getFieldProps("CACPEReportVersion2").value)&&void 0!==i?i:a.getFieldProps("CACPEReportVersion2").value,color:"primary",onChange:function(e){a.setFieldValue("CACPEReportVersion1",!e.target.checked),a.setFieldValue("CACPEReportVersion2",e.target.checked)}}),"Include courses supporting all hours completed",n.a.createElement(h.Tooltip,{title:"This report displays all courses completed during the reporting period, and may include courses that are not eligible to be claimed in accordance with California's rules and regulations. Do not use this form for reporting purposes without a careful review of its content.",placement:"right",style:{maxWidth:10}},n.a.createElement("span",null,"\xa0",n.a.createElement(h.SystemIcon,{icon:"Help"}))))))})),Cn=Object(s.b)(null,(function(e){return{getReportingPeriods:function(t,i){return e(In(t,i))}}}))((function(e){var t=e.formikRef,i=e.getReportingPeriods,a=e.isEmptyReport,o=Object(r.useState)(),s=Object(c.a)(o,2),l=s[0],d=s[1],u=(new Date).getFullYear(),v=t.getFieldProps("NECPEReportUserIdList").value;return Object(r.useEffect)((function(){d(void 0),i(null!==v&&void 0!==v?v:[],fe).then((function(e){if(e.length>0){var t=e.map((function(e){var t;return null===(t=e.periodFrom)||void 0===t?void 0:t.getFullYear()})),i=e.map((function(e){var t;return null===(t=e.periodTo)||void 0===t?void 0:t.getFullYear()})),r=[].concat(Object(Oi.a)(t),Object(Oi.a)(i)).filter((function(e,t,i){return i.indexOf(e)===t})).sort((function(e,t){return t-e}));d(r)}else d([u])}))}),[i,d,v,u]),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"period"},void 0===l?n.a.createElement(h.Skeleton,{width:500,height:30,variant:"rect"}):n.a.createElement(h.SelectField,{id:"NECPEReportYear",label:"Date Range",formikContext:!0,fullWidth:!0,required:!0,dense:!0,value:t.getFieldProps("NECPEReportYear").value,onChange:function(e){return t.setFieldValue("NECPEReportYear",e.target.value)}},l.map((function(e){return n.a.createElement(h.MenuItem,{value:e,key:e.toString()},Object(N.c)("".concat(e,"-01-01T00:00:00")),"-",Object(N.c)("".concat(e,"-12-31T00:00:00")))})))),a&&n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"period"},n.a.createElement(h.Box,{m:3},n.a.createElement(h.Column,{crossAxisAlignment:"center",size:"max"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"The selected filters yield no results."))))))})),xn=i(1040),jn=i(102),wn=Object(s.b)((function(e){return{selectedUser:e.users.loggedUser,selectedFirmLicenses:e.licenses.selectedFirmLicenses}}),(function(e){return{generateJurisdictionReport:function(t,i,r){return e(Object(jn.c)(t,i,r))},generateNebraskaCPEReport:function(t,i){return e(Object(jn.d)(t,i))}}}))((function(e){var t,i,a=e.reportId,o=e.licenseId,s=e.formikRef,l=e.selectedUser,d=e.selectedFirmLicenses,u=e.isCurrentPeriod,v=e.generateJurisdictionReport,p=e.generateNebraskaCPEReport,f=e.latestCAPeriodYear,m=null!==(t=d&&(null===(i=d.find((function(e){return e.licenseId===o})))||void 0===i?void 0:i.jurisdictionReportGuid))&&void 0!==t?t:a,y=Object(r.useState)(!1),g=Object(c.a)(y,2),b=g[0],S=g[1],E=Object(r.useState)(),I=Object(c.a)(E,2),O=I[0],C=I[1],x=Object(r.useState)(!1),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(),A=Object(c.a)(T,2),N=A[0],k=A[1],D={initialValues:function(){var e={};switch(o){case ee:e={CACPEReportYear:"",CACPEReportVersion1:!1,CACPEReportVersion2:!0,CACPEReportUserIdList:[null===l||void 0===l?void 0:l.userId]};break;case fe:e={NECPEReportYear:0,NECPEReportUserIdList:[null===l||void 0===l?void 0:l.userId]}}return e}(),validationSchema:function(){var e={};switch(o){case ee:e={CACPEReportYear:u?Object(yn.string)().nullable():Object(yn.string)().required("Reporting Period is required.")};break;case fe:e={NECPEReportYear:Object(yn.number)().min(1970,"Date Range is required").required("Date Range is required")}}return Object(yn.object)().shape(e)}(),onSubmit:function(e,t){return function(e,t){var i=e.CACPEReportVersion1,r=e.CACPEReportYear,n=e.NECPEReportYear,a=e.NECPEReportUserIdList;t.setSubmitting(!0);var s={};switch(o){case ee:s={CACPEReportUserIdList:[null===l||void 0===l?void 0:l.userId],CACPEReportVersion:i?1:2,CACPEReportYear:u?f:r},v(m,JSON.stringify(s),null!==o&&void 0!==o?o:0).then((function(){t.setSubmitting(!1)}));break;case fe:s={NECPEReportYear:n,NECPEReportUserIdList:a},k(n),P(!0),S(!0),p(m,JSON.stringify(s)).then((function(e){C(e.userReports),t.setSubmitting(!1),P(!1)}))}}(e,t)}};return n.a.createElement(n.a.Fragment,null,n.a.createElement(mn.Formik,{initialValues:D.initialValues,validationSchema:D.validationSchema,onSubmit:D.onSubmit,innerRef:s,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{id:"reportFilters"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,style:{padding:"0px"}},n.a.createElement(h.Typography,{variant:"h6"},"Report Criteria")),n.a.createElement(h.Grid,{item:!0,xs:12,style:{padding:"0px"}},n.a.createElement(h.Box,{ml:0,mr:0},o===ee?n.a.createElement(On,{formikRef:e,isCurrentPeriod:u}):o===fe?n.a.createElement(Cn,{formikRef:e,isEmptyReport:void 0!==O&&!(O&&O.length>0)}):n.a.createElement(n.a.Fragment,null)))))})),o===fe&&b&&n.a.createElement(xn.a,{open:o===fe&&b,onClose:function(){return S(o===fe&&!1)},reportingYear:N,reportData:O||[],isLoading:w}))})),Pn=function(e){var t=e.open,i=e.onClose,a=e.licenseId,o=e.isCurrentPeriod,s=e.jurisdictionReportGuid,l=e.handleComplianceReportPrint,d=e.latestCAPeriodYear,u=Object(r.useState)(!1),v=Object(c.a)(u,2),p=v[0],f=v[1],m=Object(r.useState)(""),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useRef)(),E=function(e){b(e),f(!0),"Compliance"===e&&(l(),f(!1),i())},I=[ee,fe];return n.a.createElement(hn.a,{open:t,onClose:i,maxWidth:"xs",fullWidth:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:"Print Report",onClose:i}}),n.a.createElement(un.DialogBody,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},"Jurisdiction"!==g?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return E("Compliance")}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Compliance Report"})),n.a.createElement(h.Box,{m:1,flex:1},p&&"Compliance"===g&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),I.includes(a)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return E("Jurisdiction")}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"Reports",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Jurisdiction Report"})),n.a.createElement(h.Box,{m:1,flex:1},p&&"Jurisdiction"===g&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0})))))))):n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(wn,{licenseId:a,isCurrentPeriod:o,formikRef:S,reportId:s,latestCAPeriodYear:d})))),"Jurisdiction"===g&&n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{item:!0,xs:5}),n.a.createElement(h.Grid,{item:!0,xs:2,alignment:"center",stretchContent:!0},n.a.createElement(h.Button,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){S.current&&S.current.submitForm()}},"Print")),n.a.createElement(h.Grid,{item:!0,xs:5})))},Tn=function(e){switch(e.status){case 0:return n.a.createElement(h.Box,{bgcolor:"#E50019",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 1:return n.a.createElement(h.Box,{bgcolor:"#4CAF50",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 2:return n.a.createElement(h.Box,{bgcolor:"#1976D2",width:"100%",borderRadius:"4px 4px 0px0px",height:"6px"});case 3:return n.a.createElement(h.Box,{bgcolor:"#00417A",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 4:return n.a.createElement(h.Box,{bgcolor:"#FF8D11",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 5:return n.a.createElement(h.Box,{bgcolor:"#979797",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});default:return n.a.createElement(h.Box,null)}},An=i(224),Nn=i.n(An),kn=function(e){var t=e.format,i=e.size,r=e.type,a=e.color;switch(t){case"Classroom":return n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",size:i,type:r,color:a});case"On-demand":return n.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",size:i,type:r,color:a});case"Webcast":return n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",size:i,type:r,color:a});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",size:i,type:r,color:a})}},Dn=Object(s.b)((function(){return{}}),(function(){return{}})),Ln=function(e){var t=e.grouping,i=e.record,a=e.totalsToDisplay,o=i.compliancePeriodCourseCredits,s=i.compliancePeriodCourseProperties,l=i.courseCreditTotal,c=i.courseFormat,d=i.courseFormatPortalCategory,u=i.dateTaken,v=i.isInstructed,p=i.provider,f=i.sessionParticipantId,m=i.title,y=s&&s.filter((function(e){return e.value&&"true"===e.value.toLowerCase()&&5===e.typeId&&0===e.licensePropertyGroupId})).map((function(e){return e.propertyName})),g=Object(r.useRef)(a),b=Object(r.useMemo)((function(){return n.a.createElement(Nn.a,{dense:!0,disableGutters:!0,advanced:!0,hideRowsPerPage:!0,hideRowCountDisplay:!0,columns:g.current(t),data:null!==o&&void 0!==o?o:[],pageSize:(null!==o&&void 0!==o?o:[]).length})}),[t,o]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:1,key:"date_".concat(f),stretchContent:!0},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,Object(N.c)(u)))),n.a.createElement(h.Grid,{item:!0,xs:3,key:"title_".concat(f),stretchContent:!0},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,m))),n.a.createElement(h.Grid,{item:!0,xs:2,key:"provider_".concat(f),stretchContent:!0},n.a.createElement(h.Typography,{variant:"body1"},p)),n.a.createElement(h.Grid,{item:!0,xs:2,key:"format_".concat(f),stretchContent:!0},n.a.createElement(h.Row,null,n.a.createElement(h.Box,{mr:.5,flex:1},""!==c&&null!==c&&n.a.createElement(kn,{type:"duotone",size:"sm",format:null!==d&&void 0!==d?d:""})),n.a.createElement(h.Box,{alignContent:"center",alignItems:"center"},n.a.createElement(h.Typography,{variant:"body1"},c)))),n.a.createElement(h.Grid,{item:!0,xs:2,key:"qualifier_".concat(f),stretchContent:!0},n.a.createElement(h.Typography,{variant:"body1"},0!==(null===y||void 0===y?void 0:y.length)?null===y||void 0===y?void 0:y.join(", "):"-")),n.a.createElement(h.Grid,{item:!0,xs:1,key:"instr_".concat(f),stretchContent:!0},v&&n.a.createElement(h.Box,{display:"flex",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"warning",type:"duotone",size:"sm"}))),n.a.createElement(h.Grid,{item:!0,xs:1,key:"totals_".concat(f),stretchContent:!0},n.a.createElement(h.Box,{display:"flex",justifyContent:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"primary"},l&&l.total))),n.a.createElement(h.Grid,{item:!0,xs:12,key:"credits_".concat(f)},b))},Jn=Dn((function(e){var t=e.expand,i=e.hasCarryOver,r=e.hasGrace,a=e.onToggleAction,o=e.summaryData,s=e.title,l=[{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center"},n.a.createElement(h.Box,{ml:1,mr:1})),align:"center",accessor:"Total",width:84,wrapText:!0,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i=null!==(t=e.row.original.creditId)&&void 0!==t?t:0;return n.a.createElement(n.a.Fragment,null,-1===i&&n.a.createElement(h.Box,{width:"100%",minHeight:"20px",bgcolor:"#424242",display:"flex",alignItems:"center"},n.a.createElement(h.Box,{ml:1,mr:1})))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Type"))),accessor:"CreditName",width:200,wrapText:!0,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i=e.row.original,r=null!==(t=i.creditId)&&void 0!==t?t:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===r?"20px":"auto",bgcolor:-1===r?"#424242":"inherit",display:"flex",alignItems:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===r?"#FAFAFA":"inherit"}},n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(i.creditName)}}))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Carried-In"))),accessor:"CarriedOver",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.carriedOver)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:6},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"[Grace]"))),accessor:"CurrentGrace",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.currentGrace)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:4},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Earned"))),accessor:"Earned",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.earned)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:4},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Grace"))),accessor:"Grace",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.grace)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:4},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Retroactive",n.a.createElement("br",null),"Credit"))),accessor:"RetroactiveCredit",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.retroactiveCredit)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:7},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Retroactive",n.a.createElement("br",null),"Debit"))),accessor:"RetroactiveDebit",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.retroactiveDebit)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:7},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Applied"))),accessor:"Applied",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.applied)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:4},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Carried-Out"))),accessor:"CarryOver",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.carryOver)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:7},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"overline"},"Unused"))),accessor:"Unused",align:"center",width:50,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.unused)&&void 0!==i?i:0;return n.a.createElement(h.Box,{width:"100%",minHeight:-1===a?"20px":"auto",bgcolor:-1===a?"#424242":"inherit",textAlign:"right"},n.a.createElement(h.Box,{mr:5},n.a.createElement(h.Typography,{variant:"body1",style:{color:-1===a?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Box,{ml:1,mr:1})),accessor:"Extra",align:"right",width:350,wrapText:!0,disableSortBy:!0,showOnMobile:!0,Cell:function(e){var t,i=null!==(t=e.row.original.creditId)&&void 0!==t?t:0;return n.a.createElement(n.a.Fragment,null,-1===i&&n.a.createElement(h.Box,{width:"100%",minHeight:"20px",bgcolor:"#424242",display:"flex",alignItems:"center"},n.a.createElement(h.Box,{ml:1,mr:1})))}}],c=function(e){Array();return"Carried In"===e?l.filter((function(e){return"Total"===e.accessor||"Extra"===e.accessor||"CreditName"===e.accessor||"CarriedOver"===e.accessor||"CarryOver"===e.accessor||"Applied"===e.accessor||"Unused"===e.accessor})):"Retro-Actively Applied"===e?l.filter((function(e){return"Total"===e.accessor||"Extra"===e.accessor||"CreditName"===e.accessor||"RetroactiveCredit"===e.accessor||"Applied"===e.accessor||"Unused"===e.accessor||i&&"CarryOver"===e.accessor})):l.filter((function(e){return"Total"===e.accessor||"Extra"===e.accessor||"CreditName"===e.accessor||"Earned"===e.accessor||"RetroactiveDebit"===e.accessor||"Applied"===e.accessor||"Unused"===e.accessor||i&&"CarryOver"===e.accessor||r&&"Grace"===e.accessor||r&&"CurrentGrace"===e.accessor}))};return n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Card,{variant:"elevation"},n.a.createElement(h.ExpansionPanel,{onChange:function(){return a()},expanded:t,summaryVariant:"primary",summary:n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,s)),details:o&&o.length>0?n.a.createElement(h.Box,{style:{overflow:"hidden",overflowX:"auto"}},n.a.createElement(h.Grid,{container:!0,spacing:"form",style:{minWidth:900}},n.a.createElement(h.Grid,{item:!0,xs:1,stretchContent:!0},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"DATE"))),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"COURSE"))),n.a.createElement(h.Grid,{item:!0,xs:2,stretchContent:!0},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"PROVIDER"))),n.a.createElement(h.Grid,{item:!0,xs:2,stretchContent:!0},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"FORMAT"))),n.a.createElement(h.Grid,{item:!0,xs:2,stretchContent:!0},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"QUALIFIER"))),n.a.createElement(h.Grid,{item:!0,xs:1,stretchContent:!0},n.a.createElement(h.Box,{display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"INSTR.")))),n.a.createElement(h.Grid,{item:!0,xs:1,stretchContent:!0},n.a.createElement(h.Box,{display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.Typography,{variant:"overline"},n.a.createElement("b",null,"TOTALS")))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Divider,{variant:"fullWidth",orientation:"horizontal",style:{height:"3px"}})),o.map((function(e){return n.a.createElement(Ln,{grouping:s,totalsToDisplay:c,record:e,key:null===e||void 0===e?void 0:e.sessionParticipantId})})))):n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"body1",align:"center"},"NO RECORDS FOUND")))})))})),Fn=Object(s.b)((function(e){return{reportTokens:e.reports.reportTokens}}),(function(e){return{getCourseSummary:function(t,i,r,n){return e(function(e,t,i,r){return function(n){return q.Y.getUserLicenseComplianceCourseSummary(void 0,new p.jd({userId:e,licenseId:t,periodNumber:i,groupingName:r})).then((function(e){return e})).catch((function(e){throw n(Object(bn.b)(e)),e}))}}(t,i,r,n))},setReport:function(t){return e(Object(jn.h)(t))},getReportId:function(t){return e(Object(jn.e)(t))},getReportFilters:function(t){return e(Object(jn.f)(t))},exportReport:function(t,i,r){return e(Object(jn.b)(t,i,r))}}}))((function(e){var t,i=e.getCourseSummary,a=e.licenseId,o=e.licenseName,s=e.onClose,l=e.open,d=e.period,u=e.userId,v=e.userFullName,p=e.reportTokens,f=e.setReport,m=e.getReportId,y=e.getReportFilters,g=e.exportReport,b=Object(r.useState)(!1),S=Object(c.a)(b,2),E=S[0],I=S[1],O=Object(r.useState)({values:[{toggled:!1},{toggled:!1},{toggled:!1}]}),C=Object(c.a)(O,2),x=C[0],j=C[1],w=Object(r.useState)(!1),P=Object(c.a)(w,2),T=P[0],A=P[1],k=Object(r.useState)(),D=Object(c.a)(k,2),L=D[0],F=D[1],B=Object(r.useState)(),R=Object(c.a)(B,2),U=R[0],G=R[1],q=Object(r.useState)(),M=Object(c.a)(q,2),z=M[0],W=M[1],V=Object(r.useState)(),_=Object(c.a)(V,2),Y=_[0],$=_[1],H=Object(r.useState)(""),K=Object(c.a)(H,2),Q=K[0],Z=K[1],X=Object(r.useState)([]),ee=Object(c.a)(X,2),te=ee[0],ie=ee[1],re=Object(r.useState)(!1),ne=Object(c.a)(re,2),ae=ne[0],oe=ne[1],se=Object(r.useState)(!1),le=Object(c.a)(se,2),ce=le[0],de=le[1];Object(r.useEffect)((function(){I(!1),F(void 0),$(void 0),G(void 0),W(void 0),i(u,a,d.periodNumber,"all").then((function(e){F(e),$(e.compliancePeriodCourses),!0===e.hasCarryOver&&i(u,a,d.periodNumber,"CarriedIn").then((function(e){G(e.compliancePeriodCourses)})),!0===e.hasRetro&&i(u,a,d.periodNumber,"RetroApplied").then((function(e){W(e.compliancePeriodCourses)}))})).finally((function(){I(!0)}))}),[i,d.periodNumber,u,a]);var ue=function(e){var t=Object(Oi.a)(x.values);t[e].toggled?t[e].toggled=!1:t[e].toggled=!0,!0===t[0].toggled&&!0===t[1].toggled&&!0===t[2].toggled?A(!0):A(!1),j(Object(J.a)(Object(J.a)({},x),{},{values:t}))};Object(r.useEffect)((function(){return m("Application Summary").then((function(e){e&&(f({name:e.name}),Z(e.id),y(e.id).then((function(e){oe(!0),ie(e)})))})),function(){f(null)}}),[m,y,f,Z,oe,ie]);return n.a.createElement(hn.a,{fullWidth:!0,maxWidth:"xl",open:l,onClose:s},n.a.createElement(h.Backdrop,{open:!E},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(un.DialogHeader,{titleBar:{title:"Application Summary",headline:o,subtitle:n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h6"},"".concat(Object(N.c)(d.periodFrom)," - ").concat(Object(N.c)(null!==(t=d.periodToDisplay)&&void 0!==t?t:d.periodTo)))),d.periodLabel&&n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"h6"},"(",d.periodLabel,")"))),actionRow:n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Button,{color:"primary",variant:"text",size:"medium",onClick:function(){return function(){var e=Object(Oi.a)(x.values);!0===x.values[0].toggled&&!0===x.values[1].toggled&&!0===x.values[2].toggled?(e[0].toggled=!1,e[1].toggled=!1,e[2].toggled=!1,A(!1)):(e[0].toggled=!0,e[1].toggled=!0,e[2].toggled=!0,A(!0)),j(Object(J.a)(Object(J.a)({},x),{},{values:e}))}()}},T?"Collapse All":"Expand All"),n.a.createElement(h.Button,{color:"primary",variant:"text",size:"medium",onClick:function(){return function(){var e=Object(zr.v4)(),t=[];return te.forEach((function(e){var i,r,n="";switch(e.sourceFieldName){case"@filter_userlicensecomplianceid":n="".concat(d.userLicenseComplianceId);break;case"@filter_license":n=o;break;case"@filter_employee":n=v;break;case"@filter_show_retro":n=(null===L||void 0===L?void 0:L.hasRetro)?"TRUE":"FALSE";break;case"@filter_show_currentperiod":n=Y?"TRUE":"FALSE";break;case"@filter_has_carryover":n=(null===L||void 0===L?void 0:L.hasCarryOver)?"TRUE":"FALSE";break;case"@filter_has_grace":n=(null===L||void 0===L?void 0:L.hasGrace)?"TRUE":"FALSE";break;case"@filter_show_carriedin":n=(null===L||void 0===L?void 0:L.hasCarryOver)?"TRUE":"FALSE"}t.push({key:e.id,value:n,sourceFieldName:null!==(i=e.sourceFieldName)&&void 0!==i?i:"",name:null!==(r=e.alias)&&void 0!==r?r:""})})),de(!0),g({reportId:Q,filters:t,token:null===p||void 0===p?void 0:p.token,tenantId:null===p||void 0===p?void 0:p.tenantId,fileSessionKey:e},"pdf","".concat(v," ").concat(o," Application Summary")).then((function(){de(!1)}))}()},disabled:!ae,loading:ce}," ",n.a.createElement(h.Row,null,n.a.createElement(h.SystemIcon,{icon:"PdfExport",size:"sm"}),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body1"},"Download")))),n.a.createElement(h.IconButton,{type:"reset",onClick:s,color:"default",id:"closeButton"},n.a.createElement(h.SystemIcon,{icon:"Close",size:"sm"})))},colorMode:"light"}),n.a.createElement(un.DialogBody,{maxWidth:"xl",bgColor:"white"},(null===L||void 0===L?void 0:L.hasCarryOver)&&n.a.createElement(Jn,{onToggleAction:function(){return ue(0)},expand:x.values[0].toggled,hasCarryOver:null===L||void 0===L?void 0:L.hasCarryOver,hasGrace:null===L||void 0===L?void 0:L.hasGrace,summaryData:U,title:"Carried In"}),(null===L||void 0===L?void 0:L.hasRetro)&&n.a.createElement(Jn,{onToggleAction:function(){return ue(1)},expand:x.values[1].toggled,hasCarryOver:null===L||void 0===L?void 0:L.hasCarryOver,hasGrace:null===L||void 0===L?void 0:L.hasGrace,summaryData:z,title:"Retro-Actively Applied"}),Y&&n.a.createElement(Jn,{onToggleAction:function(){return ue(2)},expand:x.values[2].toggled,hasCarryOver:null===L||void 0===L?void 0:L.hasCarryOver,hasGrace:null===L||void 0===L?void 0:L.hasGrace,summaryData:Y,title:"Current Period Courses"})))})),Bn=Object(s.b)((function(){return{}}),(function(){return{}}))((function(e){var t,i,a,o,l,d,u,v,f,m=e.isCarryOverAllowed,y=e.period,g=e.licenseId,b=e.licenseName,S=e.userId,E=e.showApplicationSummary,I=void 0===E||E,O=e.printPreview,C=e.userFullName,j=Object(r.useState)(!1),w=Object(c.a)(j,2),P=w[0],T=w[1],A="true"===(null===(t=Object(s.c)((function(e){var t,i;return null===(t=e.generalSettings.firm)||void 0===t||null===(i=t.firmSettings)||void 0===i?void 0:i.filter((function(e){return"EnableAdditionalRequirementsComplianceChartHeaderNote"===e.key}))[0].value})))||void 0===t?void 0:t.toLowerCase()),k=function(e){var t=Array();e&&e.filter((function(e){return-1===e.creditId})).forEach((function(e){e.sequenceNumber=100}));var i=e.filter((function(e){return e.creditId&&e.creditId<-1&&e.level&&1===e.level})).sort((function(e,t){return t.creditId-e.creditId}));i.length>0?(i.forEach((function(i){var r=e.filter((function(e){return e.parentCreditId===i.creditId&&e.level&&e.level>1})).sort((function(e,t){return e.sequenceNumber-t.sequenceNumber}));t.push(i),r.forEach((function(e){t.push(e)}))})),t=t.sort((function(e,t){return e.sequenceNumber-t.sequenceNumber})),e.filter((function(e){return 0===e.parentCreditId&&e.creditId&&e.creditId>0})).forEach((function(e){t.push(e)}))):e.filter((function(e){return e.creditId&&e.creditId>0})).sort((function(e,t){return e.sequenceNumber-t.sequenceNumber})).forEach((function(e){t.push(e)}));var r=e.filter((function(e){return-1===e.creditId}))[0];return t.push(r),t.sort((function(e,t){return(e.sequenceNumber||0)-(t.sequenceNumber||0)}))},D=[{Header:"Credit Type",accessor:"CreditName",width:O&&O?0:g===oe||g===ae||g===re?400:375,wrapText:!0,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.creditId)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(n.a.Fragment,null,(s>0||s<-1)&&n.a.createElement(n.a.Fragment,null,0===l&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular"},n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(o.creditName)}})),l<0&&n.a.createElement(h.Box,{ml:5},n.a.createElement(h.Typography,{variant:J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1",weight:"regular"},n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(o.creditName)}})))),-1===s&&n.a.createElement(h.Box,{mr:2},n.a.createElement(h.Typography,{variant:"overline",align:"right"},"Total Credits")))},disableSortBy:!0},{Header:"Required",accessor:"Required",align:"center",width:O&&O?0:g===oe||g===ae||g===re?300:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.required)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,l>=0&&-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),l>=0&&-1!==o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:n.a.createElement(h.Typography,{variant:"overline",style:{whiteSpace:"pre-wrap",textAlign:"center"}},"Carried- In"),accessor:"CarriedOver",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.carriedOver)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:"Overlap",accessor:"Overlap",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.overlap)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:"[Grace]",accessor:"CurrentGrace",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.currentGrace)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:"Earned",accessor:"Earned",align:"center",width:O&&O?0:g===oe||g===ae||g===re?300:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.earned)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",color:s>0?"success":"default",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center",color:s>0?"success":"default"},s.toFixed(2)))},disableSortBy:!0},{Header:"Grace",accessor:"Grace",align:"center",width:O&&O?0:100,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.grace)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:n.a.createElement(h.Typography,{variant:"overline",style:{whiteSpace:"pre-wrap",textAlign:"center"}},"Retroactive Credit"),accessor:"RetroactiveCredit",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.retroactiveCredit)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",color:s<0?"error":"default",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",color:s<0?"error":"default",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:n.a.createElement(h.Typography,{variant:"overline",style:{whiteSpace:"pre-wrap",textAlign:"center"}},"Retroactive Debit"),accessor:"RetroactiveDebit",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.retroactiveDebit)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:"Applied",accessor:"Applied",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.applied)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:"Extra",accessor:"Extra",align:"center",width:O&&O?0:75,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.extra)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:n.a.createElement(h.Typography,{variant:"overline",style:{whiteSpace:"pre-wrap",textAlign:"center"}},"Carried- Out"),accessor:"CarryOver",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.carryOver)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:"Unused",accessor:"Unused",align:"center",width:O&&O?0:75,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.unused)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},n.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&n.a.createElement(h.Typography,{variant:l>=0?J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:n.a.createElement(h.Typography,{variant:"overline",style:{whiteSpace:"pre-wrap",textAlign:"center"}},"Credits Needed"),accessor:"CreditsNeeded",align:"center",width:O&&O?0:g===oe||g===ae||g===re?300:75,wrapText:!0,showOnMobile:!0,Cell:function(e){var t,i,r,a,o=e.row.original,s=null!==(t=o.creditsNeeded)&&void 0!==t?t:0,l=null!==(i=o.parentCreditId)&&void 0!==i?i:0;return n.a.createElement(h.Box,null,l>=0&&-1===o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",color:s>0?"error":"default",align:"center"},n.a.createElement("b",null,s.toFixed(2))),l>=0&&-1!==o.creditId&&n.a.createElement(h.Typography,{variant:J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>8?"subtitle2":"subtitle1",weight:"regular",color:s>0?"error":"default",align:"center"},s.toFixed(2)))},disableSortBy:!0}],J=function(e){var t,i,r,n,a,o,s=Array();return s=m?D:D.filter((function(e){return"CarriedOver"!==e.accessor&&"CarryOver"!==e.accessor})),0===(null!==(t=e.map((function(e){return e.retroactiveCredit})).find((function(e){return e&&e>0})))&&void 0!==t?t:0)&&(s=s.filter((function(e){return"RetroactiveCredit"!==e.accessor}))),0===(null!==(i=e.map((function(e){return e.retroactiveDebit})).find((function(e){return e&&e<0})))&&void 0!==i?i:0)&&(s=s.filter((function(e){return"RetroactiveDebit"!==e.accessor}))),0===(null!==(r=e.map((function(e){return e.grace})).find((function(e){return e&&e>0})))&&void 0!==r?r:0)&&(s=s.filter((function(e){return"Grace"!==e.accessor}))),0===(null!==(n=e.map((function(e){return e.currentGrace})).find((function(e){return e&&e>0})))&&void 0!==n?n:0)&&(s=s.filter((function(e){return"CurrentGrace"!==e.accessor}))),0===(null!==(a=e.map((function(e){return e.overlap})).find((function(e){return e&&e>0})))&&void 0!==a?a:0)&&(s=s.filter((function(e){return"Overlap"!==e.accessor}))),0===(null!==(o=e.map((function(e){return e.extra})).find((function(e){return e&&0!==e})))&&void 0!==o?o:0)&&(s=s.filter((function(e){return"Extra"!==e.accessor}))),g!==oe&&g!==ae&&g!==re||(s=s.filter((function(e){return"Applied"!==e.accessor&&"Unused"!==e.accessor}))),s},F=[{Header:"Requirements",accessor:"Description",showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(t.description)}}))},disableSortBy:!0},{Header:"Carried Over",accessor:"CarriedOver",align:"center",width:O&&O?0:250,showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.carriedOver)},disableSortBy:!0},{Header:"[Grace]",accessor:"PreviousGrace",align:"center",width:O?0:250,Cell:function(e){var t,i=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null!==(t=i.previousGrace)&&void 0!==t?t:"")},disableSortBy:!0},{Header:"Earned",accessor:"Earned",align:"center",width:O&&O?0:250,showOnMobile:!0,Cell:function(e){var t,i=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null!==(t=i.earned)&&void 0!==t?t:"")},disableSortBy:!0},{Header:"Retroactive Debit",accessor:"RetroactiveDebit",align:"center",width:O?0:250,Cell:function(e){var t,i=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null!==(t=i.retroactiveDebit)&&void 0!==t?t:"")},disableSortBy:!0},{Header:"Retroactive Credit",accessor:"RetroactiveCredit",align:"center",width:O?0:250,Cell:function(e){var t,i=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null!==(t=i.retroactiveCredit)&&void 0!==t?t:"")},disableSortBy:!0},{Header:"Grace",accessor:"Grace",align:"center",width:O?0:250,Cell:function(e){var t,i=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null!==(t=i.grace)&&void 0!==t?t:"")},disableSortBy:!0},{Header:"Status",accessor:"StatusDescription",width:O&&O?0:300,align:"center",showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.statusId)&&void 0!==t?t:0,o=a===p.B.NotInCompliance||a===p.B.NonMandatory||a===p.B.NotTracked||a===p.B.Inactive?"error":a===p.B.Extension||a===p.B.Pending?"warning":a===p.B.InProgress?"info":"success";return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Chip,{variant:"box",label:null!==(i=r.statusDescription)&&void 0!==i?i:"",color:o,size:"small",colorMode:"light",width:"md"}))},disableSortBy:!0},{Header:"",accessor:"StatusId",width:O&&O?0:1250,showOnMobile:!0,Cell:function(){return n.a.createElement(n.a.Fragment,null)},disableSortBy:!0}],B=[{Header:"Completed",accessor:"DateTaken",showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},Object(N.c)(t.dateTaken))},disableSortBy:!0},{Header:"Course Title / Provider ",accessor:"Earned",wrapText:!0,showOnMobile:!0,Cell:function(e){var t,i=e.row.original,r=i.userRetroCreditValues&&(null===(t=i.userRetroCreditValues)||void 0===t?void 0:t.length)>0,a=i.title!==i.sessionTitle;return n.a.createElement(h.Row,null,r&&n.a.createElement(h.Box,{mr:1},n.a.createElement(h.Typography,{variant:"body1",color:"secondary"},"*"," ")),n.a.createElement(h.Column,null,n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,"".concat(i.title).concat(a?" : ":"")))),a&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,i.sessionTitle))),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"body1"},i.provider)),i.isWithinGracePeriod&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},"This course was taken during the Grace Period of this period. Credits from this course are counted in either the Grace column of this period or the [Grace] column of the next period.")),i.isWithinPrevGracePeriod&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},"This course was taken during the Grace Period of the previous period. Credits from this course are counted in either the Grace column of the previous period or the [Grace] column of this period."))))},disableSortBy:!0},{Header:"Location",accessor:"Location",wrapText:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},t.location)},disableSortBy:!0},{Header:"Format",accessor:"CourseFormat",wrapText:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},t.courseFormat)},disableSortBy:!0},{Header:"Acquired As",accessor:"IsInstructed",wrapText:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},t.isInstructed?"Instructor":"Participant")},disableSortBy:!0},{Header:"Credit",accessor:"UserLicenseCreditValues",wrapText:!0,Cell:function(e){var t,i,r,a,o,s=e.row.original,l=Array();null===(t=s.userLicenseCreditValues)||void 0===t||t.map((function(e){if(void 0!==e.value&&e.value>0&&(!0===e.isFieldsOfStudyApproved||null===e.isFieldsOfStudyApproved)){var t="".concat(e.value," ").concat(e.creditName," ");l.push(t)}})),o=l.join("; ");var c,d=Array();null===(i=s.userLicensePropertyValues)||void 0===i||i.map((function(e){var t,i=null===e||void 0===e?void 0:e.propertyLabel;e.licenseId===X&&2!==e.propertyId&&(i=null===(t=e.propertyLabel)||void 0===t?void 0:t.split("Accounting -")[1]);var r=!1!==e.valueBit&&void 0!==e.valueBit||"false"!==e.valueChar&&void 0!==e.valueBit?"".concat(i,""):"";""!==r&&d.push(r)})),c=d.join("; ");var u=s.sessionLicenses&&s.sessionLicenses[0].expirationDate&&null!==s.sessionLicenses[0].expirationDate&&s.dateTaken&&s.sessionLicenses[0].expirationDate0})))||void 0===a?void 0:a.map((function(e,t){return n.a.createElement(n.a.Fragment,null,t?"; ":"",n.a.createElement("b",null,e.value)," ",e.creditName,"\xa0",n.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},n.a.createElement("i",null,"(Mapping Unapproved)"))," ")}))),n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(c)}})),!Object(x.isEmpty)(f)&&n.a.createElement(h.Typography,{variant:"body2",component:"span"},f)),n.a.createElement(h.Column,null,s.sessionLicenses&&s.sessionLicenses[0].licenseStatus===p.Dd.Denied&&n.a.createElement(h.Typography,{variant:"body2",color:"secondary",component:"span"},n.a.createElement("i",null,"(Denied)"))),n.a.createElement(h.Column,null,s.sessionLicenses&&s.sessionLicenses[0].licenseStatus===p.Dd.Pending&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},n.a.createElement("i",null,"(Pending)"))))},disableSortBy:!0}],R=[{Header:"Description",accessor:"Description",showOnMobile:!0,width:70,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(t.description)}}))},disableSortBy:!0},{Header:"Earned",accessor:"Earned",align:"center",width:O&&O?0:250,showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.earned)},disableSortBy:!0},{Header:"",accessor:"StatusId",width:O&&O?0:1250,Cell:function(){return n.a.createElement(n.a.Fragment,null)},disableSortBy:!0}],U=[{Header:"Field of Study",accessor:"SubjectAreaName",showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.subjectAreaName)},disableSortBy:!0},{Header:"Earned",accessor:"Earned",showOnMobile:!0,align:"center",width:O&&O?0:250,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.earned)},disableSortBy:!0},{Header:"Applied To",accessor:"CreditName",showOnMobile:!0,width:O&&O?0:1250,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.creditName)},disableSortBy:!0}];return n.a.createElement(n.a.Fragment,null,n.a.createElement(Tn,{status:y.complianceStatusId}),n.a.createElement(h.List,{subheader:n.a.createElement(n.a.Fragment,null,n.a.createElement(h.ListSubheader,{disableSticky:!0,colorMode:y.isSubLicensePeriod?"dark":"main"},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&A?6:9},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"h6"},"".concat(Object(N.c)(y.periodFrom)," - ").concat(Object(N.c)(null!==(i=y.periodToDisplay)&&void 0!==i?i:y.periodTo))),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},y.periodLabel)))),y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&A&&n.a.createElement(h.Grid,{item:!0,xs:4,justifyContent:"flex-end",alignment:"center-right",alignItems:"stretch"},n.a.createElement(h.Column,{mainAxisAlignment:"middle"},n.a.createElement(h.Box,null,n.a.createElement(h.Alert,{variant:"standard",type:"warning"},"Please check additional requirements below")))),n.a.createElement(h.Grid,{item:!0,xs:y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&A?2:3,alignment:"center-right"},n.a.createElement(h.Row,{mainAxisAlignment:"end"},I&&n.a.createElement(h.Box,{mr:3,mt:3},n.a.createElement(h.Link,{underline:"none",onClick:function(){return T(!0)}},n.a.createElement(h.Typography,null,"Application Summary"))),n.a.createElement(h.Box,{mt:1},y.complianceStatusId===p.B.InProgress?n.a.createElement(h.Tooltip,{title:"In Progress",key:"In Progress"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Repeat",size:"lg",color:"primary"}))):y.complianceStatusId===p.B.InCompliance?n.a.createElement(h.Tooltip,{title:"In Compliance",key:"In Compliance"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Success",size:"lg",color:"success"}))):y.complianceStatusId===p.B.Extension?n.a.createElement(h.Tooltip,{title:"Grace Period",key:"Grace Period"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Repeat",size:"lg",color:"secondary"}))):y.complianceStatusId===p.B.Pending?n.a.createElement(h.Tooltip,{title:"Pending",key:"Pending"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Clock",size:"lg",color:"warning"}))):y.complianceStatusId===p.B.NotInCompliance?n.a.createElement(h.Tooltip,{title:"Not in Compliance",key:"Not in Compliance"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Error",size:"lg",color:"error"}))):""))))),n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.Grid,{item:!0,xs:12,lg:12,alignment:"center-right"},y.isPriorPeriodDeficient&&n.a.createElement(h.Box,{mr:5,mt:2,mb:1},n.a.createElement(h.Typography,{variant:"overline",color:"error"},n.a.createElement(h.SystemIcon,{icon:"Error"}),n.a.createElement("b",null," Prior Period Deficiency")))))))},n.a.createElement("div",{id:"creditTotals",style:{zoom:J(null!==(a=y.compliancePeriodTotals)&&void 0!==a?a:[]).length>6&&O?"60%":"100%"}},n.a.createElement(h.DataGrid,{advanced:!0,hideRowsPerPage:!0,hideRowCountDisplay:!0,columns:J(null!==(o=y.compliancePeriodTotals)&&void 0!==o?o:[]),data:k(null!==(l=y.compliancePeriodTotals)&&void 0!==l?l:[]),pageSize:k(null!==(d=y.compliancePeriodTotals)&&void 0!==d?d:[]).length})),y.compliancePeriodChartNotes&&y.compliancePeriodChartNotes.sort((function(e,t){return(e.sequenceNumber||0)-(t.sequenceNumber||0)})).map((function(e){var t;return n.a.createElement(h.Box,{mt:2,key:e.note},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"}," ",n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(L(Object(Zt.c)(null!==(t=e.note)&&void 0!==t?t:"")))}}))))})),y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&n.a.createElement(h.Box,{mt:3},n.a.createElement(h.Card,{variant:"elevation"},n.a.createElement(h.ExpansionPanel,{defaultExpanded:!0,summaryVariant:"default",summary:n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"ADDITIONAL REQUIREMENTS"),details:n.a.createElement(h.DataGrid,{advanced:!0,hideRowCountDisplay:!0,hideRowsPerPage:!0,columns:function(e){var t=Array();return t=e.find((function(e){return(null===e||void 0===e?void 0:e.carriedOver)&&e.carriedOver>0}))?F:F.filter((function(e){return"CarriedOver"!==e.accessor})),void 0!==e.find((function(e){return null===e.grace||0===e.grace}))&&(t=t.filter((function(e){return"Grace"!==e.accessor}))),void 0!==e.find((function(e){return null===e.previousGrace||0===e.previousGrace}))&&(t=t.filter((function(e){return"PreviousGrace"!==e.accessor}))),void 0!==e.find((function(e){return null===e.retroactiveCredit||0===e.retroactiveCredit}))&&(t=t.filter((function(e){return"RetroactiveCredit"!==e.accessor}))),void 0!==e.find((function(e){return null===e.retroactiveDebit||0===e.retroactiveDebit}))&&(t=t.filter((function(e){return"RetroactiveDebit"!==e.accessor}))),void 0!==e.find((function(e){return null===e.earned}))&&void 0===e.find((function(e){return e.earned&&e.earned>=0}))&&(t=t.filter((function(e){return"Earned"!==e.accessor}))),t}(null!==(u=y.compliancePeriodAdditionalRequirements)&&void 0!==u?u:[]),data:y.compliancePeriodAdditionalRequirements.sort((function(e,t){return e.sequenceNumber-t.sequenceNumber}))})}))),y.compliancePeriodRestrictions&&y.compliancePeriodRestrictions.length>0&&n.a.createElement(h.Box,{mt:3},n.a.createElement(h.Card,{variant:"elevation"},n.a.createElement(h.ExpansionPanel,{defaultExpanded:!0,summaryVariant:"default",summary:n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"RESTRICTIONS"),details:n.a.createElement(h.DataGrid,{advanced:!0,hideRowCountDisplay:!0,hideRowsPerPage:!0,columns:R,data:y.compliancePeriodRestrictions.sort((function(e,t){return e.sequenceNumber-t.sequenceNumber}))})}))),y.compliancePeriodSubjectAreas&&y.compliancePeriodSubjectAreas.length>0&&n.a.createElement(h.Box,{mt:3},n.a.createElement(h.Card,{variant:"elevation"},n.a.createElement(h.ExpansionPanel,{defaultExpanded:!0,summaryVariant:"default",summary:n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"FIELDS OF STUDY"),details:n.a.createElement(h.Column,null,n.a.createElement(h.DataGrid,{advanced:!0,hideRowCountDisplay:!0,hideRowsPerPage:!0,columns:U,data:y.compliancePeriodSubjectAreas,pageSize:y.compliancePeriodSubjectAreas.length}),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Typography,{variant:"body1"},"The above chart displays Accounting Fields of Study credits in relation to jurisdictional credit types.")))}))),n.a.createElement(h.Box,{mt:3,mb:1},n.a.createElement(h.Card,{background:"grey",variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Typography,{variant:"overline"},"Course History"))),n.a.createElement(h.Card,{background:"default",variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement("div",{id:"additionalRqrmts",style:{zoom:"70%"}},n.a.createElement(h.DataGrid,{advanced:!0,hideRowCountDisplay:!0,hideRowsPerPage:!0,columns:B,pageSize:O?(null!==(v=y.compliancePeriodCourseHistory)&&void 0!==v?v:[]).length:10,data:y.compliancePeriodCourseHistory})),(null===(f=y.compliancePeriodCourseHistory)||void 0===f?void 0:f.find((function(e){var t;return e.userRetroCreditValues&&(null===(t=e.userRetroCreditValues)||void 0===t?void 0:t.length)>0})))&&n.a.createElement(h.Typography,{color:"secondary"},"* Credits from this course were deducted from this period and applied to a prior period in order to meet its compliancy"," "))))),P&&n.a.createElement(Fn,{open:P,onClose:function(){return T(!1)},licenseId:g,userId:S,userFullName:C,period:y,licenseName:b}))})),Rn=function(e){var t,i=document.getElementById("printButton"),r=document.getElementById("closeButton");i&&(i.style.display="none"),r&&(r.style.display="none");var n=null===(t=document.getElementById("".concat(e)))||void 0===t?void 0:t.innerHTML,a=document.getElementById("ifmcontentstoprint").contentWindow;a&&(a.document.open(),a.document.write(null!==n&&void 0!==n?n:""),a.document.close(),a.focus(),a.print()),i&&(i.style.display="block"),r&&(r.style.display="block")},Un=Object(s.b)((function(){return{}}),(function(e){return{getSelectedRegulatorSummary:function(t){return e(function(e){return function(t){return q.F.get(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(bn.b)(e)),e}))}}(t))}}}))((function(e){var t=e.onClose,i=e.open,a=e.licenseId,o=e.licenseName,s=e.getSelectedRegulatorSummary,l=Object(r.useState)(),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)(!1),f=Object(c.a)(p,2),m=f[0],y=f[1];Object(r.useEffect)((function(){y(!0),s(a).then((function(e){v(e.summary),y(!1)}))}),[s,a]);var g="".concat(o," Rules and Regulations");return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Dialog,{maxWidth:"lg",open:i&&!m,onClose:t,id:"shortSummary"},u&&n.a.createElement(n.a.Fragment,null,n.a.createElement(un.DialogHeader,{titleBar:{title:g,actionRow:n.a.createElement(n.a.Fragment,null,n.a.createElement(h.IconButton,{type:"submit",onClick:function(){return Rn("shortSummary")},color:"primary",id:"printButton"},n.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"})),n.a.createElement(h.IconButton,{type:"submit",onClick:t,color:"primary",id:"closeButton"},n.a.createElement(h.SystemIcon,{icon:"Close",size:"sm"})))}}),n.a.createElement(un.DialogBody,null,n.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(u)}})),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement(h.Box,{mb:1},"This compliance rule summary and all compliance reports in CE Manager were prepared by Micron Systems Inc. to provide the most accurate summary of rules that affect credit calculations and compliancy status, Micron works in conjunction with its own professionals, administrators from Micron clients, and the applicable governing compliance organization. This summary and all compliance reports in CE Manager are based on the official published rules; however, they are not endorsed or approved by the governing organization and should not be used as a substitute for the official rules and regulations."),n.a.createElement(h.Box,{mb:1},"For custom licenses, this summary and all compliance reports in CE Manager are based on the requirements given to us by your firm."),"Micron Systems Inc. disclaims any and all warranties, representations, conditions or guarantees of any kind whatsoever, including, without limitation, any implied warranties of merchantability or fitness for a particular purpose, and Micron Systems Inc. may not be held liable for any damages that result from any reliance upon this rule summary and any of the compliance reports in CE Manager."))))),m&&n.a.createElement(un.DialogBody,null," ",n.a.createElement(h.CircularProgress,null)," ")),n.a.createElement("iframe",{id:"ifmcontentstoprint",style:{height:0,width:0,position:"absolute"},title:g}))})),Gn=Object(V.makeStyles)((function(e){return{large:{width:e.spacing(8),height:e.spacing(8)}}})),qn=Object(s.b)((function(){return{}}),(function(e){return{getComplianceReport:function(t,i,r){return e(function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){return q.Y.getPortalComplianceReport(void 0,new p.Sc({userId:e,licenseId:t,isCurrentPeriod:i})).then((function(e){return e})).catch((function(e){throw r(Object(bn.b)(e)),e}))}}(t,i,r))},getComplianceReportByGuid:function(t,i){return e(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(i){return q.Y.getPortalComplianceReportByGuid(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(bn.b)(e)),e}))}}(t,i))},getMainPeriods:function(t,i,r,n,a){return e(Sn(t,i,r,n,a))},getSubLicensePeriods:function(t,i,r,n){return e(En(t,i,n,r))},getCurrentLicenseInfo:function(t){return e(function(e){return function(t){return q.ab.getAllUserLicensesCurrentPeriod(void 0,p.wc.fromJS(e)).then((function(e){return e.userLicenseCompliancePeriods})).catch((function(e){t(Object(bn.b)(e))}))}}(t))},setSelectedComplianceReportToPrint:function(t){return e((i=t,{type:gn.a,payload:i}));var i}}}))(Object(d.o)((function(e){var t,i,a,o,s,l,d,u,v,f,m,y,g,b,S,E,I,O,C,x=e.getComplianceReport,j=e.getMainPeriods,w=e.licenseId,P=e.userId,T=e.guid,A=e.getComplianceReportByGuid,k=e.history,D=e.getCurrentLicenseInfo,L=e.userLicenses,J=e.setSelectedComplianceReportToPrint,F=Gn(),B=Object(r.useState)(!1),R=Object(c.a)(B,2),U=R[0],G=R[1],q=Object(r.useState)(),M=Object(c.a)(q,2),z=M[0],W=M[1],V=Object(r.useState)(),_=Object(c.a)(V,2),Y=_[0],$=_[1],H=Object(r.useState)(),K=Object(c.a)(H,2),Q=K[0],X=K[1],re=Object(r.useState)(1),ae=Object(c.a)(re,2),oe=ae[0],le=ae[1],ce=Object(r.useState)(0),de=Object(c.a)(ce,2),he=de[0],ve=de[1],me=Object(r.useState)(!1),ye=Object(c.a)(me,2),ge=ye[0],be=ye[1],Se=Object(r.useState)(1),Ee=Object(c.a)(Se,2),Oe=Ee[0],Ce=Ee[1],xe=Object(r.useState)(!1),je=Object(c.a)(xe,2),we=je[0],Pe=je[1],Te=Object(r.useState)(),Ae=Object(c.a)(Te,2),Ne=Ae[0],ke=Ae[1],De=Object(r.useState)(!1),Le=Object(c.a)(De,2),Je=Le[0],Fe=Le[1],Be=null!==(t=L&&(null===(i=L.find((function(e){return e.licenseId===w})))||void 0===i?void 0:i.jurisdictionReportGuid))&&void 0!==t?t:"",Re=[p.B.NotTracked,p.B.Inactive,p.B.Pending,p.B.NonMandatory],Ue=Array(),Ge=0,qe=Object(r.useState)(0),Me=Object(c.a)(qe,2),ze=Me[0],We=Me[1],Ve=Object(r.useCallback)((function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];A(e,t).then((function(e){var t,i,r,n,a;W(e.portalUserLicenseCompliance),be(null!==(t=null===(i=e.portalUserLicenseCompliance)||void 0===i?void 0:i.isSubLicenseRolling)&&void 0!==t&&t),ve(null!==(r=null===(n=e.portalUserLicenseCompliance)||void 0===n?void 0:n.subLicenseId)&&void 0!==r?r:0),e.subLicensePeriods&&(null===(a=e.subLicensePeriods)||void 0===a?void 0:a.length)>0&&$(e.subLicensePeriods),X(e.mainLicensePeriods),Pe(!0)})).catch((function(){k.push("/error404")}))}),[A,k]),_e=Object(r.useCallback)((function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];x(e,t,i).then((function(e){var t,i,r,n,a,o,s,l;(W(e.portalUserLicenseCompliance),be(null!==(t=null===(i=e.portalUserLicenseCompliance)||void 0===i?void 0:i.isSubLicenseRolling)&&void 0!==t&&t),ve(null!==(r=null===(n=e.portalUserLicenseCompliance)||void 0===n?void 0:n.subLicenseId)&&void 0!==r?r:0),e.subLicensePeriods&&(null===(a=e.subLicensePeriods)||void 0===a?void 0:a.length)>0&&$(e.subLicensePeriods),void 0!==e.portalUserLicenseCompliance&&void 0!==e.portalUserLicenseCompliance.compliancePeriods&&(null===(o=e.portalUserLicenseCompliance.compliancePeriods)||void 0===o?void 0:o.length)>0)&&We(null!==(s=null===(l=e.portalUserLicenseCompliance.compliancePeriods[0].periodTo)||void 0===l?void 0:l.getFullYear())&&void 0!==s?s:0);X(e.mainLicensePeriods),Pe(!0)})).catch((function(){k.push("/error404")}))}),[x,k]);Object(r.useEffect)((function(){Pe(!1),le(1),T?Ve(T,!0):_e(P,w,!0);var e=new p.wc({userId:P});D(e).then((function(e){ke(e)}))}),[Ve,_e,T,P,w,D]);var Ye=function(e){switch(e.fieldType){case 1:return""===e.valueChar||null===e.valueChar?"-":e.valueChar;case 2:return w===ie?fn()("".concat(e.valueInt),"MM").format("MMMM"):w===se||w===pe?null===z||void 0===z||null===(t=z.userLicenseProfile)||void 0===t||null===(i=t.find((function(e){return 5===e.profileId})))||void 0===i?void 0:i.valueInt:w===ne?null===z||void 0===z||null===(r=z.userLicenseProfile)||void 0===r||null===(n=r.find((function(e){return 6===e.profileId})))||void 0===n?void 0:n.valueInt:e.valueInt;var t,i,r,n;case 3:return void 0===e.valueDate?"-":"Birth Date"===e.fieldName?Object(Zt.g)(e.valueDate):Object(N.c)(e.valueDate,"MM/DD/YYYY");case 4:return e.valueDecimal;case 6:return""===e.valueChar||null===e.valueChar?"-":e.valueChar;default:return""}};(null===z||void 0===z?void 0:z.compliancePeriods)&&z.compliancePeriods.map((function(e){return Ue.push(e)})),he>0&&(ge?Ue=[]:Y&&Y.forEach((function(e){Ue.push(e)}))),Ue.sort((function(e,t){return e.periodFrom===t.periodFrom?e.isSubLicensePeriod===t.isSubLicensePeriod?0:e.isSubLicensePeriod?1:-1:t.periodFrom-e.periodFrom}));var $e={complianceReport:z,isSublicenseRolling:ge,mainPeriods:null!==Q&&void 0!==Q?Q:[],periodsList:Ue,subLicenseId:he},He=function(){J($e),window.open("/printComplianceReport/print")},Ke=[ee,fe];return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Backdrop,{open:!we},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(un.DialogBody,{maxWidth:!1},we&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},!Re.includes(null!==(a=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==a?a:0)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12},we&&n.a.createElement(h.ToggleButtonGroup,{stretch:!0,exclusive:!0,options:[{label:"Current Period",value:1},{label:"All Periods",value:2}],value:oe,formikContext:!1,dense:!0,onChange:function(e,t){!function(e){Pe(!1),Ce(1);var t=parseInt(e,10);le(t),T?Ve(T,1===t):_e(P,w,1===t)}(t)}})))),n.a.createElement(h.Grid,{item:!0,xs:12},we&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,md:8,alignment:"center-left"},n.a.createElement(h.Typography,{variant:"h5",color:"primary"},null===z||void 0===z?void 0:z.licenseName)),n.a.createElement(h.Grid,{item:!0,xs:6,md:4},n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},void 0===T&&Ne&&(null===(o=Ne.find((function(e){return e.licenseId===w})))||void 0===o?void 0:o.shortSummary)&&n.a.createElement(h.Button,{size:"small",variant:"text",onClick:function(){return G(!0)},startIcon:n.a.createElement(h.BrandingIcon,{icon:"CeManager",size:"md"}),color:"primary",fullWidth:!1},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Hidden,{xsDown:!0},"Micron")," Summary")),n.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){""!==Be&&Ke.includes(w)?Fe(!0):He()},disabled:Re.includes(null!==(s=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==s?s:0),startIcon:n.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"})},n.a.createElement(h.Typography,{variant:"body1"},"Print")))))),n.a.createElement(h.Grid,{item:!0,xs:12},we&&n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:4,lg:3},n.a.createElement(h.Row,null,n.a.createElement(h.Box,{m:1},we&&n.a.createElement(h.Avatar,{variant:"circular",className:F.large},null===(null===z||void 0===z?void 0:z.userAvatarThumbnailURl)?"".concat((null===z||void 0===z?void 0:z.firstName)&&(null===z||void 0===z?void 0:z.firstName[0])).concat((null===z||void 0===z?void 0:z.lastName)&&(null===z||void 0===z?void 0:z.lastName[0])):n.a.createElement("img",{src:null===z||void 0===z?void 0:z.userAvatarThumbnailURl,alt:"Loading...",width:"100%"}))),n.a.createElement(h.Box,{mt:2,ml:1},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1"},null===z||void 0===z?void 0:z.userType),n.a.createElement(h.Typography,{variant:"h5"},null===z||void 0===z?void 0:z.firstName," ",null!==(l=null===z||void 0===z?void 0:z.middleName)&&void 0!==l?l:""," ",null===z||void 0===z?void 0:z.lastName))))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:"auto"},n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Column,{mainAxisAlignment:"middle"},null===z||void 0===z||null===(d=z.userLicenseProfile)||void 0===d?void 0:d.filter((function(e){var t;return 5!==e.fieldType&&(2!==e.fieldType||w===ie&&2===e.fieldType&&(null===(t=e.fieldName)||void 0===t?void 0:t.includes("Membership Month"))||(w===se||w===pe)&&3===e.profileId||w===ne&&4===e.profileId)})).map((function(e){return"-"!==Ye(e)?n.a.createElement(n.a.Fragment,null,z.licenseId===ue&&3===e.profileId?n.a.createElement(h.Typography,{variant:"body2"},Ye(e)):n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"body2"},e.fieldName," :"),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body2"},Ye(e))))):n.a.createElement(n.a.Fragment,null)})),w===te&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"body2"},"Compliance Group: "),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body2"},function(e){var t=0;if(""!==e&&(t=e.charCodeAt(0)),t>=65&&t<=71)return 1;if(t>=62&&t<=77)return 2;if(t>=78&&t<=90)return 3;switch(t){case 196:case 203:return 1;case 207:return 2;case 209:case 214:case 220:return 3;default:return 0}}(null!==(u=null===z||void 0===z||null===(v=z.userLicenseProfile)||void 0===v||null===(f=v.find((function(e){return 2===e.profileId})))||void 0===f?void 0:f.valueChar)&&void 0!==u?u:"")))),(null===z||void 0===z?void 0:z.licenseId)===Ie&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"body2"},"Group: "),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body2"},Z(null!==(m=null===z||void 0===z||null===(y=z.userLicenseProfile)||void 0===y||null===(g=y.find((function(e){return 1===e.profileId})))||void 0===g?void 0:g.valueDate)&&void 0!==m?m:new Date))))))))))),!Re.includes(null!==(b=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==b?b:0)&&Y&&ge&&2===oe&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:4},we&&n.a.createElement(h.SelectField,{id:"subLicensePeriod",fullWidth:!0,variant:"outlined",formikContext:!1,startAdornment:"Periods",value:Oe,onChange:function(e){var t=e.target.value,i=Y&&Y[t-1];if(Ce(t),i){var r,n,a;Pe(!1);var o=Object(N.e)(null!==(r=i.periodFrom)&&void 0!==r?r:new Date),s=Object(N.e)(null!==(n=null!==(a=i.periodToDisplay)&&void 0!==a?a:i.periodTo)&&void 0!==n?n:new Date);j(P,w,o,s,!1).then((function(e){var t=Array();t.push(i),e.forEach((function(e){t.push(e)})),X(t),Pe(!0)}))}}},Y.map((function(e){var t;return Ge+=1,n.a.createElement(h.MenuItem,{key:Ge,value:Ge},Object(N.c)(e.periodFrom)," - ",Object(N.c)(null!==(t=e.periodToDisplay)&&void 0!==t?t:e.periodTo))})))),n.a.createElement(h.Grid,{item:!0,xs:8})),we&&!Re.includes(null!==(S=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==S?S:0)&&!ge&&Ue.length>0&&(null===(E=Ue)||void 0===E?void 0:E.map((function(e){var t,i;return n.a.createElement(h.Box,{mt:2,key:e.periodNumber},n.a.createElement(Bn,{period:e,isCarryOverAllowed:e.isSubLicensePeriod?null!==(t=null===z||void 0===z?void 0:z.isSubLicenseCarryOverAllowed)&&void 0!==t&&t:null!==(i=null===z||void 0===z?void 0:z.isCarryOverAllowed)&&void 0!==i&&i,licenseId:e.isSubLicensePeriod?he:w,userId:P,userFullName:"".concat(null===z||void 0===z?void 0:z.firstName," ").concat(null===z||void 0===z?void 0:z.lastName),licenseName:null===z||void 0===z?void 0:z.licenseName,showApplicationSummary:void 0===T}))}))),we&&!Re.includes(null!==(I=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==I?I:0)&&ge&&(null===Q||void 0===Q?void 0:Q.map((function(e){var t,i;return n.a.createElement(h.Box,{mt:2,key:e.periodNumber},n.a.createElement(Bn,{period:e,isCarryOverAllowed:e.isSubLicensePeriod?null!==(t=null===z||void 0===z?void 0:z.isSubLicenseCarryOverAllowed)&&void 0!==t&&t:null!==(i=null===z||void 0===z?void 0:z.isCarryOverAllowed)&&void 0!==i&&i,licenseId:e.isSubLicensePeriod?he:w,userId:P,userFullName:"".concat(null===z||void 0===z?void 0:z.firstName," ").concat(null===z||void 0===z?void 0:z.lastName),licenseName:null===z||void 0===z?void 0:z.licenseName}))}))),we&&Re.includes(null!==(O=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==O?O:0)&&n.a.createElement(h.Box,{mt:3,ml:2},n.a.createElement(h.Typography,{variant:"h6"},(null===z||void 0===z?void 0:z.complianceStatusId)===p.B.NotTracked&&n.a.createElement("b",null,"Your firm is not tracking requirements for this jurisdiction. However, you are still responsible for meeting your requirement and staying in compliance with your governing association."),(null===z||void 0===z?void 0:z.complianceStatusId)===p.B.Inactive&&n.a.createElement("b",null,"User is inactive in this jurisdiction."),(null===z||void 0===z?void 0:z.complianceStatusId)===p.B.Pending&&n.a.createElement("b",null,"User\u2019s license for this jurisdiction is pending."),(null===z||void 0===z?void 0:z.complianceStatusId)===p.B.NonMandatory&&n.a.createElement("b",null,"There are no mandatory continuing education requirements for this jurisdiction."))))),U&&n.a.createElement(Un,{open:U,onClose:function(){return G(!1)},licenseId:w,licenseName:null!==(C=null===z||void 0===z?void 0:z.licenseName)&&void 0!==C?C:""}),Je&&n.a.createElement(Pn,{licenseId:w,open:Je,onClose:function(){return Fe(!1)},handleComplianceReportPrint:function(){return He()},isCurrentPeriod:1===oe,jurisdictionReportGuid:null!==Be&&void 0!==Be?Be:"",latestCAPeriodYear:ze}))}))),Mn=Object(s.b)((function(){return{}}),(function(e){return{getMainPeriods:function(t,i,r,n,a){return e(Sn(t,i,r,n,a))},getSubLicensePeriods:function(t,i,r,n){return e(En(t,i,n,r))},getUserLicenseIdList:function(t,i){return e(function(e,t){return function(i){return q.Y.getUserLicenseList(void 0,new p.ld({userId:e,licenseId:t,isRequestFromPortal:!0})).then((function(e){return e})).catch((function(e){throw i(Object(bn.b)(e)),e}))}}(t,i))},getFirmSettings:function(){return e(Object(vn.c)())}}}))((function(e){var t=e.getUserLicenseIdList,i=e.licenseId,a=e.onClose,o=e.open,s=e.userId,l=e.userLicenses,d=e.getFirmSettings,u=Object(r.useState)(),v=Object(c.a)(u,2),p=v[0],f=v[1],m=Object(r.useState)(0),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(!1),E=Object(c.a)(S,2),I=E[0],O=E[1];Object(r.useEffect)((function(){d()}),[d]),Object(r.useEffect)((function(){O(!0),t(s,i).then((function(e){var t,i,r=null!==(t=e.licenseList)&&void 0!==t?t:[];f(r.filter((function(e){return!e.isSubLicense}))),b(null!==(i=e.licenseIndex)&&void 0!==i?i:0),O(!1)}))}),[t,s,i]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Dialog,{fullScreen:!0,open:o,onClose:a},!I&&n.a.createElement(un.DialogHeader,{titleBar:{title:"Compliance Report",onClose:a},colorMode:"dark",tabs:function(){var e=Array();return p&&p.filter((function(e){return!1===e.isLicenseNotDisplayed})).forEach((function(t){var i,r,a,o={id:(null!==(i=t.licenseId)&&void 0!==i?i:0).toString(),label:null!==(r=t.name)&&void 0!==r?r:"",component:n.a.createElement(qn,{licenseId:null!==(a=t.licenseId)&&void 0!==a?a:0,userId:s,userLicenses:l})};e.push(o)})),e}(),defaultTab:g}),n.a.createElement(h.Backdrop,{open:I},n.a.createElement(h.CircularProgress,{color:"secondary"}))))})),zn=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(Vr.c)(t))},getAllUserLicensesPortal:function(t){return e(function(e){return function(t){return q.ab.getAllUserLicensesPortal(void 0,new p.xc({userId:e})).then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}}(t))}}}))((function(e){var t,i=e.getScreenDescription,a=e.loggedUser,o=e.getAllUserLicensesPortal,s=a&&a.userRole,l=Object(r.useState)(),d=Object(c.a)(l,2),u=d[0],v=d[1],f=Object(r.useState)(!1),m=Object(c.a)(f,2),y=m[0],g=m[1],b=Object(r.useState)(),S=Object(c.a)(b,2),E=S[0],I=S[1],O=Object(r.useState)(),C=Object(c.a)(O,2),x=C[0],j=C[1],w=Object(r.useState)(),T=Object(c.a)(w,2),k=T[0],D=T[1],J=Object(r.useState)(),F=Object(c.a)(J,2),B=F[0],R=F[1],U=Object(r.useState)(),G=Object(c.a)(U,2),q=G[0],M=G[1],z=Object(r.useState)(!1),W=Object(c.a)(z,2),V=W[0],_=W[1],Y=Object(r.useState)(!1),$=Object(c.a)(Y,2),H=$[0],K=$[1],Q=Object(r.useState)(0),Z=Object(c.a)(Q,2),X=Z[0],ee=Z[1];Object(r.useEffect)((function(){s&&i(p.Md.Compliance).then((function(e){return v(e)}))}),[i,s]),Object(r.useEffect)((function(){var e;_(!0),o(null!==(e=null===a||void 0===a?void 0:a.userId)&&void 0!==e?e:0).then((function(e){I(e&&e.filter((function(e){return!1===e.isLicenseNotDisplayedToTheProfessional}))),j(e&&e.filter((function(e){return"Accounting"===e.industry&&!1===e.isLicenseNotDisplayedToTheProfessional}))),D(e&&e.filter((function(e){return"Law"===e.industry&&!1===e.isLicenseNotDisplayedToTheProfessional}))),R(e&&e.filter((function(e){return"Certification"===e.industry&&!1===e.isLicenseNotDisplayedToTheProfessional}))),M(e&&e.filter((function(e){return"Accounting"!==e.industry&&"Law"!==e.industry&&"Certification"!==e.industry&&!1===e.isLicenseNotDisplayedToTheProfessional}))),_(!1)}))}),[o,a]);var te=function(e){switch(e){case"Accounting":return n.a.createElement(h.SystemIcon,{icon:"Cem-Accounting",size:"sm",type:"duotone"});case"Law":return n.a.createElement(h.SystemIcon,{icon:"Cem-Legal",size:"sm",type:"duotone"});case"Certification":return n.a.createElement(h.SystemIcon,{icon:"Cem-Certificate",size:"sm",type:"duotone"});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-InFirm",size:"sm",type:"duotone"})}},ie=function(e,t){var i,r=[{Header:"License",accessor:"",width:"auto",wrapText:!0,Cell:function(e){var t,i,r=e.row.original,a=null!==(t=r.licenseId)&&void 0!==t?t:0,o=null!==(i=r.parentLicenseId)&&void 0!==i?i:0;return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Link,{onClick:function(){return function(e){K(!0),ee(e)}(o>0?o:a)},underline:"none"},n.a.createElement(h.Typography,{variant:"subtitle2"},r.licenseName)),n.a.createElement(h.Box,{ml:1},r.isAdditionalRequirementNeeded&&n.a.createElement(h.Tooltip,{title:"Additional Requirement",key:"Additional Requirement"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Info",color:"info",size:"sm"})))))},disableSortBy:!0},{Header:"Due Date",accessor:"dueDate",width:150,wrapText:!0,Cell:function(e){var t=e.row.original;return t.isNotTracked?"Not Tracked":n.a.createElement(h.Typography,null,Object(N.c)(t.periodEndDate))},disableSortBy:!0},{Header:"Renewal Date",accessor:"renewalDate",width:150,wrapText:!0,Cell:function(e){var t=e.row.original;return t.isNotTracked?"":n.a.createElement(h.Typography,null,Object(N.c)(t.renewalDate))},disableSortBy:!0},{Header:"Credits Needed",accessor:"creditsNeeded",width:100,wrapText:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Row,{mainAxisAlignment:"center"},!t.isNotTracked&&n.a.createElement(h.Typography,null,t.creditsNeeded))},disableSortBy:!0},{Header:"Prior Period",accessor:"priorPeriod",width:100,wrapText:!0,Cell:function(e){var t=e.row.original;return!t.isNotTracked&&t.priorPeriodDeficiency&&n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Tooltip,{title:"Prior Period Deficiency",key:"Prior Period Deficiency"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Error",color:"error",size:"sm"}))))},disableSortBy:!0},{Header:"Status",accessor:"status",align:"center",width:200,wrapText:!0,Cell:function(e){var t;return function(e){var t,i=e===p.B.NotInCompliance?"error":e===p.B.InProgress?"info":e===p.B.Extension||e===p.B.Pending?"warning":"success";switch(e){case 0:t=n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Not in Compliance")));break;case 1:t=n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.SystemIcon,{icon:"Success",color:"success",size:"sm"}),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body1"},"In Compliance")));break;case 2:t=n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.SystemIcon,{icon:"Repeat",color:"primary",size:"sm"}),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body1"},"In Progress")));break;case 3:t=n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.SystemIcon,{icon:"Repeat",color:"secondary",size:"sm"}),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body1"},"Grace Period")));break;case 4:t=n.a.createElement(h.Typography,null,"Non Mandatory");break;case 5:t=n.a.createElement(h.Typography,null,"Not Tracked");break;case 6:t=n.a.createElement(h.Typography,{color:"textSecondary"},"Pending");break;case 7:t=n.a.createElement(h.Typography,null,"Inactive")}return n.a.createElement(h.Chip,{variant:"box",label:t,color:i,size:"medium",colorMode:"light",width:"lg"})}(null!==(t=e.row.original.complianceStatusId)&&void 0!==t?t:0)},disableSortBy:!0}];return n.a.createElement(h.Widget,{key:"".concat(t,"Group")},n.a.createElement(h.Box,null,n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1"},n.a.createElement(h.Box,{ml:1},n.a.createElement(A.a,{title:n.a.createElement(h.Row,{crossAxisAlignment:"middle"},te(t),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"h6"}," ",t)))}))),n.a.createElement(h.Box,{width:"100%"},n.a.createElement(P.a,{dense:!0},n.a.createElement(h.DataGrid,{advanced:!0,columns:r,loading:void 0===e,data:e,hideRowCountDisplay:!0,hideRowsPerPage:!0,pageSize:null!==(i=e.length)&&void 0!==i?i:0})))))};return n.a.createElement(h.Screen,{titleBar:{title:(u&&""!==u.title?u.title:"Compliance")||"Compliance",description:u?n.a.createElement(h.Column,null,null!==u.shortDescription&&""!==u.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(u.shortDescription)}),null!==u.text&&""!==u.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return g(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},n.a.createElement(dn,{open:y,onClose:function(){return g(!1)},title:(u&&""!==u.title?u.title:"Compliance")||"Compliance",description:null===u||void 0===u?void 0:u.text}),n.a.createElement(h.Container,{maxWidth:"lg"},V?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(h.Grid,{container:!0,spacing:"form"},E&&0===E.length&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No license records found")),x&&0!==(null===x||void 0===x?void 0:x.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},ie(x,"Accounting")),n.a.createElement(h.Grid,{item:!0,xs:12})),k&&0!==(null===k||void 0===k?void 0:k.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},ie(k,"Law")),n.a.createElement(h.Grid,{item:!0,xs:12})),B&&0!==(null===B||void 0===B?void 0:B.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},ie(B,"Certification")),n.a.createElement(h.Grid,{item:!0,xs:12})),q&&0!==(null===q||void 0===q?void 0:q.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},ie(q,"Custom")),n.a.createElement(h.Grid,{item:!0,xs:12})))),H&&n.a.createElement(Mn,{open:H,onClose:function(){return K(!1)},licenseId:X,userId:null!==(t=null===a||void 0===a?void 0:a.userId)&&void 0!==t?t:0,userLicenses:E}))})),Wn=Object(V.makeStyles)((function(e){return Object(V.createStyles)({large:{width:e.spacing(8),height:e.spacing(8)},printButton:{"@media print":{display:"none !important"}},pagebreak:{"@media print":{breakAfter:"always !important",pageBreakAfter:"always !important"}},profileDetails:{"@media print":{paddingLeft:"250px"}}})})),Vn=Object(s.b)((function(e){return{selectedReportToPrint:e.compliance.selectedComplianceReportToPrint}}),(function(){return{}}))((function(e){var t,i,a,o,s,l,c,d=e.selectedReportToPrint,u=Wn(),v=null===d||void 0===d?void 0:d.complianceReport,p=null===d||void 0===d?void 0:d.isSublicenseRolling,f=null===d||void 0===d?void 0:d.mainPeriods,m=null!==(t=null===d||void 0===d?void 0:d.periodsList)&&void 0!==t?t:[],y=null!==(i=null===d||void 0===d?void 0:d.subLicenseId)&&void 0!==i?i:0;Object(r.useEffect)((function(){var e=document.head||document.getElementsByTagName("head")[0],t="@page { size: landscape; transform: scale(.3) }",i=document.createElement("style");i.type="text/css",i.media="print",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i)}),[]);var g=function(e){switch(e.fieldType){case 1:return""===e.valueChar||null===e.valueChar?"-":e.valueChar;case 2:return e.valueInt;case 3:return void 0===e.valueDate?"-":"Birth Date"===e.fieldName?Object(Zt.g)(e.valueDate):Object(N.c)(e.valueDate,"MM/DD/YYYY");case 4:return e.valueDecimal;case 6:return""===e.valueChar||null===e.valueChar?"-":e.valueChar;default:return""}},b=new Date;if((null===v||void 0===v?void 0:v.licenseId)===Ie){var S,E,I=null===v||void 0===v||null===(S=v.userLicenseProfile)||void 0===S||null===(E=S.find((function(e){return 1===e.profileId})))||void 0===E?void 0:E.valueDate;void 0!==I&&(b=new Date(I))}return n.a.createElement("div",{id:"complianceReport"},n.a.createElement(h.Box,{m:5},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Row,{mainAxisAlignment:"space-between"},n.a.createElement(h.Typography,{variant:"h5"},null===v||void 0===v?void 0:v.licenseName),n.a.createElement(h.Box,{mt:1,"data-html2canvas-ignore":!0},n.a.createElement(h.Button,{onClick:function(){return function(){var e,t=null===(e=document.getElementById("complianceReport"))||void 0===e?void 0:e.innerHTML,i=document.body.innerHTML;document.body.innerHTML=null!==t&&void 0!==t?t:"",window.print(),document.body.innerHTML=i}()},variant:"text",color:"primary",size:"small",className:u.printButton}," ",n.a.createElement(h.Row,null,n.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"body1"},"Print"))))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Row,null,n.a.createElement(h.Box,{mt:2,ml:1},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"caption"},null===v||void 0===v?void 0:v.userType),n.a.createElement(h.Typography,{variant:"h5"},null===v||void 0===v?void 0:v.firstName," ",null!==(a=null===v||void 0===v?void 0:v.middleName)&&void 0!==a?a:""," ",null===v||void 0===v?void 0:v.lastName))),n.a.createElement(h.Box,{mt:2,ml:5},n.a.createElement(h.Column,{mainAxisAlignment:"middle"},null===v||void 0===v||null===(o=v.userLicenseProfile)||void 0===o?void 0:o.filter((function(e){return 5!==e.fieldType&&2!==e.fieldType})).map((function(e){return"-"!==g(e)?n.a.createElement(n.a.Fragment,null,v.licenseId===ue&&3===e.profileId?n.a.createElement(h.Typography,{variant:"caption"},g(e)):n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"caption"},e.fieldName," :"),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"caption"},g(e))))):n.a.createElement(n.a.Fragment,null)})),(null===v||void 0===v?void 0:v.licenseId)===te&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"caption"},"Compliance Group: "),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"caption"},function(e){var t=0;if(""!==e&&(t=e.charCodeAt(0)),t>=65&&t<=71)return 1;if(t>=62&&t<=77)return 2;if(t>=78&&t<=90)return 3;switch(t){case 196:case 203:return 1;case 207:return 2;case 209:case 214:case 220:return 3;default:return 0}}(null!==(s=null===v||void 0===v||null===(l=v.userLicenseProfile)||void 0===l||null===(c=l.find((function(e){return 2===e.profileId})))||void 0===c?void 0:c.valueChar)&&void 0!==s?s:"")))),(null===v||void 0===v?void 0:v.licenseId)===Ie&&n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"caption"},"Group: "),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"caption"},Z(b))))))),!p&&m.length>0&&(null===m||void 0===m?void 0:m.map((function(e){var t,i,r,a;return n.a.createElement(h.Box,{mt:2,key:e.periodNumber},n.a.createElement(Bn,{period:e,isCarryOverAllowed:e.isSubLicensePeriod?null!==(t=null===v||void 0===v?void 0:v.isSubLicenseCarryOverAllowed)&&void 0!==t&&t:null!==(i=null===v||void 0===v?void 0:v.isCarryOverAllowed)&&void 0!==i&&i,licenseId:e.isSubLicensePeriod?y:null!==(r=null===v||void 0===v?void 0:v.licenseId)&&void 0!==r?r:0,userId:null!==(a=null===v||void 0===v?void 0:v.userId)&&void 0!==a?a:0,userFullName:"".concat(null===v||void 0===v?void 0:v.firstName," ").concat(null===v||void 0===v?void 0:v.lastName),licenseName:null===v||void 0===v?void 0:v.licenseName,printPreview:!0}))}))),p&&(null===f||void 0===f?void 0:f.map((function(e){var t,i,r,a;return n.a.createElement(h.Box,{mt:2,key:e.periodNumber},n.a.createElement(Bn,{period:e,isCarryOverAllowed:e.isSubLicensePeriod?null!==(t=null===v||void 0===v?void 0:v.isSubLicenseCarryOverAllowed)&&void 0!==t&&t:null!==(i=null===v||void 0===v?void 0:v.isCarryOverAllowed)&&void 0!==i&&i,licenseId:e.isSubLicensePeriod?y:null!==(r=null===v||void 0===v?void 0:v.licenseId)&&void 0!==r?r:0,userId:null!==(a=null===v||void 0===v?void 0:v.userId)&&void 0!==a?a:0,userFullName:"".concat(null===v||void 0===v?void 0:v.firstName," ").concat(null===v||void 0===v?void 0:v.lastName),licenseName:null===v||void 0===v?void 0:v.licenseName,printPreview:!0}))})))))))})),_n=i(164),Yn=Object(d.o)((function(e){var t=e.isCancelled,i=void 0!==t&&t,r=e.isLapsed,a=void 0!==r&&r,o=e.status,s=e.isOnDemand,l=e.isWaitlistAllowed,c=void 0===l||l,d=e.registrationLimit,u=e.participantCount,v=e.isInvitation,f=void 0!==v&&v,m=e.isWaitlisted,y=void 0!==m&&m,g=e.isApprovalRequired,b=void 0!==g&&g,S=e.isImpersonated,E=void 0!==S&&S,I=e.isTentativeAllowed,O=void 0!==I&&I,C=e.match,x=e.onViewOnDemand,j=e.onCancelRegistration,w=e.onRegistration,P=e.onTentativeRegistration,T=e.onWaitlist,A=e.onCancelWaitlist,N=e.onDecline,k=0!==d&&u>=d,D=C.url.indexOf("registration")>0,L=Object(B.useTheme)(),J=Object(B.useMediaQuery)(L.breakpoints.down("xs")),F=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"default",disabled:!0,type:"button",width:"xl"},"Registration Closed"),R=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"xl",onClick:function(){w&&w()}},"Enroll"),U=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"xl",onClick:function(){T&&T()}},"Join Waitlist"),G=n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"primary",type:"button",width:"xl",onClick:A},"Cancel"),q=n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"primary",type:"button",width:"xl",onClick:function(){P&&P()}},"Enroll as Tentative"),M=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:function(){x&&x()},disabled:E,endIcon:n.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"Resume"),z=n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",type:"button",width:"xl",onClick:j&&j},"Cancel"),W=n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",type:"button",width:"xl",onClick:N},"Decline"),V=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:x,disabled:E,endIcon:n.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"View On-Demand"),_=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:x,disabled:E,endIcon:n.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"View Again"),Y=n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:x,disabled:E,endIcon:n.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"Retake Session");if(i)return n.a.createElement(h.Button,{size:"small",variant:"contained",color:"inherit",disabled:!0,type:"button"},"Canceled");if(s)switch(o){case void 0:return k&&!c?n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},F):k&&c?y?n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},G):n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},(f||D)&&W,b?R:U):n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},(f||D)&&W,V);case p.ke.Excused:case p.ke.Unexcused:case p.ke.Pending:case p.ke.Registered:case p.ke.Tentative:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},(f||D)&&W,V);case p.ke.InProgress:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},M);case p.ke.Declined:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},V);case p.ke.Validated:case p.ke.Disqualified:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},_);case p.ke.Failed:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},Y)}if(!s)if(a)switch(o){case p.ke.Registered:case p.ke.Excused:case p.ke.Unexcused:case p.ke.InProgress:case p.ke.Tentative:case p.ke.Pending:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},z)}else switch(o){case void 0:return k&&!c?n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},F):k&&c?y?n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},G):n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},(f||D)&&W,b?R:U):n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},(f||D)&&W,O&&q,R);case p.ke.Registered:case p.ke.Unexcused:case p.ke.InProgress:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},z);case p.ke.Tentative:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},z,R);case p.ke.Pending:return n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},z);case p.ke.Declined:case p.ke.Excused:return k&&!c?n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},F):k&&c?y?n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},G):n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},b?R:U):n.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:J?"vertical":"horizontal"},q,R)}return n.a.createElement(n.a.Fragment,null)})),$n=(i(508),i(200)),Hn=(i(252),Object(B.makeStyles)((function(e){var t=e.palette;return Object(B.createStyles)({title:{color:t.grey[500],fontWeight:600}})}))),Kn=function(e){var t=e.courseClassYears,i=e.courseCompetencies,r=e.courseDepartments,a=e.courseLevels,o=e.coursePracticeAreas,s=e.courseTags,l=Hn();return n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12}),i&&(null===i||void 0===i?void 0:i.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Competencies")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===i||void 0===i?void 0:i.join(", ")))),r&&(null===r||void 0===r?void 0:r.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Departments")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===r||void 0===r?void 0:r.join(", ")))),o&&(null===o||void 0===o?void 0:o.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Practice Areas")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===o||void 0===o?void 0:o.join(", ")))),a&&(null===a||void 0===a?void 0:a.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Levels")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===a||void 0===a?void 0:a.join(", ")))),t&&(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Class Year")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===t||void 0===t?void 0:t.join(", ")))),s&&(null===s||void 0===s?void 0:s.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Tags")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap"},null===s||void 0===s?void 0:s.map((function(e,t){return n.a.createElement(h.Box,{mr:1,mb:1,key:t},n.a.createElement(h.Chip,{label:null!==e&&void 0!==e?e:"",variant:"box"}))}))))))},Qn=function(e){var t=e.fileExtension,i=e.size,r=e.type,a=e.color,o=e.linkFlag;if(void 0!==o&&o)return n.a.createElement(h.SystemIcon,{icon:"Url",size:i,type:r,color:a});switch(t){case"Archive":return n.a.createElement(h.SystemIcon,{icon:"FileArchive",size:i,type:r,color:a});case".xls":case".csv":return n.a.createElement(h.SystemIcon,{icon:"FileExcel",size:i,type:r,color:a});case".jpg":case".png":case".gif":return n.a.createElement(h.SystemIcon,{icon:"FileImage",size:i,type:r,color:a});case".mp3":case".wav":return n.a.createElement(h.SystemIcon,{icon:"FileMusic",size:i,type:r,color:a});case".pdf":return n.a.createElement(h.SystemIcon,{icon:"FilePdf",size:i,type:r,color:a});case".ppt":return n.a.createElement(h.SystemIcon,{icon:"FilePowerpoint",size:i,type:r,color:a});case".txt":return n.a.createElement(h.SystemIcon,{icon:"FileTxt",size:i,type:r,color:a});case".mp4":case".webm":case".ogg":return n.a.createElement(h.SystemIcon,{icon:"FileVideo",size:i,type:r,color:a});case".doc":return n.a.createElement(h.SystemIcon,{icon:"FileWord",size:i,type:r,color:a});default:return n.a.createElement(h.SystemIcon,{icon:"File",size:i,type:r,color:a})}},Zn=Object(s.b)((function(){return{}}),(function(e){return{downloadFilebyGuid:function(t,i){return e(function(e,t){return function(i){return q.D.downloadFileByGuid(t,void 0,p.Hc.fromJS({guid:e})).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},downloadFile:function(t){return e(_i(t))},downloadFileFromInvite:function(t){return e((i=t,function(e){return q.D.downloadFileFromInvite(i,void 0).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(t){throw e(Object(M.b)(t)),t}))}));var i}}}))((function(e){var t=e.downloadFile,i=e.downloadFilebyGuid,a=e.downloadFileFromInvite,o=e.isInvitation,s=e.isRegisration,l=e.materialList,d=e.guid,u=Object(r.useState)(!1),v=Object(c.a)(u,2),p=v[0],f=v[1];Object(r.useEffect)((function(){o&&f(!0)}),[o]);var m;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.CardActions,null,n.a.createElement(h.Row,{flex:1,crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:1,mr:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Materials")),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.IconButton,{onClick:function(){return f(!p)}},n.a.createElement(h.SystemIcon,{icon:p?"CollapseVertical":"ExpandVertical",size:"md"}))))),n.a.createElement(h.Collapse,{in:p},n.a.createElement(h.CardContent,null,(m=l||[])?n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===m||void 0===m?void 0:m.map((function(e){var r,l,c;return n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,stretchContent:!0,key:e.sessionMaterialId},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1},n.a.createElement(Qn,{fileExtension:null!==(r=null===(l=e.libraryFile)||void 0===l?void 0:l.extension)&&void 0!==r?r:"",color:"primary",type:"duotone",size:"sm"})),n.a.createElement(h.Box,null,n.a.createElement(h.Link,{onClick:function(){var r,n;if("link"===(null===(r=e.libraryFile)||void 0===r?void 0:r.type)){var l,c,u=null===(l=e.libraryFile)||void 0===l?void 0:l.url;(null===(c=u)||void 0===c?void 0:c.match(/^https?:\/\//i))||(u="http://"+u),window.open(u,"_blank")}else n=e.fileId||0,d&&""!==d&&0===n?i(d,n):o||s?a(n):t("".concat(n))}},null===(c=e.libraryFile)||void 0===c?void 0:c.title))))}))):null)))})),Xn=function(e){switch(e.status){case p.ke.Declined:return n.a.createElement(h.Box,{bgcolor:"#E50019",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case p.ke.Validated:return n.a.createElement(h.Box,{bgcolor:"#4CAF50",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case p.ke.InProgress:case p.ke.Registered:case p.ke.Unexcused:case p.ke.Tentative:return n.a.createElement(h.Box,{bgcolor:"#239BD8",width:"100%",borderRadius:"4px 4px 0px0px",height:"6px"});case p.ke.Pending:case p.ke.Disqualified:return n.a.createElement(h.Box,{bgcolor:"#FF8D11",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case p.ke.Failed:return n.a.createElement(h.Box,{bgcolor:"#F44336",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});default:return n.a.createElement(h.Box,{bgcolor:"#979797",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"})}},ea=Object(B.makeStyles)((function(e){var t=e.spacing;return Object(B.createStyles)({cardBorder:{borderRadius:"".concat(t(0),"px ").concat(t(0),"px ").concat(t(.5),"px ").concat(t(.5),"px")}})})),ta=function(e){var t=e.actionButton,i=e.statusChip,r=e.courseTitle,a=e.courseFormat,o=e.courseFormatPortalCategory,s=e.endDate,l=e.endTime,c=e.instructors,d=e.loading,u=e.location,v=e.materialList,p=e.room,f=e.sessionTitle,m=e.sessionDescription,y=e.sessionLicenses,g=e.sessionIsOnlineLearning,b=e.startDate,S=e.startTime,E=e.status,I=e.timeZone,O=e.isInvitation,C=void 0!==O&&O,x=e.isRegisration,j=void 0!==x&&x,w=e.isOnDemand,P=void 0!==w&&w,T=e.duration,A=e.guid,N=ea(),k=Object(Zt.e)(b,"MM/DD/YYYY"),D=s?Object(Zt.e)(s,"MM/DD/YYYY"):"",J=""===D||k===D?k:"".concat(k," - ").concat(D);return n.a.createElement(n.a.Fragment,null,n.a.createElement(Xn,{status:E}),n.a.createElement(h.Card,{className:N.cardBorder,elevation:0,variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:4,sm:2,md:2,lg:1,alignment:"center"},n.a.createElement(h.Box,{color:"#757575",mr:1.5,mt:1},d?n.a.createElement(h.Skeleton,{variant:"circle",width:"50px",height:"50px"}):n.a.createElement(kn,{size:"lg",type:"duotone",format:o||""}))),n.a.createElement(h.Grid,{item:!0,xs:8,sm:8,md:6,lg:7,stretchContent:!0},n.a.createElement(h.Box,{mt:1,mr:1.5},d?n.a.createElement(h.Skeleton,{variant:"text",width:"100%"}):g?n.a.createElement(h.Column,null,f!==r&&n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},null!==f&&void 0!==f?f:r),n.a.createElement(h.Typography,{variant:"body1"},"".concat(a,"; Recorded ").concat(Object(Zt.e)(b,"MM/DD/YYYY"))),n.a.createElement(h.Typography,{variant:"body1"},T)):n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Column,null,n.a.createElement(h.Row,null,r!==f&&n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},f)),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"body1"},a)),n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.SystemIcon,{icon:"Calendar",type:"duotone",size:"xs"})),P&&n.a.createElement(h.Expanded,{flex:1,mr:1},n.a.createElement(h.Typography,{variant:"caption"},"Original Live Date:")),n.a.createElement(h.Expanded,{flex:1,mr:1.5},J)),S&&n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.SystemIcon,{icon:"Clock",type:"duotone",size:"xs"})),n.a.createElement(h.Expanded,{flex:1,mr:1.5},S?" ".concat(S):"",l?" - ".concat(l):"",S&&I?" ".concat(I," "):"")),u&&n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.SystemIcon,{icon:"Location",type:"duotone",size:"xs"})),n.a.createElement(h.Expanded,{flex:1},u,null!==p&&": ".concat(p))),c&&c.length>0&&n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.SystemIcon,{icon:"User",type:"duotone",size:"xs"})),n.a.createElement(h.Expanded,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",null===c||void 0===c?void 0:c.join(", "))," ")))))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:4,lg:4,alignment:"center-right"},i),n.a.createElement(h.Grid,{item:!0,xs:12},d?n.a.createElement(h.Skeleton,{variant:"text",width:"100%"}):m&&n.a.createElement(h.TextEditorView,{model:L(m)})),y&&y.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{mt:2},y&&y.map((function(e){var t,i,r="";return n.a.createElement(n.a.Fragment,{key:e.licenseId},e.name&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.map((function(e){"Reciprocal"===e.propertyLabel&&(r=r.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(r=r.concat("(".concat(e.propertyLabel,") ")))})),n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,e.name),""!==r?" - ".concat(r):"")),e.expirationDate&&null!==e.expirationDate&&e.expirationDate<=new Date&&n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"body1",color:"error"},n.a.createElement("i",null," ","(Expired ".concat(Object(Zt.e)(e.expirationDate),")")))),1!==e.licenseStatus&&n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"body1",color:"warning"},2===e.licenseStatus?"(Pending Approval)":"(Approval Denied)"))),n.a.createElement(h.Box,{ml:3},null===(i=e.sessionLicenseCredits)||void 0===i?void 0:i.map((function(e){return n.a.createElement(n.a.Fragment,{key:e.creditId},e.creditValue>0?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"body1",colorMode:"light"},"".concat(e.creditValue," ").concat(e.creditName))):"")})))))})))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:12,lg:12,alignment:"center-right"},t))),v&&v.length>0&&n.a.createElement(Zn,{guid:A,materialList:v,isInvitation:C,isRegisration:j})))},ia=function(e){var t=e.status,i=e.isWaitlisted;if(void 0!==i&&i)return n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{mr:1},n.a.createElement(h.SystemIcon,{icon:"Waitlist",size:"xs"})),"Waitlisted")});switch(t){case p.ke.Declined:return n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"error",colorMode:"dark",label:n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{mr:1},n.a.createElement(h.SystemIcon,{icon:"Error",size:"xs"})),"Declined")});case p.ke.Validated:return n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"success",colorMode:"dark",label:n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{mr:1},n.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),"Completed")});case p.ke.Failed:return n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"error",colorMode:"dark",label:n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{mr:1},n.a.createElement(h.SystemIcon,{icon:"Close",size:"xs"})),"Failed")});case p.ke.Registered:case p.ke.Unexcused:case p.ke.Tentative:return n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{mr:1},t===p.ke.Tentative?n.a.createElement(h.SystemIcon,{icon:"Tentative",size:"xs"}):n.a.createElement(h.SystemIcon,{icon:"CalendarDay",size:"xs"})),t===p.ke.Registered&&"Enrolled",t===p.ke.Unexcused&&"Enrolled",t===p.ke.Tentative&&"Tentative")});case p.ke.Pending:case p.ke.Disqualified:return n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"warning",colorMode:"dark",label:n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Box,{mr:1},n.a.createElement(h.SystemIcon,{icon:"Warning",size:"xs"})),t===p.ke.Pending&&"Pending Approval",t===p.ke.Disqualified&&"Disqualified")});default:return n.a.createElement(n.a.Fragment,null)}},ra=function(e,t){return function(i){return i(Ki(!0)),q.l.getCourseDetail(e,t,void 0).then((function(e){var t;return i((t=e,{type:Hi.a,payload:t})),i(Ki(!1)),e})).catch((function(e){throw i(Ki(!1)),i(Object(M.b)(e)),e}))}},na=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,courseDetailLoading:e.catalogDrawer.courseDetailLoading,courseSessionsLoading:e.catalogDrawer.courseSessionsLoading,filters:e.catalog.filters,authenticatedUser:e.users.authenticatedUser,isImpersonated:e.users.isImpersonated,learningSettings:e.generalSettings.learningSettings}}),(function(e){return{addNotification:function(t){return e(M.a({message:t,variant:"success"}))},addUsersToWaitlist:function(t,i,r,n){return e(Wi(t,i,r,n))},deleteParticipant:function(t,i,r){return e(zi(t,i,r))},deleteFromSessionWaitlist:function(t,i){return e(Vi(t,i))},getCourseDetail:function(t,i){return e(ra(t,i))},getCourseSessions:function(t,i,r,n,a,o,s,l){return e(function(e,t,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;return function(c,d){var u,h,v,f,m=d().users.loggedUser,y=d().portalSettings,g=y.courseFilters,b=y.calendarFilters,S=[],E=[];n&&b&&(S=b.locationIds,E=b.courseFormatIds),!n&&g&&(S=g.locationIds,E=g.courseFormatIds);var I=new p.Dc({courseId:e,userId:null===m||void 0===m?void 0:m.userId,portalCategory:t,favoritesOnly:i,hidePastSessions:r,publishedSessionsOnly:!0,locationFilterIds:null!==(u=S)&&void 0!==u?u:[],formatFilterIds:null!==(h=E)&&void 0!==h?h:[],sessionIds:l}),O=new p.Nc({courseId:e,userId:null===m||void 0===m?void 0:m.userId,learningPlanId:s,locationFilterIds:null!==(v=S)&&void 0!==v?v:[],formatFilterIds:null!==(f=E)&&void 0!==f?f:[]});return void 0===a&&null===a||(I.licenseId=a,void 0===o&&null===o||(I.licenseCreditsList=o)),c(Qi(!0)),c(Zi(null)),((s||0)>0?q.z.getRequirementSessions(void 0,p.Nc.fromJS(O)):q.l.getCourseSessions(void 0,p.Dc.fromJS(I))).then((function(e){return c(Zi(e)),c(Qi(!1)),e})).catch((function(e){throw c(Qi(!1)),c(Object(M.b)(e)),e}))}}(t,i,!1,r,n,a,o,s,l))},registerParticipant:function(t,i,r,n){return e(qi(t,i,r,n))},showConfirmation:function(t){return e(Object($n.b)(t))},updateParticipant:function(t,i,r,n,a){return e(Mi(t,i,r,!1,n,a))},toggleFavoriteCourse:function(t,i){return e(vr(t,i,!0))},getCourseCatalog:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e(cr(t))},getLearningSettings:function(){return e(Object(vn.a)())}}})),aa=na((function(e){var t,i,a,o,s,l,u,v,f,m=e.addNotification,y=e.addUsersToWaitlist,g=e.courseId,b=e.categories,S=e.courseDetailLoading,E=e.courseSessionsLoading,I=e.deleteParticipant,O=e.deleteFromSessionWaitlist,C=e.getCourseDetail,x=e.getCourseSessions,j=e.hidePastSessions,w=e.learningPlanId,P=e.onClose,T=e.open,A=e.registerParticipant,N=e.showConfirmation,k=e.updateParticipant,D=e.userId,J=e.toggleFavoriteCourse,F=e.filters,R=e.authenticatedUser,U=e.isImpersonated,G=e.getLearningSettings,q=e.learningSettings,M=e.isFromCalendar,z=e.sessionIds,W=Object(B.useTheme)(),V=Object(B.useMediaQuery)(W.breakpoints.down("xs")),_=Object(r.useState)(!1),Y=Object(c.a)(_,2),$=Y[0],H=Y[1],K=Object(r.useState)(),Q=Object(c.a)(K,2),Z=Q[0],X=Q[1],ee=Object(r.useState)(),te=Object(c.a)(ee,2),ie=te[0],re=te[1],ne=Object(r.useState)(),ae=Object(c.a)(ne,2),oe=ae[0],se=ae[1],le=Object(r.useState)(!1),ce=Object(c.a)(le,2),de=ce[0],ue=ce[1],he=Object(r.useState)(1),ve=Object(c.a)(he,2),pe=ve[0],fe=ve[1],me=Object(d.k)(),ye=Object(d.l)(),ge=Object(r.useRef)(b),be=p.ke.Tentative,Se=p.ke.Registered,Ee=fn()(new Date).format("MM/DD/YYYY").toString(),Ie=new Date(Ee),Oe=null===Z||void 0===Z||null===(t=Z.courseCompetencies)||void 0===t?void 0:t.map((function(e){return e.name})),Ce=null===Z||void 0===Z||null===(i=Z.courseDepartments)||void 0===i?void 0:i.map((function(e){return e.name})),xe=null===Z||void 0===Z||null===(a=Z.coursePracticeAreas)||void 0===a?void 0:a.map((function(e){return e.name})),je=null===Z||void 0===Z||null===(o=Z.courseLevels)||void 0===o?void 0:o.map((function(e){return e.name})),we=null===Z||void 0===Z||null===(s=Z.courseClassYears)||void 0===s?void 0:s.map((function(e){return e.name})),Pe=null===Z||void 0===Z||null===(l=Z.courseTags)||void 0===l?void 0:l.map((function(e){return e.name})),Te=Oe&&(null===Oe||void 0===Oe?void 0:Oe.length)>0||Ce&&(null===Ce||void 0===Ce?void 0:Ce.length)>0||xe&&(null===xe||void 0===xe?void 0:xe.length)>0||je&&(null===je||void 0===je?void 0:je.length)>0||we&&(null===we||void 0===we?void 0:we.length)||Pe&&(null===Pe||void 0===Pe?void 0:Pe.length)>0,Ae=null!==(u=R&&R.userRole&&R.userRole[0].subRoleId)&&void 0!==u?u:0,Ne=Ae===p.re.AdministrativeAssistant||Ae===p.re.Supervisor,ke=null!==(v=null!=q&&(null===(f=q.find((function(e){return e.learningSettingEnumType===p.wd.AllowTentativeReg})))||void 0===f?void 0:f.valueBit))&&void 0!==v&&v;Object(r.useEffect)((function(){G()}),[G]);var De=function(e,t){t&&("Add"===e?(N({message:"Are you sure you want to be added to the session waitlist?",title:"Waitlist Confirmation",OnConfirm:function(){D&&y([D],t).then((function(){H(!0),m("You have now been successfully added to session waitlist.")}))}}),H(!1)):(N({message:"Are you sure you want to be removed from the session waitlist?",title:"Waitlist Cancellation",OnConfirm:function(){D&&O([D],t).then((function(){H(!0),m("You have now been removed from the session waitlist.")}))}}),H(!1)))},Le=function(e,t,i,r,n){var a="",o="";0===t?(a="Are you sure you want to register for this session?",o="You have now been successfully registered for this session.",n&&(a="Are you sure you want to register as a tentative attendee for this session?",o="You have now been registered as tentative attendee for this session."),r&&(a="This session requires approval. We will send an email to confirm your registration."),N({message:a,title:"Confirm Registration",OnConfirm:function(){D&&A([D],e,!1,n).then((function(){H(!0),m(o)})),H(!1)}})):t===Se?(a="Are you sure you want to update your registration status?",r&&(a="This session requires approval. We will send an email to confirm your registration."),N({message:a,title:"Confirm Status Update",OnConfirm:function(){D&&k([i],be,!1,e,!1).then((function(){H(!0),m("Your registration status has been updated.")})),H(!1)}})):(a="Are you sure you want to update your registration status?",r&&(a="This session requires approval. We will send an email to confirm your registration."),N({message:a,title:"Confirm Status Update",OnConfirm:function(){D&&k([i],n?p.ke.Tentative:Se,!1,e,!1).then((function(){H(!0),m("Your registration status has been updated.")})),H(!1)}}))};Object(r.useEffect)((function(){if(g&&T){fe(1),X(void 0),re(void 0),C(g,D||0).then((function(e){X(e)}));var e,t,i,r,n="",a="";if(F.length>0)n=null!==(e=null===(t=F.find((function(e){return"SessionLicense[or]"===e.split(":")[0]})))||void 0===t?void 0:t.split(":")[1].replace(/\s/,""))&&void 0!==e?e:"",a=null!==(i=null===(r=F.find((function(e){return"Credit"===e.split(":")[0]})))||void 0===r?void 0:r.split(":")[1].replace(/\s/,""))&&void 0!==i?i:"";x(g,ge.current,Boolean(j),Boolean(M),n,a,w,z).then((function(e){re(e)}))}}),[g,F,C,x,j,w,T,D,$,M,z]),Object(r.useEffect)((function(){var e=5*(pe-1),t=e+5;se(ie?ie.slice(e,t):[])}),[ie,pe]);var Je=Math.ceil(((null===ie||void 0===ie?void 0:ie.length)||0)/5);return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.SideDrawer,{size:"md",open:T,onClose:P,colorMode:"dark"},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:S?n.a.createElement(h.Skeleton,{width:"400px",height:"32px"}):Z&&n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h5"},null===Z||void 0===Z?void 0:Z.title),!M&&n.a.createElement(h.Box,{ml:3},n.a.createElement(h.Tooltip,{title:"Course Favorite"},n.a.createElement("span",null,n.a.createElement(h.Checkbox,{onChange:function(){var e,t;e=Z.courseId,t=Z.userFavorite||!1,J(e,t)},checked:Z.userFavorite,formikContext:!1,icon:n.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"Star",color:"secondary"}),checkedIcon:n.a.createElement(h.SystemIcon,{size:"sm",type:"solid",color:"secondary",icon:"Star"})})))))),subtitle:n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2"},S?n.a.createElement(h.Skeleton,{variant:"text",width:"120px"}):null===Z||void 0===Z?void 0:Z.provider),n.a.createElement(h.Typography,{variant:"subtitle2"},S?n.a.createElement(h.Skeleton,{variant:"text",width:"70px"}):null===Z||void 0===Z?void 0:Z.courseIdLabel))}}),n.a.createElement(sn.SideDrawerBody,null,S?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement("br",null),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):n.a.createElement(n.a.Fragment,null,(null===Z||void 0===Z?void 0:Z.description)&&n.a.createElement(h.TextEditorView,{model:L(null===Z||void 0===Z?void 0:Z.description)}),Te&&n.a.createElement(Kn,{courseClassYears:we,courseCompetencies:Oe||[],courseDepartments:Ce,courseLevels:je,coursePracticeAreas:xe,courseTags:Pe})),E||de?[1,2,3].map((function(e){return n.a.createElement(h.Box,{mt:3,key:e},n.a.createElement(ta,{loading:!0}))})):n.a.createElement(n.a.Fragment,null,((null===oe||void 0===oe?void 0:oe.length)||0)>0?null===oe||void 0===oe?void 0:oe.map((function(e){var t,i,r,a,o,s,l,c,d,u,v,p,f,y,g=fn()(null===e||void 0===e?void 0:e.startDate).format("MM/DD/YYYY").toString(),b=new Date(g)>=Ie,S=null!==(t=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==t?t:[],E=null===S||void 0===S?void 0:S.filter((function(e){return e.isInstructor})).map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),O=null!==(i=null===e||void 0===e||null===(r=e.sessionLicenses)||void 0===r?void 0:r.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==i?i:[],C=null===e||void 0===e||null===(a=e.sessionParticipant)||void 0===a?void 0:a.filter((function(e){var t;return!e.isInstructor&&(null!==(t=e.userId)&&void 0!==t?t:0)===D}));C&&0!==C.length&&(v=C&&(null===(f=C[0])||void 0===f?void 0:f.sessionParticipantStatusId),p=C&&(null===(y=C[0])||void 0===y?void 0:y.sessionParticipantId));var x=null!==(o=(null===e||void 0===e?void 0:e.sessionWaitlist)&&(null===e||void 0===e||null===(s=e.sessionWaitlist[0])||void 0===s?void 0:s.userId))&&void 0!==o?o:0,j=(null===R||void 0===R?void 0:R.userId)===D;return n.a.createElement(h.Box,{mt:3,key:e.sessionId},n.a.createElement(ta,{status:v,statusChip:n.a.createElement(ia,{status:v,isWaitlisted:0!==x&&x===D}),actionButton:n.a.createElement(h.Box,{mt:V?2:0},n.a.createElement(Yn,{status:v,isCancelled:void 0!==e.cancelledDate,isLapsed:!b,isOnDemand:null!==(l=null===e||void 0===e?void 0:e.isOnlineLearning)&&void 0!==l&&l,isWaitlistAllowed:null===e||void 0===e?void 0:e.isWaitlistingAllowed,registrationLimit:null!==(c=null===e||void 0===e?void 0:e.registrationLimit)&&void 0!==c?c:0,participantCount:null!==(d=null===e||void 0===e?void 0:e.participantCount)&&void 0!==d?d:0,isWaitlisted:0!==x&&x===D,isImpersonated:!j&&(U||Ne&&(R&&(null===R||void 0===R?void 0:R.userId))!==D),isTentativeAllowed:ke,onViewOnDemand:function(){return function(e){var t;e&&me.push("/course-player?sessionId=".concat(e),{prevPath:null!==(t=ye.pathname)&&void 0!==t?t:""})}(null===e||void 0===e?void 0:e.sessionId)},onRegistration:function(){var t,i,r,n;Le(null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,null!==(i=v)&&void 0!==i?i:0,null!==(r=p)&&void 0!==r?r:0,null!==(n=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==n&&n,!1)},onTentativeRegistration:function(){var t,i,r,n;Le(null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,null!==(i=v)&&void 0!==i?i:0,null!==(r=p)&&void 0!==r?r:0,null!==(n=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==n&&n,!0)},onWaitlist:function(){return De("Add",null===e||void 0===e?void 0:e.sessionId)},onCancelWaitlist:function(){return De("Cancel",null===e||void 0===e?void 0:e.sessionId)},onCancelRegistration:function(){return function(e,t){e&&t&&(N({message:"Are you sure you want to cancel your registration for this session?",title:"Cancel Registration",OnConfirm:function(){I([t],0,e).then((function(){H(!0),m("Your session registration has been canceled.")}))}}),H(!1))}(null===e||void 0===e?void 0:e.sessionId,p)}})),courseTitle:e.courseTitle,courseFormat:(null===e||void 0===e?void 0:e.courseFormat)||"",courseFormatPortalCategory:null===e||void 0===e?void 0:e.courseFormatPortalCategory,endDate:null===e||void 0===e?void 0:e.endDate,endTime:null===e||void 0===e?void 0:e.endTime,instructors:E,location:null===e||void 0===e?void 0:e.location,materialList:null===e||void 0===e?void 0:e.sessionMaterials,room:null===e||void 0===e?void 0:e.room,startDate:e.startDate,startTime:null===e||void 0===e?void 0:e.startTime,sessionTitle:e.title,sessionDescription:null===e||void 0===e?void 0:e.detail,sessionLicenses:O,sessionIsOnlineLearning:e.isOnlineLearning,timeZone:e.timeZone,isOnDemand:null!==(u=null===e||void 0===e?void 0:e.isOnlineLearning)&&void 0!==u&&u,duration:e.duration}))})):n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No sessions found.")))),n.a.createElement(h.Grid,{container:!0,alignment:"center"},n.a.createElement(h.Box,{pt:2},Je>1&&n.a.createElement(h.Pagination,{count:Je,defaultPage:pe||1,onChange:function(e,t){ue(!0),fe(t),setTimeout((function(){return ue(!1)}),1e3)}})))))))})),oa=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(n,a){var o,s=a().users,l=new p.tc({userId:null===(o=s.loggedUser)||void 0===o?void 0:o.userId,dateFrom:i,isOnDemand:e,hidePastSessions:r,pageOffset:t});return q.X.getAllUserCourseSessions(void 0,p.tc.fromJS(l)).then((function(e){return e})).catch((function(e){n(Object(M.b)(e))}))}},sa=Object(B.makeStyles)((function(e){var t=e.palette;return Object(B.createStyles)({title:{color:t.grey[500],fontWeight:600}})})),la=function(e){var t=e.courseClassYears,i=e.courseCompetencies,r=e.courseDepartments,a=e.courseLevels,o=e.coursePracticeAreas,s=e.courseTags,l=sa();return n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12}),i&&(null===i||void 0===i?void 0:i.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Competencies")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===i||void 0===i?void 0:i.join(", ")))),r&&(null===r||void 0===r?void 0:r.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Departments")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===r||void 0===r?void 0:r.join(", ")))),o&&(null===o||void 0===o?void 0:o.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Practice Areas")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===o||void 0===o?void 0:o.join(", ")))),a&&(null===a||void 0===a?void 0:a.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Levels")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===a||void 0===a?void 0:a.join(", ")))),t&&(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Class Year")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Typography,{variant:"body1"},null===t||void 0===t?void 0:t.join(", ")))),s&&(null===s||void 0===s?void 0:s.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},n.a.createElement(h.Typography,{variant:"body1",className:l.title},"Tags")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap"},null===s||void 0===s?void 0:s.map((function(e,t){return n.a.createElement(h.Box,{mr:1,mb:1,key:t},n.a.createElement(h.Chip,{label:null!==e&&void 0!==e?e:"",variant:"box"}))}))))))},ca=Object(r.createContext)({}),da=Object(s.b)((function(e){var t,i;return{calendarSessions:null===(t=e.sessions)||void 0===t?void 0:t.portalCalendarSessions,userId:null===(i=e.users.loggedUser)||void 0===i?void 0:i.userId,authenticatedUser:e.users.authenticatedUser,isImpersonated:e.users.isImpersonated,learningSettings:e.generalSettings.learningSettings}}),(function(e){return{addNotification:function(t){return e(M.a({message:t,variant:"success"}))},addUsersToWaitlist:function(t,i,r,n){return e(Wi(t,i,r,n))},deleteParticipant:function(t,i,r){return e(zi(t,i,r))},deleteFromSessionWaitlist:function(t,i){return e(Vi(t,i))},getCourse:function(t){return e(function(e){return function(t){return q.n.getCourseWithCategories(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getParticipantCount:function(t){return e(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i){var r=new p.oc({sessionId:e,filterBy:[],searchCriteria:[t?"":"AttendeeOnly"],sortBy:"lastName",page:1,pageSize:10});return q.R.getAll(void 0,p.oc.fromJS(r)).then((function(e){return e.recordCount})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t))},getPortalSessionsByMonth:function(t,i,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e(Ji(t,i,r,n,a))},getSession:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser;return q.X.getCourseSessionByParticipant(e,null===r||void 0===r?void 0:r.userId,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getUserFavoriteSession:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser,n=new p.id({userId:null===r||void 0===r?void 0:r.userId,sessionId:e});return q.S.getUserFavoriteSession(void 0,p.id.fromJS(n)).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}}(t))},favoriteUserSession:function(t,i){return e(function(e,t){return function(i,r){var n=r().users.loggedUser,a=null===n||void 0===n?void 0:n.userId;return t?q.S.createUserFavoriteReport(void 0,new p.fb({userId:a,sessionId:e})).then((function(){return!0})).catch((function(e){throw i(Object(M.b)(e)),e})):q.S.deleteUserFavoriteSession(void 0,new p.zb({userId:a,sessionId:e})).then((function(){return!0})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},registerParticipant:function(t,i,r,n){return e(qi(t,i,r,n))},showConfirmation:function(t){return e(Object($n.b)(t))},updateParticipant:function(t,i,r,n,a){return e(Mi(t,i,r,!1,n,a))},getLearningSettings:function(){return e(Object(vn.a)())}}}))((function(e){var t,i,a,o,s,l,u,v,f,m,y,g,b,S,E,I,O,C,x,j=e.addNotification,w=e.addUsersToWaitlist,P=e.courseId,T=e.deleteParticipant,A=e.deleteFromSessionWaitlist,N=e.getCourse,k=e.getPortalSessionsByMonth,D=e.getSession,J=e.getUserFavoriteSession,F=e.favoriteUserSession,B=e.onClose,R=e.open,U=e.registerParticipant,G=e.sessionId,q=e.showConfirmation,M=e.updateParticipant,z=e.userId,W=e.authenticatedUser,V=e.isImpersonated,_=e.getLearningSettings,Y=e.learningSettings,$=Object(r.useState)(),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(!1),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(d.k)(),se=Object(d.l)(),le=null!==(t=W&&W.userRole&&W.userRole[0].subRoleId)&&void 0!==t?t:0,ce=le===p.re.AdministrativeAssistant||le===p.re.Supervisor,de=((null===ee||void 0===ee?void 0:ee.sessionTypeId)===p.oe.Multipart||(null===ee||void 0===ee?void 0:ee.sessionTypeId)===p.oe.Recurring)&&(null===ee||void 0===ee?void 0:ee.title)!==(null===K||void 0===K?void 0:K.title),ue=Object(r.useContext)(ca),he=ue.categories,ve=ue.endDate,pe=ue.favoriteSessions,fe=ue.startDate,me=ue.setSessionParticipantStatus,ye=p.ke.Tentative,ge=p.ke.Registered,be=fn()(new Date).format("MM/DD/YYYY").toString(),Se=new Date(be),Ee=(null===ee||void 0===ee?void 0:ee.sessionParticipant)&&(null===ee||void 0===ee||null===(i=ee.sessionParticipant[0])||void 0===i?void 0:i.sessionParticipantStatusId),Ie=null===ee||void 0===ee||null===(a=ee.sessionParticipant)||void 0===a?void 0:a.filter((function(e){return!e.isInstructor})),Oe=Ie&&(null===(o=Ie[0])||void 0===o?void 0:o.sessionParticipantId),Ce=fn()(null===ee||void 0===ee?void 0:ee.startDate).format("MM/DD/YYYY").toString(),xe=new Date(Ce)>=Se,je=null!==(s=null===ee||void 0===ee?void 0:ee.sessionInstructors)&&void 0!==s?s:[],we=null===je||void 0===je?void 0:je.filter((function(e){return e.isInstructor})).map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),Pe=(null===ee||void 0===ee?void 0:ee.sessionWaitlist)&&(null===ee||void 0===ee||null===(l=ee.sessionWaitlist[0])||void 0===l?void 0:l.userId),Te=null!==(u=null===ee||void 0===ee||null===(v=ee.sessionLicenses)||void 0===v?void 0:v.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==u?u:[],Ae=null!==(f=null!=Y&&(null===(m=Y.find((function(e){return e.learningSettingEnumType===p.wd.AllowTentativeReg})))||void 0===m?void 0:m.valueBit))&&void 0!==f&&f;Object(r.useEffect)((function(){Q(void 0),N(P).then((function(e){Q(e)}))}),[P,N]),Object(r.useEffect)((function(){te(void 0),D(G).then((function(e){te(e)}))}),[G,D]),Object(r.useEffect)((function(){ae(!1),J(G).then((function(e){0===e.userFavoriteSessionId?ae(!1):ae(!0)}))}),[G,J,ae]),Object(r.useEffect)((function(){_()}),[_]);var Ne=function(){he&&ve&&fe&&k(fe,ve,he,pe)},ke=function(e){me&&me(e),Q(void 0),Ne(),N(P).then((function(e){Q(e)})),te(void 0),D(G).then((function(e){te(e)}))},De=function(e,t){q("Add"===e?{message:"Are you sure you want to be added to the session waitlist?",title:"Waitlist Confirmation",OnConfirm:function(){return z&&w([z],t).then((function(){ke(0),j("You have now been successfully added to session waitlist.")}))}}:{message:"Are you sure you want to be removed from the session waitlist?",title:"Waitlist Cancellation",OnConfirm:function(){return z&&A([z],t).then((function(){ke(0),j("You have now been removed from the session waitlist.")}))}})},Le=function(e,t,i,r,n){var a="",o="";0===t?(a="Are you sure you want to register for this session?",o="You have now been successfully registered for this session.",n&&(a="Are you sure you want to register as a tentative attendee for this session?",o="You have now been registered as tentative attendee for this session."),r&&(a="This session requires approval. We will send an email to confirm your registration."),q({message:a,title:"Confirm Registration",OnConfirm:function(){me&&me(0),z&&U([z],e,!1,n).then((function(){ke(ge),j(o)}))}})):t===ge?(a="Are you sure you want to update your registration status?",r&&(a="This session requires approval. We will send an email to confirm your registration."),q({message:a,title:"Confirm Status Update",OnConfirm:function(){me&&me(0),z&&M([i],ye,!1,e,!1).then((function(){ke(ye),j("Your registration status has been updated.")}))}})):(a="Are you sure you want to update your registration status?",r&&(a="This session requires approval. We will send an email to confirm your registration."),q({message:a,title:"Confirm Status Update",OnConfirm:function(){me&&me(0),z&&M([i],n?p.ke.Tentative:ge,!1,e,!1).then((function(){ke(ge),j("Your registration status has been updated.")}))}}))},Je=null===K||void 0===K||null===(y=K.courseCompetency)||void 0===y?void 0:y.map((function(e){return e.name})),Fe=null===K||void 0===K||null===(g=K.courseDepartment)||void 0===g?void 0:g.map((function(e){return e.name})),Be=null===K||void 0===K||null===(b=K.coursePracticeArea)||void 0===b?void 0:b.map((function(e){return e.name})),Re=null===K||void 0===K||null===(S=K.courseLevel)||void 0===S?void 0:S.map((function(e){return e.name})),Ue=null===K||void 0===K||null===(E=K.courseClassYear)||void 0===E?void 0:E.map((function(e){return e.name})),Ge=null===K||void 0===K||null===(I=K.courseTag)||void 0===I?void 0:I.map((function(e){return e.name})),qe=Je&&(null===Je||void 0===Je?void 0:Je.length)>0||Fe&&(null===Fe||void 0===Fe?void 0:Fe.length)>0||Be&&(null===Be||void 0===Be?void 0:Be.length)>0||Re&&(null===Re||void 0===Re?void 0:Re.length)>0||Ue&&(null===Ue||void 0===Ue?void 0:Ue.length)||Ge&&(null===Ge||void 0===Ge?void 0:Ge.length)>0;return n.a.createElement(h.SideDrawer,{size:"md",open:R,onClose:B,colorMode:"dark"},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:K&&ee?n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h5"},de?"".concat(null===K||void 0===K?void 0:K.title,": ").concat(null===ee||void 0===ee?void 0:ee.title):null===ee||void 0===ee?void 0:ee.title),!(null===ee||void 0===ee?void 0:ee.isOnlineLearning)&&n.a.createElement(h.Box,{ml:3},n.a.createElement(h.Tooltip,{title:"Session Favorite"},n.a.createElement("span",null,n.a.createElement(h.Checkbox,{onChange:function(e){F(G,e.target.checked).then((function(){Ne()})),ae(e.target.checked)},checked:ne,formikContext:!1,icon:n.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"Star",color:"secondary"}),checkedIcon:n.a.createElement(h.SystemIcon,{size:"sm",type:"solid",color:"secondary",icon:"Star"})})))))):n.a.createElement(h.Skeleton,{width:"400px",height:"32px"}),subtitle:K&&ee&&((null===K||void 0===K?void 0:K.providerName)||(null===K||void 0===K?void 0:K.courseIdLabel)||(null===ee||void 0===ee?void 0:ee.cost))?n.a.createElement(h.Column,null,(null===K||void 0===K?void 0:K.providerName)&&n.a.createElement(h.Typography,{variant:"subtitle2"},null===K||void 0===K?void 0:K.providerName),(null===K||void 0===K?void 0:K.courseIdLabel)&&(null===ee||void 0===ee?void 0:ee.cost)?n.a.createElement(h.Typography,{variant:"subtitle2"},null===K||void 0===K?void 0:K.courseIdLabel," | Cost $",null===ee||void 0===ee?void 0:ee.cost):n.a.createElement(h.Typography,{variant:"subtitle2"},null===K||void 0===K?void 0:K.courseIdLabel," ",(null===ee||void 0===ee?void 0:ee.cost)&&"Cost $".concat(null===ee||void 0===ee?void 0:ee.cost))):n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2"},n.a.createElement(h.Skeleton,{variant:"text",width:"120px"})),n.a.createElement(h.Typography,{variant:"subtitle2"},n.a.createElement(h.Skeleton,{variant:"text",width:"70px"})))}}),n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(n.a.Fragment,null,K&&ee?n.a.createElement(n.a.Fragment,null,(null===K||void 0===K?void 0:K.description)&&n.a.createElement(h.TextEditorView,{model:L(null===K||void 0===K?void 0:K.description)}),qe&&n.a.createElement(la,{courseClassYears:Ue,courseCompetencies:Je||[],courseDepartments:Fe,courseLevels:Re,coursePracticeAreas:Be,courseTags:Ge})):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement("br",null),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})),K&&ee?n.a.createElement(h.Box,{mt:3},n.a.createElement(ta,{status:Ee,statusChip:n.a.createElement(ia,{status:Ee,isWaitlisted:0!==Pe&&Pe===z}),actionButton:n.a.createElement(Yn,{status:Ee,isCancelled:void 0!==ee.cancelledDate,isLapsed:!xe,isOnDemand:null!==(O=null===ee||void 0===ee?void 0:ee.isOnlineLearning)&&void 0!==O&&O,isWaitlistAllowed:null===ee||void 0===ee?void 0:ee.isWaitlistingAllowed,registrationLimit:null!==(C=null===ee||void 0===ee?void 0:ee.registrationLimit)&&void 0!==C?C:0,participantCount:null!==(x=null===ee||void 0===ee?void 0:ee.participantCount)&&void 0!==x?x:0,isWaitlisted:0!==Pe&&Pe===z,isImpersonated:V||ce&&(W&&(null===W||void 0===W?void 0:W.userId))!==z,isTentativeAllowed:Ae,onViewOnDemand:function(){return function(){var e;G&&oe.push("/course-player?sessionId=".concat(G),{prevPath:null!==(e=se.pathname)&&void 0!==e?e:""})}()},onRegistration:function(){var e,t;return Le(null!==(e=null===ee||void 0===ee?void 0:ee.sessionId)&&void 0!==e?e:0,null!==Ee&&void 0!==Ee?Ee:0,null!==Oe&&void 0!==Oe?Oe:0,null!==(t=null===ee||void 0===ee?void 0:ee.isRegistrationApprovalNeeded)&&void 0!==t&&t,!1)},onTentativeRegistration:function(){var e,t;return Le(null!==(e=null===ee||void 0===ee?void 0:ee.sessionId)&&void 0!==e?e:0,null!==Ee&&void 0!==Ee?Ee:0,null!==Oe&&void 0!==Oe?Oe:0,null!==(t=null===ee||void 0===ee?void 0:ee.isRegistrationApprovalNeeded)&&void 0!==t&&t,!0)},onWaitlist:function(){var e;return De("Add",null!==(e=null===ee||void 0===ee?void 0:ee.sessionId)&&void 0!==e?e:0)},onCancelWaitlist:function(){var e;return De("Cancel",null!==(e=null===ee||void 0===ee?void 0:ee.sessionId)&&void 0!==e?e:0)},onCancelRegistration:function(){return e=null===ee||void 0===ee?void 0:ee.sessionId,t=Oe,void(e&&t&&q({message:"Are you sure you want to cancel your registration for this session?",title:"Cancel Registration",OnConfirm:function(){return T([t],0,e).then((function(){ke(0),j("Your session registration has been canceled.")}))}}));var e,t}}),courseTitle:ee.courseTitle,courseFormat:(null===ee||void 0===ee?void 0:ee.courseFormat)||"",courseFormatPortalCategory:null===ee||void 0===ee?void 0:ee.courseFormatPortalCategory,endDate:null===ee||void 0===ee?void 0:ee.endDate,endTime:null===ee||void 0===ee?void 0:ee.endTime,instructors:we,location:null===ee||void 0===ee?void 0:ee.location,materialList:null===ee||void 0===ee?void 0:ee.sessionMaterials,room:null===ee||void 0===ee?void 0:ee.room,startDate:ee.startDate,startTime:null===ee||void 0===ee?void 0:ee.startTime,sessionTitle:ee.title,sessionDescription:null===ee||void 0===ee?void 0:ee.detail,sessionLicenses:Te,sessionIsOnlineLearning:ee.isOnlineLearning,timeZone:ee.timeZone,duration:ee.duration})):n.a.createElement(h.Box,{mt:3},n.a.createElement(ta,{loading:!0})))))})),ua=function(e){var t=e.title,i=Object(r.useState)(!0),a=Object(c.a)(i,2),o=a[0],s=a[1],l=function(){var e=Object(r.useState)(null),t=Object(c.a)(e,2),i=t[0],n=t[1];return[i,Object(r.useCallback)((function(e){null!==e&&n(e.getBoundingClientRect())}),[])]}(),d=Object(c.a)(l,2)[1],u=Object(V.useTheme)(),v=Object(V.useMediaQuery)(u.breakpoints.down("sm")),p=Object(V.useMediaQuery)(u.breakpoints.down("xs"));return n.a.createElement("div",{ref:d},n.a.createElement(h.Typography,{variant:"body1",color:"primary"},o?n.a.createElement(h.Tooltip,{title:t},n.a.createElement("div",null,n.a.createElement(h.TruncatedMarkup,{lines:1,width:p?void 0:v?250:170,ellipsis:"...",onTruncate:function(e){return s(e)}},t))):t))},ha=Object(B.makeStyles)((function(e){return Object(B.createStyles)({dayHeader:{background:e.palette.primary.dark,color:e.palette.primary.light,lineHeight:e.spacing(.25)},dayCell:{fontSize:e.spacing(1.25),lineHeight:e.spacing(.05)},calendarView:{height:"100%",position:"relative"},eventView:{background:e.palette.grey[50],marginBottom:1}})})),va=Object(r.memo)((function(e){var t=e.calendarEvents,i=e.calendarRef,a=e.customHeaderToolbar,o=e.renderEventContent,s=e.isCalendarSessions,l=e.isSavedCalendarFilters,c=e.isNewUser,d=Object(r.useRef)(ha()),u=Object(r.useCallback)((function(){return a}),[a]),v=Object(r.useCallback)((function(){return o}),[o]),p=Object(r.useCallback)((function(){return t}),[t]);return Object(r.useMemo)((function(){return n.a.createElement(h.Calendar,{calendarRef:i,dayHeaderClassNames:d.current.dayHeader,viewClassNames:d.current.calendarView,eventClassNames:d.current.eventView,eventContent:v(),events:s&&l?c?[]:p():[],customHeaderToolbar:u(),handleWindowResize:!0,headerToolbar:!1,lazyFetching:!1,contentHeight:600})}),[p,u,i,s,c,l,v])})),pa=function(e){var t=e.size,i=e.status,r=e.type,a=e.color;switch(i){case 1:case 6:return n.a.createElement(h.SystemIcon,{icon:"CalendarDay",size:t,type:r,color:a});case 2:return n.a.createElement(h.SystemIcon,{icon:"Success",size:t,type:r,color:a});case 3:return n.a.createElement(h.SystemIcon,{icon:"Tentative",size:t,type:r,color:a});case 4:return n.a.createElement(h.SystemIcon,{icon:"Waitlist",size:t,type:r,color:a});default:return n.a.createElement(h.SystemIcon,{icon:"Success",size:t,type:r,color:a})}};pa.defaultProps={status:1,size:"sm",type:"light"};var fa=pa,ma=function(e){return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:.3,width:20,flex:1},e.icon),e.label)},ya=function(e,t){var i=e,r=i.courseFormat,a=i.courseFormatPortalCategory,o=i.endTime,s=i.location,l=i.provider,c=i.room,d=i.startTime,u=i.timeZone,v=i.title,f=i.endDate,m=i.startDate,y=i.sessionTypeId,g=i.courseTitle,b=(y===p.oe.Multipart||y===p.oe.Recurring)&&v!==g,S="".concat(g).concat(t?"":b?": ".concat(v):"");return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Row,null,n.a.createElement(h.Column,{crossAxisAlignment:"right"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},S||"Session: ".concat(Object(N.c)(m,"MMM DD, YYYY"))))),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"caption"},l)),n.a.createElement(h.Row,null,n.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},!t&&ma({icon:n.a.createElement(h.SystemIcon,{icon:"Clock"}),label:n.a.createElement(h.Typography,{variant:"caption",color:"secondary"},d?"".concat(d):"",o?" - ".concat(o):""," ",d||o?" ".concat(u,"; "):"","".concat(Object(N.c)(m,"MMM DD, YYYY")).concat(f?" - ".concat(Object(N.c)(f,"MMM DD, YYYY")):"")||"")}),!t&&s&&ma({icon:n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement(h.SystemIcon,{icon:"Location"})),label:n.a.createElement(h.Typography,{variant:"caption",color:"secondary"}," ".concat(null!==s&&void 0!==s?s:""," ").concat(null!==c&&void 0!==c?c:""))}),!t&&ma({icon:n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement(kn,{format:null!==a&&void 0!==a?a:""})),label:n.a.createElement(h.Typography,{variant:"caption"}," ".concat(r))}))))},ga=function(e){var t=e.calendarState,i=e.currentView,a=e.eventContent,o=e.handleEventClick,s=a.event.extendedProps.sessionParts,l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],f=Object(B.useDebounce)((function(){t&&t.getApi().setOption("_resize",void 0)}),500);return"month"===i||"week"===i?n.a.createElement(h.Box,{bgcolor:"#e6f8fc",paddingX:1,paddingY:1},u&&s.map((function(e){var t;return n.a.createElement(h.Link,{onClick:function(){return o(e)},key:e.sessionId,noWrap:!0},n.a.createElement(h.Tooltip,{title:ya(e),placement:"right-end"},n.a.createElement("span",null,n.a.createElement(h.Card,{variant:"outlined",style:{margin:4,padding:4}},n.a.createElement(h.Row,null,e.isInstructor&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.SystemIcon,{size:"xs",icon:"SystemUser",color:"primary"}),"\xa0"),(e.sessionParticipantStatusId===p.ke.Registered||e.sessionParticipantStatusId===p.ke.Tentative||e.sessionParticipantStatusId===p.ke.Validated||e.sessionParticipantStatusId===p.ke.Unexcused||e.isWaitlisted)&&n.a.createElement(fa,{status:e.isWaitlisted?4:e.sessionParticipantStatusId,size:"xs",type:"duotone",color:"primary"}),n.a.createElement(h.Spacer,{size:1}),n.a.createElement(h.Typography,{color:"primary",variant:"caption"},(null===(t=e.startTime)||void 0===t?void 0:t.toLowerCase())||"--:--"),n.a.createElement(h.Spacer,{size:1}),n.a.createElement(h.Typography,{color:"primary",variant:"caption",noWrap:!0},e.title))))))})),n.a.createElement(h.Box,{textAlign:"right"},n.a.createElement(h.Link,{onClick:function(){v(!u),f()}},n.a.createElement(h.Typography,{variant:"caption",color:"primary"},u?"Hide":"".concat(s.length," more"))))):n.a.createElement(n.a.Fragment,null)},ba=Object(r.memo)((function(e){var t=e.calendarState,i=e.currentView,a=e.eventContent,o=e.handleEventClick,s=a.event,l=s.backgroundColor,c=s.borderColor,d=s.extendedProps,u=d.sessionPart,v=d.sessionParts,f=d.multiSession,m=u&&"".concat(u.courseTitle," ").concat(f||u.courseTitle===u.title?"":"".concat(u.title)),y=u&&(u.sessionTypeId===p.oe.Single?"SingleSession":u.sessionTypeId===p.oe.Multipart?"MultiPartSessions":u.sessionTypeId===p.oe.Recurring?"Recur":u.sessionTypeId===p.oe.Simultaneous?"SimultaneousSessions":"");return Object(r.useMemo)((function(){return u?n.a.createElement(n.a.Fragment,null,("month"===i||"week"===i)&&n.a.createElement(h.Box,{display:"flex",bgcolor:l,borderColor:c,borderRadius:"2px",overflow:"hidden",p:1},n.a.createElement(h.Link,{onClick:function(){return o(u,v)},color:"primary",weight:"semi-bold",noWrap:!0},n.a.createElement(h.Tooltip,{title:ya(u,f),key:u.sessionId,placement:"right-end"},n.a.createElement("span",null,y&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.SystemIcon,{size:"xs",icon:y,type:"duotone"}),"\xa0"),!f&&u.isInstructor&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.SystemIcon,{size:"xs",icon:"SystemUser",type:"duotone"}),"\xa0"),(u.sessionParticipantStatusId===p.ke.Registered||u.sessionParticipantStatusId===p.ke.Tentative||u.sessionParticipantStatusId===p.ke.Validated||u.sessionParticipantStatusId===p.ke.Unexcused||u.isWaitlisted)&&!f&&n.a.createElement(fa,{status:u.isWaitlisted?4:u.sessionParticipantStatusId,size:"xs",type:"duotone",color:"primary"}),n.a.createElement(h.Spacer,{size:1}),null!==m&&void 0!==m?m:"")))),f&&n.a.createElement(ga,{calendarState:t,currentView:i,eventContent:a,handleEventClick:o})):n.a.createElement(n.a.Fragment,null)}),[l,c,t,i,y,m,a,o,f,u,v])})),Sa=i(29),Ea=function(e){var t=e.menu,i=e.icon,r=e.title,a=n.a.useState(null),o=Object(c.a)(a,2),s=o[0],l=o[1],d=function(e){e.stopPropagation(),l(e.currentTarget)},u=function(e){e.stopPropagation(),l(null)},v=function(e,t){e.stopPropagation(),t(),u(e)};return void 0===t||Object(x.isEqual)(null===t||void 0===t?void 0:t.filter((function(e){return!0===e.hidden})).length,null===t||void 0===t?void 0:t.length)?n.a.createElement(h.Tooltip,{title:"No action available"},n.a.createElement(h.Button,{"aria-controls":"action-menu","aria-haspopup":"true",color:"primary",variant:"text",size:"small",onClick:d,startIcon:i||n.a.createElement(h.SystemIcon,{icon:"Actions",size:"sm"})},r&&n.a.createElement(n.a.Fragment,null,r))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Button,{"aria-controls":"simple-menu","aria-haspopup":"true",color:"primary",variant:"text",size:"small",onClick:d,startIcon:i||n.a.createElement(h.SystemIcon,{icon:"Actions",size:"sm"})},r&&n.a.createElement(n.a.Fragment,null,r)),n.a.createElement(h.Menu,{id:"simple-menu",anchorEl:s,keepMounted:!0,open:Boolean(s),onClose:u},null===t||void 0===t?void 0:t.map((function(e,t){return e.hidden||n.a.createElement(h.Box,{key:"menu-".concat(t)},e.disabledTooltip&&e.disable?n.a.createElement(h.Tooltip,{title:e.disabledTooltip},n.a.createElement("span",null,n.a.createElement(h.MenuItem,{disabled:e.disable,onClick:function(t){return v(t,e.onClick)},key:"menu-item-".concat(t)},n.a.createElement(h.ListItemIcon,null,e.icon),n.a.createElement(h.ListItemText,{primary:e.label})))):n.a.createElement(h.MenuItem,{disabled:e.disable,onClick:function(t){return v(t,e.onClick)},key:"menu-item-".concat(t)},n.a.createElement(h.ListItemIcon,null,e.icon),n.a.createElement(h.ListItemText,{primary:e.label})))}))))},Ia=function(e){switch(e.type){case"filter-drawer":return n.a.createElement(h.Box,null,n.a.createElement(h.Box,{pb:2},n.a.createElement(h.Skeleton,{height:52,variant:"rect",style:{borderRadius:"4px"}})),n.a.createElement(h.Box,{pb:2},n.a.createElement(h.Skeleton,{height:52,variant:"rect",style:{borderRadius:"4px"}})),n.a.createElement(h.Box,{pb:2},n.a.createElement(h.Skeleton,{height:52,variant:"rect",style:{borderRadius:"4px"}})));default:return n.a.createElement(h.Skeleton,null)}},Oa=function(e){var t=new p.bc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.h.getAll(void 0,p.bc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},Ca=function(e){var t=new p.cc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.i.getAll(void 0,p.cc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},xa=function(e){var t=new p.dc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.p.getAll(void 0,p.dc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},ja=(i(509),i(253)),wa=function(e){return{type:ja.a,payload:e}},Pa=function(e){return{type:ja.b,payload:e}},Ta=function(e){return function(t){return t(wa(null)),t(Pa(!0)),q.v.getAllActive(void 0).then((function(i){var r,n,a;void 0!==e&&e.length>0?r=null===(n=i.courseFormats)||void 0===n?void 0:n.filter((function(t){return e.some((function(e){return e===t.courseFormatId}))})):r=null===(a=i.courseFormats)||void 0===a?void 0:a.filter((function(e){return e.isEnabled}));return t(wa(r)),t(Pa(!1)),r})).catch((function(){t(wa())}))}},Aa=function(e){var t=new p.hc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.C.getAll(void 0,p.hc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},Na=function(e){var t=new p.ic({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.G.getAll(void 0,p.ic.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},ka=function(e){var t=new p.lc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.L.getAll(void 0,p.lc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},Da=function(e,t){var i=new p.mc({filterBy:["isActive:true"],searchCriteria:!1===t?["isThirdParty"]:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.M.getAll(void 0,p.mc.fromJS(i)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},La=function(e){var t=new p.qc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return q.U.getAll(void 0,p.qc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},Ja=function(){return function(e){return q.E.getAllFirmLicenses(void 0).then((function(e){return e})).catch((function(t){throw e(Object(M.b)(t)),t}))}};function Fa(){Fa=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var Ba=Object(s.b)((function(e){var t;return{selectedSessionFilters:e.sessions.selectedSessionFilters,userName:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userName,courseFilters:e.portalSettings.courseFilters}}),(function(e){return{getAllClassYears:function(t){return e(Oa(t))},getAllCompetencies:function(t){return e(Ca(t))},getAllDepartments:function(t){return e(xa(t))},getAllLearningPlans:function(){return e(Fi())},getAllLevels:function(t){return e(Aa(t))},getAllLicenses:function(){return e(Ja())},getAllLocations:function(t){return e(Na(t))},getAllPracticeAreas:function(t){return e(ka(t))},getAllProviders:function(t){return e(Da(t))},getAllTags:function(t){return e(La(t))},getAllFormats:function(t){return e(Ta(t))},saveCalendarFilter:function(t,i){return e(Ri(t,i))},validateCalendarSavedFilterName:function(t,i,r){return e(Ui(t,i,r))}}}))((function(e){var t,i=e.duplicateMode,a=e.getAllClassYears,o=e.getAllCompetencies,s=e.getAllDepartments,d=e.getAllLearningPlans,u=e.getAllLevels,v=e.getAllLicenses,p=e.getAllLocations,f=e.getAllPracticeAreas,m=e.getAllProviders,y=e.getAllTags,g=e.getAllFormats,b=e.onClose,S=e.onSaved,E=e.open,I=e.saveCalendarFilter,O=e.selectedFilter,C=e.selectedSessionFilters,x=e.userName,j=e.validateCalendarSavedFilterName,w=e.courseFilters,P=Object(r.useState)(void 0),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)(void 0),D=Object(c.a)(k,2),L=D[0],F=D[1],B=Object(r.useState)(void 0),R=Object(c.a)(B,2),U=R[0],G=R[1],q=Object(r.useState)(void 0),M=Object(c.a)(q,2),z=M[0],W=M[1],V=Object(r.useState)(void 0),_=Object(c.a)(V,2),Y=_[0],$=_[1],H=Object(r.useState)(void 0),K=Object(c.a)(H,2),Q=K[0],Z=K[1],X=Object(r.useState)(void 0),ee=Object(c.a)(X,2),te=ee[0],ie=ee[1],re=Object(r.useState)(void 0),ne=Object(c.a)(re,2),ae=ne[0],oe=ne[1],se=Object(r.useState)(void 0),le=Object(c.a)(se,2),ce=le[0],de=le[1],ue=Object(r.useState)(void 0),he=Object(c.a)(ue,2),ve=he[0],pe=he[1],fe=Object(r.useState)(void 0),me=Object(c.a)(fe,2),ye=me[0],ge=me[1],be=Object(r.useState)([]),Se=Object(c.a)(be,2),Ee=Se[0],Ie=Se[1],Oe=Object(r.useState)(),Ce=Object(c.a)(Oe,2),xe=Ce[0],je=Ce[1],we=Object(r.useState)(!1),Pe=Object(c.a)(we,2),Te=Pe[0],Ae=Pe[1],Ne=Object(r.useState)(!0),ke=Object(c.a)(Ne,2),De=ke[0],Le=ke[1],Je=Object(r.useState)(!1),Fe=Object(c.a)(Je,2),Be=Fe[0],Re=Fe[1],Ue=Object(r.useState)(!1),Ge=Object(c.a)(Ue,2),qe=Ge[0],Me=Ge[1],ze=Object(r.useCallback)((function(){if(w){var e,t,i,r,n,l,c,h,b,S=null!==(e=w.departmentIds.map(String))&&void 0!==e?e:[],E=null!==(t=w.locationIds.map(String))&&void 0!==t?t:[],I=null!==(i=w.practiceAreaIds.map(String))&&void 0!==i?i:[],O=null!==(r=w.levelIds.map(String))&&void 0!==r?r:[],C=null!==(n=w.providerIds.map(String))&&void 0!==n?n:[],x=null!==(l=w.competencyIds.map(String))&&void 0!==l?l:[],j=null!==(c=w.classYearIds.map(String))&&void 0!==c?c:[],P=null!==(h=w.tagIds.map(String))&&void 0!==h?h:[],T=null!==(b=w.courseFormatIds)&&void 0!==b?b:[];a(j).then((function(e){N(null===e||void 0===e?void 0:e.classYears)})),o(x).then((function(e){F(null===e||void 0===e?void 0:e.competencies)})),s(S).then((function(e){G(null===e||void 0===e?void 0:e.departments)})),d().then((function(e){W(e)})),u(O).then((function(e){$(null===e||void 0===e?void 0:e.levels)})),v().then((function(e){Z(null===e||void 0===e?void 0:e.licenses)})),p(E).then((function(e){ie(null===e||void 0===e?void 0:e.locations)})),f(I).then((function(e){oe(null===e||void 0===e?void 0:e.practiceAreas)})),m(C).then((function(e){de(null===e||void 0===e?void 0:e.providers)})),y(P).then((function(e){pe(null===e||void 0===e?void 0:e.tags)})),g(T).then((function(e){ge(e||[])}))}}),[w,a,o,s,g,d,u,v,p,f,m,y]);Object(r.useEffect)((function(){ze()}),[ze]),Object(r.useEffect)((function(){Ae(void 0===ce||void 0===Q||void 0===L||void 0===ve||void 0===z||void 0===te||void 0===U||void 0===ae||void 0===Y||void 0===A||void 0===ye)}),[A,L,U,z,Y,Q,te,ae,ce,Ae,ve,ye]),Object(r.useEffect)((function(){if(O){var e,t=null===O||void 0===O||null===(e=O.filter)||void 0===e?void 0:e.split("|").filter((function(e){return"SessionLicense[or]"===e.split(": ")[0]}));(null===t||void 0===t?void 0:t.toString())!==(null===Ee||void 0===Ee?void 0:Ee.toString())&&Ie(t)}}),[O,C,Ee,Ie]),Object(r.useEffect)((function(){if(Ee){var e,t=Array();Ee.forEach((function(e){var i=e.split(": ")[1];t.push(parseInt(i,10))}));var i=null!==(e=null===Q||void 0===Q?void 0:Q.filter((function(e){return t.includes(e.licenseId)})))&&void 0!==e?e:[];je(i)}else je(void 0)}),[Q,Ee,je]);var We=[{label:"Yes",value:"1"},{label:"No",value:"2"}],Ve=function(e,t,i){var r,n=Array(),a=null===O||void 0===O||null===(r=O.filter)||void 0===r?void 0:r.split("|");if(a){var o=a.find((function(t){return t.includes("".concat(e))}));if(o)o.split(": ")[1].split(",").forEach((function(e){i&&i.forEach((function(i){parseInt(e,10)===i["".concat(t)]&&n.push(i)}))}))}return n},_e={initialValues:{courseProviders:Ve("ProviderIds","providerId",ce),courseClassYears:Ve("CourseClassYear","classYearId",A),courseCompetencies:Ve("CourseCompetency","competencyId",L),courseDepartments:Ve("CourseDepartment","departmentId",U),courseLevels:Ve("CourseLevel","levelId",Y),coursePracticeAreas:Ve("CoursePracticeArea","practiceAreaId",ae),courseTags:Ve("CourseTag","tagId",ve),courseLearningPlans:Ve("LearningPlan","learningPlanId",z),jurisdictions:function(e){var t,i=null===O||void 0===O||null===(t=O.filter)||void 0===t?void 0:t.split("|"),r=null===i||void 0===i?void 0:i.find((function(e){return e.includes("SessionLicense")}));if(r){var n=r.split(": ")[1];return e&&(null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===parseInt(n,10)})))}return[]}(Q),licenseCreditsList:function(){var e,t={},i=null===O||void 0===O||null===(e=O.filter)||void 0===e?void 0:e.split("|");return xe&&(null===xe||void 0===xe?void 0:xe.length)>0&&xe.forEach((function(e){var r=null===i||void 0===i?void 0:i.find((function(t){return t.includes("Credit: ".concat(e.licenseId))}));if(r){var n={};r.split(":")[1].split(" ".concat(e.licenseId,"_"))[1].split("_").forEach((function(e){var t=e.split("-");n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(t[0]),t[1]))}));var a={};e.licenseCredits&&e.licenseCredits.forEach((function(t){var i,r=n[null!==(i=t.creditId)&&void 0!==i?i:0];r=void 0===r?null:parseFloat(r.toString()),a=Object(J.a)(Object(J.a)({},a),{},Object(Sa.a)({},"".concat(e.licenseId,"_").concat(t.creditId),r))})),t=Object(J.a)(Object(J.a)({},t),a)}})),t}(),sessionInstructor:null!==(t=function(e){var t,i=null===O||void 0===O||null===(t=O.filter)||void 0===t?void 0:t.split("|");if(i){var r=i.find((function(t){return t.includes("".concat(e))}));if(r)return"SessionInstructor"===e?r.split(":")[1]:r.split(": ")[1]}return null}("SessionInstructor"))&&void 0!==t?t:"",sessionLocations:Ve("SessionLocation","locationId",te),sessionFormats:Ve("SessionFormat","courseFormatId",ye),isDefault:i?"2":(null===O||void 0===O?void 0:O.isDefault)?"1":"2",name:null===O||void 0===O?void 0:O.name},validationSchema:Object(yn.object)().shape({courseProviders:Object(yn.array)().nullable(),courseClassYears:Object(yn.array)().nullable(),courseCompetencies:Object(yn.array)().nullable(),courseDepartments:Object(yn.array)().nullable(),courseLevels:Object(yn.array)().nullable(),coursePracticeAreas:Object(yn.array)().nullable(),courseTags:Object(yn.array)().nullable(),courseLearningPlans:Object(yn.array)().nullable(),jurisdictions:Object(yn.array)().notRequired().nullable(),sessionInstructor:Object(yn.string)().nullable(),sessionLocations:Object(yn.array)().nullable(),sessionFormats:Object(yn.array)().notRequired(),name:Object(yn.string)().required("Required").max(1e3,"Too long!").trim().test("check-duplicate-filter-name","This name already exists.",function(){var e=Object(l.a)(Fa().mark((function e(t){var r,n;return Fa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",j(i?0:null!==(r=null===O||void 0===O?void 0:O.calendarSavedFilterId)&&void 0!==r?r:0,t,i?null!==x&&void 0!==x?x:"":null!==(n=null===O||void 0===O?void 0:O.createdBy)&&void 0!==n?n:"").then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),isDefault:Object(yn.string)()}),onSubmit:function(e,t){var r,n=e.courseProviders,a=e.courseClassYears,o=e.courseCompetencies,s=e.courseDepartments,l=e.courseLevels,d=e.coursePracticeAreas,u=e.courseTags,h=e.courseLearningPlans,v=e.jurisdictions,p=e.licenseCreditsList,f=e.sessionInstructor,m=e.sessionLocations,y=e.sessionFormats,g=e.isDefault,E=e.name,C=Array();if(n.length>0){var j="ProviderIds: ";n.forEach((function(e){var t,i=null!==(t=e.providerId)&&void 0!==t?t:0;j=j.concat(i.toString(),",")})),C.push(j.slice(0,-1))}if(a.length>0){var w="CourseClassYear[or]: ";a.forEach((function(e){var t,i=null!==(t=e.classYearId)&&void 0!==t?t:0;w=w.concat(i.toString(),",")})),C.push(w.slice(0,-1))}if(o.length>0){var P="CourseCompetency[or]: ";o.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;P=P.concat(i.toString(),",")})),C.push(P.slice(0,-1))}if(s.length>0){var T="CourseDepartment[or]: ";s.forEach((function(e){var t,i=null!==(t=e.departmentId)&&void 0!==t?t:0;T=T.concat(i.toString(),",")})),C.push(T.slice(0,-1))}if(l.length>0){var A="CourseLevel[or]: ";l.forEach((function(e){var t,i=null!==(t=e.levelId)&&void 0!==t?t:0;A=A.concat(i.toString(),",")})),C.push(A.slice(0,-1))}if(d.length>0){var N="CoursePracticeArea[or]: ";d.forEach((function(e){var t,i=null!==(t=e.practiceAreaId)&&void 0!==t?t:0;N=N.concat(i.toString(),",")})),C.push(N.slice(0,-1))}if(u.length>0){var k="CourseTag[or]: ";u.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;k=k.concat(i.toString(),",")})),C.push(k.slice(0,-1))}if(h.length>0){var D="LearningPlan[or]: ";h.forEach((function(e){var t,i=null!==(t=e.learningPlanId)&&void 0!==t?t:0;D=D.concat(i.toString(),",")})),C.push(D.slice(0,-1))}if(m.length>0){var L="SessionLocation: ";m.forEach((function(e){var t,i=null!==(t=e.locationId)&&void 0!==t?t:0;L=L.concat(i.toString(),",")})),C.push(L.slice(0,-1))}if(Object.keys(v).length>0){var F="SessionLicense[or]: ".concat(v.licenseId),B=Array(),R=xe&&(null===xe||void 0===xe?void 0:xe.map((function(e){return e.licenseId}))),U={};C.push(F),p&&(Object.keys(p).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===v||void 0===v?void 0:v.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=p[e];if(""!==r&&null!==r){var n=parseFloat(r);U=Object(J.a)(Object(J.a)({},U),{},Object(Sa.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(n)))}}})),R&&R.forEach((function(e){var t="Credit: ".concat(e),i=t;Object.entries(U).filter((function(t){var i=Object(c.a)(t,2)[1];return parseInt(i.split("|")[0],10)===e})).forEach((function(e){var i=Object(c.a)(e,2)[1];t+="_".concat(i.split("|")[1])})),i===t?B.push(e):C.push(t)})))}if(""!==f&&C.push("SessionInstructor:".concat(f)),y.length>0){var G="SessionFormat: ";y.forEach((function(e){var t,i=null!==(t=e.courseFormatId)&&void 0!==t?t:0;G=G.concat(i.toString(),",")})),C.push(G.slice(0,-1))}Le(!0);var q=Object(J.a)(Object(J.a)({},O),{},{calendarSavedFilterId:null!==(r=null===O||void 0===O?void 0:O.calendarSavedFilterId)&&void 0!==r?r:void 0,name:String(E).trim(),isPublic:!1,isReadOnly:!0,isDefault:"1"===g,createdBy:i?x:null===O||void 0===O?void 0:O.createdBy,filter:C.length>0?C.join("|"):"[]"});I(q,!i).then((function(e){t.setSubmitting(!1),e&&(b(),S(e))}))}};return n.a.createElement(h.SideDrawer,{size:"sm",open:E,onClose:function(){Le(!0),b()}},n.a.createElement(mn.Formik,{initialValues:_e.initialValues,validationSchema:_e.validationSchema,onSubmit:_e.onSubmit,enableReinitialize:De},(function(e){return n.a.createElement(h.Form,{id:"edit-saved-calendar-filter",formikContext:!0},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:i?"Add Filter":"Edit Filters"},widgets:n.a.createElement(h.Typography,{variant:"body1"},"for ",null===O||void 0===O?void 0:O.name)}),n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},Te?n.a.createElement(Ia,{type:"filter-drawer"}):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12}),n.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.TextField,{required:!0,fullWidth:!0,id:"name",label:"Filter Name",formikContext:!0})),n.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.RadioGroup,{groupLabel:"Set as the default filter?",options:We,id:"isDefault",orientation:"horizontal",formikContext:!0,disabled:!i&&(null===O||void 0===O?void 0:O.isDefault)})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:ce||[]})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:ye||[],formikContext:!0,optionId:"courseFormatId",groupBy:function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"}})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.ComboBox,{label:"Jurisdiction",id:"jurisdictions",fullWidth:!0,optionId:"licenseId",options:Q,onChange:function(t,i){if(Le(!1),null===i||void 0===i)e.setFieldValue("jurisdictions",[]),Re(!0);else{var r,n=null!==(r=null===Q||void 0===Q?void 0:Q.filter((function(e){return i.licenseId&&i.licenseId===e.licenseId})))&&void 0!==r?r:[];je(n),Re(!1)}},onInputChange:function(t,i){""===i?(e.setFieldValue("jurisdictions",[]),Re(!0),Le(!1)):Re(!1)}})),!Be&&(null===xe||void 0===xe?void 0:xe.map((function(e){var t;return n.a.createElement(h.Grid,{key:e.licenseId,item:!0,sm:12,md:12,lg:12},n.a.createElement(h.Grid,{container:!0,spacing:"form",key:"license_".concat(e.licenseId,"_info")},n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(t=e.licenseCredits)||void 0===t?void 0:t.map((function(t){return n.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(e.licenseId,"_").concat(t.creditId)},n.a.createElement(h.Box,{mt:1,ml:1,mr:1},n.a.createElement(h.TextField,{id:"licenseCreditsList.".concat(e.licenseId,"_").concat(t.creditId),label:t.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))})))))})))),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"button"},n.a.createElement("b",null,"Advanced Search Options"))),n.a.createElement(h.Expanded,{flex:0,ml:1},n.a.createElement(h.IconButton,{onClick:function(){Me(!qe)}},qe?n.a.createElement(h.SystemIcon,{icon:"CollapseVertical",size:"md"}):n.a.createElement(h.SystemIcon,{icon:"ExpandVertical",size:"md"}))))),n.a.createElement(h.Collapse,{in:qe},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:L||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:ve||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:z||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:te||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,optionId:"departmentId",options:U||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:ae||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:Y||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:A||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"})))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){return b()},fullWidth:!0},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{loading:e.isSubmitting,variant:"contained",type:"submit",color:"primary",fullWidth:!0},"Save")))))})))}));function Ra(){Ra=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var Ua=Object(s.b)((function(e){var t;return{userName:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userName}}),(function(e){return{saveCalendarFilter:function(t,i){return e(Ri(t,i))},validateCalendarSavedFilterName:function(t,i,r){return e(Ui(t,i,r))}}}))((function(e){var t=e.onClose,i=e.onSaved,r=e.open,a=e.title,o=e.editMode,s=e.saveCalendarFilter,c=e.selectedFilter,d=e.userName,u=e.validateCalendarSavedFilterName,v=[{label:"Yes",value:"1"},{label:"No",value:"2"}],p={initialValues:{name:o?null===c||void 0===c?void 0:c.name:"",isDefault:o&&(null===c||void 0===c?void 0:c.isDefault)?"1":"2"},validationSchema:Object(yn.object)().shape({name:Object(yn.string)().required("Required").max(1e3,"Too long!").trim().test("check-duplicate-filter-name","This name already exists.",function(){var e=Object(l.a)(Ra().mark((function e(t){return Ra().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u(o&&(null===c||void 0===c?void 0:c.calendarSavedFilterId)||0,t,o?(null===c||void 0===c?void 0:c.createdBy)||"":d||"").then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),isDefault:Object(yn.string)()}),onSubmit:function(e,r){var n=e.name,a=e.isDefault,l=Object(J.a)(Object(J.a)({},c),{},{calendarSavedFilterId:o?null===c||void 0===c?void 0:c.calendarSavedFilterId:void 0,name:String(n).trim(),isPublic:!1,isReadOnly:!0,isDefault:"1"===a,createdBy:o?null===c||void 0===c?void 0:c.createdBy:d,filter:null===c||void 0===c?void 0:c.filter});s(l,o).then((function(e){r.setSubmitting(!1),e&&(t(),i(e))}))}};return n.a.createElement(h.Dialog,{maxWidth:"sm",fullWidth:!0,color:"default",open:r,onClose:t},n.a.createElement(mn.Formik,{initialValues:p.initialValues,validationSchema:p.validationSchema,onSubmit:p.onSubmit},(function(e){return n.a.createElement(h.Form,{id:"calendar-save-filter",formikContext:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:a,onClose:t}}),n.a.createElement(un.DialogBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:2},n.a.createElement(h.Grid,{item:!0,xs:12,key:"caption",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"The saved filters will be available from the calendar screen and from the 'Saved Filters' tab within Filters.")),n.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Filter Name"})),n.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"Set as the default filter?",options:v,id:"isDefault",orientation:"horizontal"})))),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){t()},fullWidth:!0},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Save")))),n.a.createElement(h.Box,{mb:3}))})))})),Ga=Object(s.b)((function(e){return{savedCalendarFilters:e.sessions.savedCalendarFilters,selectedSessionFilters:e.sessions.selectedSessionFilters,selectedCalendarFilterId:e.sessions.savedCalendarFilterId,sessionCalRequestBody:e.sessions.portalSessionFilterRequestBody,selectedFirmLicenses:e.licenses.selectedFirmLicenses,courseFilters:e.portalSettings.courseFilters}}),(function(e){return{confirmDialog:function(t){return e(Object($n.b)(t))},deleteSavedFilter:function(t){return e(function(e){return function(t,i){var r=i().sessions.savedCalendarFilterId;q.e.delete(void 0,e).then((function(){t(Object(M.a)({message:"Saved filter successfully deleted.",variant:"success"})),void 0!==e.find((function(e){return e===r}))&&t(ki(-1)),t(Bi(!1))})).catch((function(e){e.errors&&e.errors.SavedFilterDefault&&e.errors.SavedFilterDefault.length>0?t(Object(M.b)(e.errors.SavedFilterDefault[0])):t(Object(M.b)(e.title))}))}}(t))},getAllClassYears:function(t){return e(Oa(t))},getAllCompetencies:function(t){return e(Ca(t))},getAllDepartments:function(t){return e(xa(t))},getAllLearningPlans:function(){return e(Fi())},getAllLevels:function(t){return e(Aa(t))},getAllLicenses:function(){return e(Ja())},getAllLocations:function(t){return e(Na(t))},getAllPracticeAreas:function(t){return e(ka(t))},getAllProviders:function(t){return e(Da(t))},getAllTags:function(t){return e(La(t))},getAllFormats:function(t){return e(Ta(t))},getPortalSessionsByMonth:function(t,i,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e(Ji(t,i,r,n))},setRequestBody:function(t){return e(Ai(t))},setCalendarSavedFilterDefault:function(t){return e((i=t,function(e,t){var r=t().users.loggedUser;return e(Ni(void 0)),q.O.setSavedFilterDefault(void 0,p.pe.fromJS({userId:null===r||void 0===r?void 0:r.userId,calendarSavedFilterId:i.calendarSavedFilterId})).then((function(){e(Object(M.a)({message:"".concat(i.name," have been set to default."),variant:"success"})),e(Bi(!1))})).catch((function(t){e(Object(M.b)(t))}))}));var i},setSelectedFirmLicenses:function(t){return e({type:"SET_SELECTED_FIRM_LICENSES",payload:t})},setSelectedCalendarFilterId:function(t){e(ki(t))},setSelectedSessionFilters:function(t){return e(Di(t))}}}))((function(e){var t,i,a=e.filterOpen,o=e.confirmDialog,s=e.deleteSavedFilter,l=e.endDate,d=e.isFavorite,u=e.getAllClassYears,v=e.getAllCompetencies,p=e.getAllDepartments,f=e.getAllLearningPlans,m=e.getAllLevels,y=e.getAllLicenses,g=e.getAllLocations,b=e.getAllPracticeAreas,S=e.getAllProviders,E=e.getAllTags,I=e.getAllFormats,O=e.getPortalSessionsByMonth,C=e.onSaveFilterSelection,x=e.portalCategory,j=e.savedCalendarFilters,w=e.selectedCalendarFilterId,P=e.selectedFirmLicenses,T=e.selectedSessionFilters,A=e.sessionCalRequestBody,N=e.setCalendarSavedFilterDefault,k=e.setRequestBody,D=e.setSelectedCalendarFilterId,L=e.setSelectedFirmLicenses,F=e.setSelectedSessionFilters,B=e.onClose,R=e.startDate,U=e.courseFilters,G=Object(r.useState)(void 0),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(void 0),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)(void 0),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(void 0),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(void 0),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)(void 0),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)(void 0),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)(void 0),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(void 0),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)(void 0),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)(void 0),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=Object(r.useState)(!1),Ne=Object(c.a)(Ae,2),ke=Ne[0],De=Ne[1],Le=Object(r.useState)(void 0),Je=Object(c.a)(Le,2),Fe=Je[0],Be=Je[1],Re=Object(r.useState)(!1),Ue=Object(c.a)(Re,2),Ge=Ue[0],qe=Ue[1],Me=Object(r.useState)(!1),ze=Object(c.a)(Me,2),We=ze[0],Ve=ze[1],_e=Object(r.useState)(!1),Ye=Object(c.a)(_e,2),$e=Ye[0],He=Ye[1],Ke=Object(r.useState)(!1),Qe=Object(c.a)(Ke,2),Ze=Qe[0],Xe=Qe[1],et=Object(r.useState)(!1),tt=Object(c.a)(et,2),it=tt[0],rt=tt[1],nt=Object(r.useState)(void 0),at=Object(c.a)(nt,2),ot=at[0],st=at[1],lt=Object(r.useState)(!1),ct=Object(c.a)(lt,2),dt=ct[0],ut=ct[1],ht=Object(r.useState)(!0),vt=Object(c.a)(ht,2),pt=vt[0],ft=vt[1],mt=Object(r.useState)(!1),yt=Object(c.a)(mt,2),gt=yt[0],bt=yt[1],St=Object(r.useRef)(!0),Et=null===j||void 0===j||null===(t=j.find((function(e){return e.isDefault})))||void 0===t?void 0:t.calendarSavedFilterId,It=Object(r.useCallback)((function(){if(U){var e=U?U.departmentIds.map(String):[],t=U?U.locationIds.map(String):[],i=U?U.practiceAreaIds.map(String):[],r=U?U.levelIds.map(String):[],n=U?U.providerIds.map(String):[],a=U?U.competencyIds.map(String):[],o=U?U.classYearIds.map(String):[],s=U?U.tagIds.map(String):[],l=U?U.courseFormatIds:[];u(o).then((function(e){z(null===e||void 0===e?void 0:e.classYears)})),v(a).then((function(e){Y(null===e||void 0===e?void 0:e.competencies)})),p(e).then((function(e){Q(null===e||void 0===e?void 0:e.departments)})),f().then((function(e){te(e)})),m(r).then((function(e){ae(null===e||void 0===e?void 0:e.levels)})),y().then((function(e){ce(null===e||void 0===e?void 0:e.licenses)})),g(t).then((function(e){ve(null===e||void 0===e?void 0:e.locations)})),b(i).then((function(e){ye(null===e||void 0===e?void 0:e.practiceAreas)})),S(n).then((function(e){Ee(null===e||void 0===e?void 0:e.providers)})),E(s).then((function(e){xe(null===e||void 0===e?void 0:e.tags)})),I(l).then((function(e){Te(e.filter((function(e){return"On-demand"!==e.portalCategory}))||[])})),St.current=!1}}),[U,u,v,p,I,f,m,y,g,b,S,E]);Object(r.useEffect)((function(){St.current&&It()}),[It]),Object(r.useEffect)((function(){a&&ut(void 0===Se||void 0===le||void 0===_||void 0===Ce||void 0===ee||void 0===he||void 0===K||void 0===me||void 0===ne||void 0===M||void 0===Pe)}),[M,_,K,a,ee,ne,le,he,me,Se,Ce,Pe]),Object(r.useEffect)((function(){if(a){var e=null===T||void 0===T?void 0:T.filter((function(e){return"SessionLicense[or]"===e.split(": ")[0]}));(null===e||void 0===e?void 0:e.toString())!==(null===Fe||void 0===Fe?void 0:Fe.toString())&&Be(e)}}),[a,T,Fe,Be]),Object(r.useEffect)((function(){if(a)if(Fe){var e,t=Array();Fe.forEach((function(e){var i=e.split(": ")[1];t.push(parseInt(i,10))}));var i=null!==(e=null===le||void 0===le?void 0:le.filter((function(e){return t.includes(e.licenseId)})))&&void 0!==e?e:[];L(i)}else L(null)}),[le,a,Fe,L]);var Ot=function(e,t,i){var r=[],n=null===T||void 0===T?void 0:T.find((function(t){return t.includes("".concat(e))}));n&&n.split(": ")[1].split(",").forEach((function(e){i&&i.forEach((function(i){parseInt(e,10)===i["".concat(t)]&&r.push(i)}))}));return r},Ct={initialValues:{courseProviders:Ot("ProviderIds","providerId",Se),courseClassYears:Ot("CourseClassYear","classYearId",M),courseCompetencies:Ot("CourseCompetency","competencyId",_),courseDepartments:Ot("CourseDepartment","departmentId",K),courseLevels:Ot("CourseLevel","levelId",ne),coursePracticeAreas:Ot("CoursePracticeArea","practiceAreaId",me),courseTags:Ot("CourseTag","tagId",Ce),courseLearningPlans:Ot("LearningPlan","learningPlanId",ee),jurisdictions:function(e){var t=null===T||void 0===T?void 0:T.find((function(e){return e.includes("SessionLicense")}));if(t){var i=t.split(": ")[1];return e&&(null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===parseInt(i,10)})))}return[]}(le),licenseCreditsList:function(){var e={};return P&&(null===P||void 0===P?void 0:P.length)>0&&P.forEach((function(t){var i=null===T||void 0===T?void 0:T.find((function(e){return e.includes("Credit: ".concat(t.licenseId))}));if(i){var r={};i.split(":")[1].split(" ".concat(t.licenseId,"_"))[1].split("_").forEach((function(e){var t=e.split("-");r=Object(J.a)(Object(J.a)({},r),{},Object(Sa.a)({},"".concat(t[0]),t[1]))}));var n={};t.licenseCredits&&t.licenseCredits.forEach((function(e){var i,a=r[null!==(i=e.creditId)&&void 0!==i?i:0];a=void 0===a?null:parseFloat(a.toString()),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(t.licenseId,"_").concat(e.creditId),a))})),e=Object(J.a)(Object(J.a)({},e),n)}})),e}(),sessionInstructor:null!==(i=function(e){var t=null===T||void 0===T?void 0:T.find((function(t){return t.includes("".concat(e))}));return t?"SessionInstructor"===e?t.split(":")[1]:t.split(": ")[1]:null}("SessionInstructor"))&&void 0!==i?i:"",sessionLocations:Ot("SessionLocation","locationId",he),sessionFormats:Ot("SessionFormat","courseFormatId",Pe)},validationSchema:Object(yn.object)().shape({courseProviders:Object(yn.array)().nullable(),courseClassYears:Object(yn.array)().nullable(),courseCompetencies:Object(yn.array)().nullable(),courseDepartments:Object(yn.array)().nullable(),courseLevels:Object(yn.array)().nullable(),coursePracticeAreas:Object(yn.array)().nullable(),courseTags:Object(yn.array)().nullable(),courseLearningPlans:Object(yn.array)().nullable(),jurisdictions:Object(yn.array)().notRequired().nullable(),sessionInstructor:Object(yn.string)().nullable(),sessionLocations:Object(yn.array)().nullable(),sessionFormats:Object(yn.array)().notRequired()}),onSubmit:function(e,t){var i=e.courseProviders,r=e.courseClassYears,n=e.courseCompetencies,a=e.courseDepartments,o=e.courseLevels,s=e.coursePracticeAreas,u=e.courseTags,h=e.courseLearningPlans,v=e.jurisdictions,p=e.licenseCreditsList,f=e.sessionInstructor,m=e.sessionLocations,y=e.sessionFormats,g=Array();if(i.length>0){var b="ProviderIds: ";i.forEach((function(e){var t,i=null!==(t=e.providerId)&&void 0!==t?t:0;b=b.concat(i.toString(),",")})),g.push(b.slice(0,-1))}if(r.length>0){var S="CourseClassYear[or]: ";r.forEach((function(e){var t,i=null!==(t=e.classYearId)&&void 0!==t?t:0;S=S.concat(i.toString(),",")})),g.push(S.slice(0,-1))}if(n.length>0){var E="CourseCompetency[or]: ";n.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;E=E.concat(i.toString(),",")})),g.push(E.slice(0,-1))}if(a.length>0){var I="CourseDepartment[or]: ";a.forEach((function(e){var t,i=null!==(t=e.departmentId)&&void 0!==t?t:0;I=I.concat(i.toString(),",")})),g.push(I.slice(0,-1))}if(o.length>0){var C="CourseLevel[or]: ";o.forEach((function(e){var t,i=null!==(t=e.levelId)&&void 0!==t?t:0;C=C.concat(i.toString(),",")})),g.push(C.slice(0,-1))}if(s.length>0){var w="CoursePracticeArea[or]: ";s.forEach((function(e){var t,i=null!==(t=e.practiceAreaId)&&void 0!==t?t:0;w=w.concat(i.toString(),",")})),g.push(w.slice(0,-1))}if(u.length>0){var T="CourseTag[or]: ";u.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;T=T.concat(i.toString(),",")})),g.push(T.slice(0,-1))}if(h.length>0){var N="LearningPlan[or]: ";h.forEach((function(e){var t,i=null!==(t=e.learningPlanId)&&void 0!==t?t:0;N=N.concat(i.toString(),",")})),g.push(N.slice(0,-1))}if(Object.keys(v).length>0){var L="SessionLicense[or]: ".concat(v.licenseId),U=Array(),G=P&&(null===P||void 0===P?void 0:P.map((function(e){return e.licenseId}))),q={};g.push(L),p&&(Object.keys(p).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===v||void 0===v?void 0:v.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=p[e];if(""!==r&&null!==r){var n=parseFloat(r);q=Object(J.a)(Object(J.a)({},q),{},Object(Sa.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(n)))}}})),G&&G.forEach((function(e){var t="Credit: ".concat(e),i=t;Object.entries(q).filter((function(t){var i=Object(c.a)(t,2)[1];return parseInt(i.split("|")[0],10)===e})).forEach((function(e){var i=Object(c.a)(e,2)[1];t+="_".concat(i.split("|")[1])})),i===t?U.push(e):g.push(t)})))}if(""!==f&&g.push("SessionInstructor:".concat(f)),m.length>0){var M="SessionLocation: ";m.forEach((function(e){var t,i=null!==(t=e.locationId)&&void 0!==t?t:0;M=M.concat(i.toString(),",")})),g.push(M.slice(0,-1))}if(y.length>0){var z="SessionFormat: ";y.forEach((function(e){var t,i=null!==(t=e.courseFormatId)&&void 0!==t?t:0;z=z.concat(i.toString(),",")})),g.push(z.slice(0,-1))}if(0===g.length&&k(Object(J.a)(Object(J.a)({},A),{},{searchCriteria:[],page:1})),Ze?st({filter:g?g.join("|"):""}):(0===g.length&&k(Object(J.a)(Object(J.a)({},A),{},{searchCriteria:[],page:1})),null!=g&&k(Object(J.a)(Object(J.a)({},A),{},{searchCriteria:g,page:1}))),ke)De(!1);else{ft(!0);var W,V=g.join("|"),_=null===j||void 0===j?void 0:j.find((function(e){return e.filter===V}));if(_)D(null!==(W=null===_||void 0===_?void 0:_.calendarSavedFilterId)&&void 0!==W?W:0);else g.length>0?D(-1):D(0);F(g),O(R,l,x,d),t.setSubmitting(!1),B(!1)}}},xt=function(){Ve(!1),He(!1),De(!0),Xe(!0)},jt=function(e){var t;(Et!==e.calendarSavedFilterId&&e.isDefault||e.calendarSavedFilterId===w)&&C(null!==(t=e.calendarSavedFilterId)&&void 0!==t?t:0,e)},wt=function(e){var t=new Array;return e.isSystem||t.push({label:"Edit Filters",icon:n.a.createElement(h.SystemIcon,{icon:"Edit"}),onClick:function(){return st(e),De(!1),He(!1),Xe(!1),void rt(!0)}}),t.push({label:"Set as default",icon:n.a.createElement(h.SystemIcon,{icon:""}),disable:e.isDefault,onClick:function(){var t;N(t=e).then((function(){var e;C(null!==(e=t.calendarSavedFilterId)&&void 0!==e?e:0,t)}))}}),e.isSystem||t.push({label:"Duplicate",icon:n.a.createElement(h.SystemIcon,{icon:"Clone"}),onClick:function(){return t=e,st(Object(J.a)(Object(J.a)({},t),{},{calendarSavedFilterId:0,name:"".concat(t.name," clone")})),He(!0),void rt(!0);var t}},{label:"Delete",icon:n.a.createElement(h.SystemIcon,{icon:"Delete"}),onClick:function(){var t;return function(e){var t=[e];o({message:"Are you sure you want to delete this selected filter?",title:"Confirm Delete",OnConfirm:function(){return s(t)}})}(null!==(t=e.calendarSavedFilterId)&&void 0!==t?t:0)},disable:e.isDefault}),t},Pt=function(e){return 0===e.getFieldProps("courseProviders").value.length&&0===e.getFieldProps("courseClassYears").value.length&&0===e.getFieldProps("courseCompetencies").value.length&&0===e.getFieldProps("courseDepartments").value.length&&0===e.getFieldProps("courseLevels").value.length&&0===e.getFieldProps("coursePracticeAreas").value.length&&0===e.getFieldProps("courseTags").value.length&&0===e.getFieldProps("courseLearningPlans").value.length&&0===e.getFieldProps("jurisdictions").value.length&&null===e.getFieldProps("licenseCreditsList").value&&""===e.getFieldProps("sessionInstructor").value&&0===e.getFieldProps("sessionLocations").value.length&&0===e.getFieldProps("sessionFormats").value.length},Tt=function(e){return[{label:"Filters",component:dt?n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(Ia,{type:"filter-drawer"})))):n.a.createElement(n.a.Fragment,{key:"filter"},n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:Se||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:Pe||[],formikContext:!0,optionId:"courseFormatId",groupBy:function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"}})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Jurisdiction",id:"jurisdictions",onChange:function(t,i){if(ft(!1),null===i||void 0===i)e.setFieldValue("jurisdictions",[]),bt(!0);else{var r,n=null!==(r=null===le||void 0===le?void 0:le.filter((function(e){return i.licenseId&&i.licenseId===e.licenseId})))&&void 0!==r?r:[];L(n),bt(!1)}},onInputChange:function(t,i){""===i?(e.setFieldValue("jurisdictions",[]),bt(!0),ft(!1)):bt(!1)},fullWidth:!0,optionId:"licenseId",options:le})),!gt&&(null===P||void 0===P?void 0:P.map((function(e){var t;return n.a.createElement(h.Grid,{key:e.licenseId,item:!0,sm:12,md:12,lg:12},n.a.createElement(h.Grid,{container:!0,spacing:"form",key:"license_".concat(e.licenseId,"_info")},n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(t=e.licenseCredits)||void 0===t?void 0:t.map((function(t){return n.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(e.licenseId,"_").concat(t.creditId)},n.a.createElement(h.Box,{mt:1,ml:1,mr:1},n.a.createElement(h.TextField,{id:"licenseCreditsList.".concat(e.licenseId,"_").concat(t.creditId),label:t.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))})))))})))),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"button"},n.a.createElement("b",null,"Advanced Search Options"))),n.a.createElement(h.Expanded,{flex:0,ml:1},n.a.createElement(h.IconButton,{onClick:function(){qe(!Ge)}},Ge?n.a.createElement(h.SystemIcon,{icon:"CollapseVertical",size:"md"}):n.a.createElement(h.SystemIcon,{icon:"ExpandVertical",size:"md"}))))),n.a.createElement(h.Collapse,{in:Ge},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:_||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:Ce||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:ee||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:he||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,options:K||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:me||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:ne||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:M||[]})),n.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},n.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"}))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:function(){return ft(!1),e.setFieldValue("courseProviders",[]),e.setFieldValue("courseClassYears",[]),e.setFieldValue("courseCompetencies",[]),e.setFieldValue("courseDepartments",[]),e.setFieldValue("courseLevels",[]),e.setFieldValue("coursePracticeAreas",[]),e.setFieldValue("courseTags",[]),e.setFieldValue("courseLearningPlans",[]),e.setFieldValue("jurisdictions",[]),e.setFieldValue("licenseCreditsList",{}),e.setFieldValue("sessionInstructor",""),e.setFieldValue("sessionLocations",[]),void e.setFieldValue("sessionFormats",[])}},"Clear All")),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"secondary",fullWidth:!0,disabled:!!Pt(e)||!e.dirty},"Apply Filter")))))},{label:"Saved Filters",component:n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,key:"savefilter"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12}),n.a.createElement(h.Grid,{item:!0,xs:12},j&&j.length>0?n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.List,{disablePadding:!0},j&&(null===j||void 0===j?void 0:j.map((function(e,t){var i,r,a,o=null!==(i=e.calendarSavedFilterId)&&void 0!==i?i:0,s=null!==(r=e.name)&&void 0!==r?r:"",l=null!==(a=e.isDefault)&&void 0!==a&&a;return o>0&&n.a.createElement(n.a.Fragment,{key:o},n.a.createElement(h.ListItem,{style:{paddingRight:0}},n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Link,{onClick:function(){return function(e){var t;ft(!0),C(null!==(t=e.calendarSavedFilterId)&&void 0!==t?t:1,e),B(!0)}(e)},underline:"none"},s))),n.a.createElement(h.Box,{ml:1},!0===l&&n.a.createElement(h.Tooltip,{title:"Default",placement:"right"},n.a.createElement("span",null,n.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))),n.a.createElement(h.Box,{textAlign:"right",flex:1},n.a.createElement(Ea,{menu:wt(e)}))),t=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var Ma=Object(s.b)((function(e){var t,i,r,n;return{calendarSessions:null===(t=e.sessions)||void 0===t?void 0:t.portalCalendarSessions,loading:null===(i=e.sessions)||void 0===i?void 0:i.loading,requestBody:e.sessions.portalSessionFilterRequestBody,savedCalendarFilters:e.sessions.savedCalendarFilters,selectedCalendarFilterId:e.sessions.savedCalendarFilterId,selectedFilterId:e.sessions.savedCalendarFilterId,loggedUserId:null===(r=e.users.loggedUser)||void 0===r?void 0:r.userId,loggedUserRole:null===(n=e.users.loggedUser)||void 0===n?void 0:n.userRole}}),(function(e){return{getCalendarSavedFilters:function(t){return e(Bi(t))},getPortalSessionsByMonth:function(t,i,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return e(Ji(t,i,r,n,a,o))},setRequestBody:function(t){return e(Ai(t))},setSelectedFilterId:function(t){return e(ki(t))},setSelectedSessionFilters:function(t){return e(Di(t))},getScreenDescription:function(t){return e(Object(Vr.c)(t))},getCourseFilters:function(){return e(Object(Vr.b)())}}})),za=["January_0","February_1","March_2","April_3","May_4","June_5","July_6","August_7","September_8","October_9","November_10","December_11"],Wa=Object(_n.a)(Ma((function(e){var t,i,a=Object(r.createRef)(),o=e.calendarSessions,s=e.getCalendarSavedFilters,d=e.getPortalSessionsByMonth,u=e.loading,v=e.requestBody,f=e.savedCalendarFilters,m=e.selectedCalendarFilterId,y=e.selectedFilterId,g=e.setRequestBody,b=e.setSelectedFilterId,S=e.setSelectedSessionFilters,E=e.loggedUserId,I=e.loggedUserRole,O=e.getScreenDescription,C=e.getCourseFilters,x=Object(V.useTheme)(),j=Object(V.useMediaQuery)(x.breakpoints.down("xs")),w=Object(V.useMediaQuery)(x.breakpoints.down("md")),P=Object(r.useState)(new Date),T=Object(c.a)(P,2),A=T[0],k=T[1],D=Object(r.useState)(new Date),F=Object(c.a)(D,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),q=G[0],M=G[1],z=Object(r.useState)(!1),W=Object(c.a)(z,2),_=W[0],Y=W[1],$=Object(r.useState)(0),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(0),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)([]),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)(0),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)(!1),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)([]),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(!1),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)(0),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)(),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=Object(r.useState)(!1),Ne=Object(c.a)(Ae,2),ke=Ne[0],De=Ne[1],Le=Object(r.useState)(!1),Je=Object(c.a)(Le,2),Fe=Je[0],Be=Je[1],Re=Object(r.useState)((new Date).getMonth()),Ue=Object(c.a)(Re,2),Ge=Ue[0],qe=Ue[1],Me=Object(r.useState)((new Date).getFullYear()),ze=Object(c.a)(Me,2),We=ze[0],Ve=ze[1],_e=Object(r.useState)("month"),Ye=Object(c.a)(_e,2),$e=Ye[0],He=Ye[1],Ke=Object(r.useState)(""),Qe=Object(c.a)(Ke,2),Ze=Qe[0],Xe=Qe[1],et=Object(r.useState)(!1),tt=Object(c.a)(et,2),it=tt[0],rt=tt[1],nt=Object(r.useState)(!1),at=Object(c.a)(nt,2),ot=at[0],st=at[1],lt=Object(r.useState)(),ct=Object(c.a)(lt,2),dt=ct[0],ut=ct[1],ht=null===f||void 0===f||null===(t=f.find((function(e){return!0===e.isDefault})))||void 0===t?void 0:t.calendarSavedFilterId,vt=(null===v||void 0===v?void 0:v.searchCriteria)&&(null===v||void 0===v||null===(i=v.searchCriteria)||void 0===i?void 0:i.length)>0&&null!==y&&y<=0;Object(r.useEffect)((function(){Be(!0)}),[E]);var pt=Object(r.useCallback)(Object(N.k)((function(){a.current&&a.current.getApi().setOption("_resize",(function(){}))}),500),[]);Object(r.useEffect)((function(){(function(){var e=Object(l.a)(qa().mark((function e(){var t;return qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null===o||void 0===o?void 0:o.reduce((function(e,t){var i,r="".concat(null!==(i=t.scheduleId)&&void 0!==i?i:0,".").concat(Date.parse(t.startDate));return e[r]&&0!==e[r].length?e[r].push(t):e[r]=new Array(t),e}),{}),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()().then((function(e){ut(e)}))}),[o]),Object(r.useEffect)((function(){pt()}),[dt,pt]),Object(r.useEffect)((function(){s(!0).then((function(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth()-1,23),i=new Date(e.getFullYear(),e.getMonth()+2,0);C().then((function(){d(t,i,[],!1,!0),k(t),R(i),ve(!1),Ee(!1),Be(!1)}))}))}),[s,d,E,C]),Object(r.useEffect)((function(){I&&O(p.Md.CourseCalendar).then((function(e){return Te(e)}))}),[I,O]);var ft=function(e,t){b(e);var i,r,n,a,o=Array();t?o=(null===(i=t.filter)||void 0===i?void 0:i.split("|"))||Array():o=null!==(r=null===f||void 0===f||null===(n=f.find((function(t){return t.calendarSavedFilterId===e})))||void 0===n||null===(a=n.filter)||void 0===a?void 0:a.split("|"))&&void 0!==r?r:Array();S(o),g(Object(J.a)(Object(J.a)({},v),{},{searchCriteria:o,page:1,pageSize:10})),d(A,B,me,he)},mt=function(e,t){var i,r,n;(Q(null!==(i=e.courseId)&&void 0!==i?i:0),t)?(ae(t.map((function(e){var t;return null!==(t=e.sessionId)&&void 0!==t?t:0}))),Y(!0)):(te(null!==(r=e.sessionId)&&void 0!==r?r:0),ce(null!==(n=e.scheduleId)&&void 0!==n?n:0),M(!0))},yt=[{label:n.a.createElement(h.Tooltip,{title:"Classroom",placement:"top"},n.a.createElement("span",null,n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",size:j?"xs":"sm"}),!w&&n.a.createElement(h.Typography,{variant:"body1"},"\xa0Classroom")))),value:"Classroom"},{label:n.a.createElement(h.Tooltip,{title:"Webinar",placement:"top"},n.a.createElement("span",null,n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",size:j?"xs":"sm"}),!w&&n.a.createElement(h.Typography,{variant:"body1"},"\xa0Webinar")))),value:"Webcast"}],gt=Object(r.useMemo)((function(){return dt?Object.entries(dt).map((function(e){var t,i,r,n,a,o,s,l,c,d,u,h,v,f=null!==(t=e[1][0])&&void 0!==t?t:null,m=null!==(i=e[1])&&void 0!==i?i:[],y=""!==(null===f||void 0===f?void 0:f.startTime)&&null!==(r=null===f||void 0===f||null===(n=f.startTime)||void 0===n?void 0:n.split(":"))&&void 0!==r?r:[],g=0===y.length?0:parseInt(y[0],10)||0,b=0===y.length?0:y[1]&&y[1].length>0?parseInt(y[1].substring(0,2),10):0,S=/P/.test(null!==(a=null===f||void 0===f?void 0:f.startTime)&&void 0!==a?a:"")&&12!==g,E=m.reduce((function(e,t){var i,r;return fn()(null!==(i=e.endDate)&&void 0!==i?i:0).format("YYYYMMDD")>fn()(null!==(r=t.endDate)&&void 0!==r?r:0).format("YYYYMMDD")?e:t})),I=m.reduce((function(e,t){var i,r;return fn()(null!==(i=e.endTime)&&void 0!==i?i:0).format("hhmm")>fn()(null!==(r=t.endTime)&&void 0!==r?r:0).format("hhmm")?e:t})),O=new Date(null!==(o=null===f||void 0===f?void 0:f.startDate)&&void 0!==o?o:"");O.setHours(S?g+12:g),O.setMinutes(b);var C=""!==(null===I||void 0===I?void 0:I.startTime)&&null!==(s=null===I||void 0===I||null===(l=I.endTime)||void 0===l?void 0:l.split(":"))&&void 0!==s?s:[],x=0===C.length?0:parseInt(C[0],10)||0,j=0===C.length?0:C[1]&&C[1].length>0?parseInt(C[1].substring(0,2),10):0;S=/P/.test(null!==(c=null===I||void 0===I?void 0:I.endTime)&&void 0!==c?c:"")&&12!==x;var w=(null!==(d=parseInt("".concat(null===f||void 0===f||null===(u=f.startTime)||void 0===u?void 0:u.split(":")[0]),10))&&void 0!==d?d:0)>=0,P=new Date(null!==(h=null===E||void 0===E?void 0:E.endDate)&&void 0!==h?h:"");P.setHours(w?S?x+12:x:24),P.setMinutes(j);var T=null!==(v=f.sessionTypeId)&&void 0!==v?v:1,A=f.sessionTypeId!==p.oe.Single||m.length>1,N=A?"#e6f8fc":"grey.50";return{title:f.courseTitle,start:O,end:P,allDay:!w,backgroundColor:N,borderColor:"grey.50",extendedProps:{sessionType:T,sessionPart:f,sessionParts:m,multiSession:A}}})):[{title:"",date:new Date}]}),[dt]),bt=function(e){switch(e){case"previous":!function(){if(a.current){var e=a.current.getApi();if("month"===$e)0===Ge?(qe(11),Ve(We-1)):qe(Ge-1),e.prev(),d(e.view.activeStart,e.view.activeEnd,me,he),k(e.view.activeStart),R(e.view.activeEnd);else if("week"===$e||"day"===$e){e.prev();var t=e.view.activeStart,i=t.getMonth(),r=t.getFullYear();d(e.view.activeStart,e.view.activeEnd,me,he),qe(i),Ve(r)}Xe(e.view.title)}}();break;case"next":!function(){if(a.current){var e=a.current.getApi();if("month"===$e)11===Ge?(qe(0),Ve(We+1)):qe(Ge+1),e.next(),d(e.view.activeStart,e.view.activeEnd,me,he),k(e.view.activeStart),R(e.view.activeEnd);else if("week"===$e||"day"===$e){e.next();var t=e.view.activeStart,i=t.getMonth(),r=t.getFullYear();qe(i),Ve(r),d(e.view.activeStart,e.view.activeEnd,me,he)}Xe(e.view.title)}}()}},St={categories:me,endDate:B,favoriteSessions:he,startDate:A,sessionParticipantStatus:Ce,setSessionParticipantStatus:xe},Et=n.a.createElement(h.Grid,{container:!0,spacing:"form",style:{marginBottom:5}},n.a.createElement(h.Grid,{item:!0,xs:12,md:6},n.a.createElement(h.Row,{mainAxisAlignment:w?"center":"start",crossAxisAlignment:"middle"},n.a.createElement(h.ToggleButtonGroup,{exclusive:!0,options:[{label:"Month",value:"month"},{label:"Week",value:"week"}],onChange:function(e,t){switch(t){case"month":!function(){if(a.current){var e=a.current.getApi();e.changeView("dayGridMonth"),d(e.view.activeStart,e.view.activeEnd,me,he),He("month")}}();break;case"week":a.current&&(a.current.getApi().changeView("dayGridWeek"),He("week"),Xe(a.current.getApi().view.title))}},value:$e,dense:!0}),n.a.createElement(h.Box,null,n.a.createElement(h.IconButton,{onClick:function(){return bt("previous")}},n.a.createElement(h.SystemIcon,{icon:"PagePrevious",size:"sm"})),"month"===$e&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.SelectField,{id:"monthId",label:"",style:{backgroundColor:"transparent"},variant:"underlined",dense:!0,value:Ge,onChange:function(e){var t=e.target.value;if(qe(t),a.current){var i=new Date(We,t,1),r=a.current.getApi();r.gotoDate(i);var n=r.view.activeStart,o=r.view.activeEnd;k(n),R(o),d(n,o,me,he)}}},za.map((function(e){return n.a.createElement(h.MenuItem,{key:e,value:parseInt(e.split("_")[1],10)},e.split("_")[0])}))),"\xa0",n.a.createElement(h.SelectField,{id:"yearId",label:"",style:{backgroundColor:"transparent"},variant:"underlined",dense:!0,value:We,onChange:function(e){var t=e.target.value;if(Ve(t),a.current){var i=new Date(t,Ge,1),r=a.current.getApi();r.gotoDate(i),d(r.view.activeStart,r.view.activeEnd,me,he)}}},function(){for(var e=Array(),t=2005;t<=(new Date).getFullYear()+2;t++)e.push(t);return e}().map((function(e){return n.a.createElement(h.MenuItem,{key:e,value:e},e)})))),("week"===$e||"day"===$e)&&Ze,n.a.createElement(h.IconButton,{onClick:function(){return bt("next")}},n.a.createElement(h.SystemIcon,{icon:"PageNext",size:"sm"}))))),n.a.createElement(h.Grid,{item:!0,xs:12,md:6},n.a.createElement(h.Row,{mainAxisAlignment:w?"center":"end",crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:j?1:2},n.a.createElement(h.Tooltip,{title:"Session Favorites",placement:"top"},n.a.createElement("span",null,n.a.createElement(h.Checkbox,{onChange:function(e){d(A,B,me,e.target.checked),ve(e.target.checked)},checked:he,icon:n.a.createElement(h.SystemIcon,{size:j?"xs":"sm",type:"duotone",icon:"Star"}),checkedIcon:n.a.createElement(h.SystemIcon,{size:j?"xs":"sm",type:"solid",color:"secondary",icon:"Star"})})))),n.a.createElement(h.Expanded,{flex:0,mr:j?0:1},n.a.createElement(h.ToggleButtonGroup,{size:"small",options:yt,exclusive:!1,onChange:function(e,t){return function(e){var t=0===e.length;Ee(!t),d(A,B,e,he),ye(e)}(t)},value:me,dense:j,disableGutters:j})),n.a.createElement(h.SelectField,{id:"calendarSavedFilterId",variant:"outlined",value:m||ht||1,dense:!0,open:ot,onChange:function(e){return ft(e.target.value,void 0)},onOpen:function(){return st(!0)},onClose:function(){return st(!1)},startAdornment:void 0===m&&f?"":"View:"},n.a.createElement(h.MenuItem,{key:-1,value:-1,disabled:!0},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"subtitle2"},"Custom Filter")))),f&&f.map((function(e){return n.a.createElement(h.MenuItem,{key:e.calendarSavedFilterId,value:e.calendarSavedFilterId},n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{flex:1,mr:1},n.a.createElement(h.Typography,{variant:"body1"},e.name)),!Fe&&ot&&ht===e.calendarSavedFilterId?n.a.createElement(h.Box,{my:"auto"},n.a.createElement(h.Tooltip,{title:"Default"},n.a.createElement("span",null,n.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))):void 0))}))),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Button,{variant:"text",onClick:function(){return rt(!0)}},n.a.createElement(h.Badge,{invisible:!vt,variant:"dot",color:"secondary"},n.a.createElement(h.SystemIcon,{icon:"Filter",type:"solid",color:"primary"})),n.a.createElement(h.Typography,{variant:"subtitle2",color:"primary"},"\xa0Filter by"))),(vt||Se||he||me.length>0)&&n.a.createElement(h.Button,{size:"small",variant:"text",color:"primary",onClick:function(){b(0),Ee(!1),ye([]),ve(!1),d(A,B,[],!1,!0,!0)}},n.a.createElement(h.SystemIcon,{icon:"ClearFilters",color:"secondary"})))));return n.a.createElement(h.Screen,{titleBar:{title:(Pe&&""!==Pe.title?Pe.title:"Course Calendar")||"Course Calendar",description:Pe?n.a.createElement(h.Column,null,null!==Pe.shortDescription&&""!==Pe.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(Pe.shortDescription)}),null!==Pe.text&&""!==Pe.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return De(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Backdrop,{open:!o||!f||u},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(ca.Provider,{value:St},n.a.createElement(va,{calendarRef:a,customHeaderToolbar:Et,calendarEvents:gt,renderEventContent:function(e){return n.a.createElement(ba,{currentView:$e,eventContent:e,calendarState:a.current,handleEventClick:mt})},isCalendarSessions:o,isSavedCalendarFilters:f,isNewUser:Fe}),q&&0!==K&&0!==ee&&0!==le&&n.a.createElement(da,{open:q,onClose:function(){return M(!1)},courseId:K,sessionId:ee}),n.a.createElement(aa,{isFromCalendar:!0,courseId:K,categories:[],sessionIds:ne,open:_,onClose:function(){return Y(!1)}}),n.a.createElement(Ga,{filterOpen:it,onClose:function(){return rt(!1)},isFavorite:he,onSaveFilterSelection:ft,portalCategory:me,startDate:A,endDate:B}),n.a.createElement(dn,{open:ke,onClose:function(){return De(!1)},title:(Pe&&""!==Pe.title?Pe.title:"Course Calendar")||"Course Calendar",description:null===Pe||void 0===Pe?void 0:Pe.text}))))}))),Va=i(10),_a=i(180),Ya=i.n(_a),$a=i(132),Ha=i(324),Ka=i(439),Qa=Object(r.createContext)({addCollection:!1,setAddCollection:function(){},addCollectionFormOpen:!1,setAddCollectionFormOpen:function(){},updateCourseAssignment:!1,setUpdateCourseAssignment:function(){},collectionCourseId:0,setCollectionCourseId:function(){},collectionListOpen:!1,setCollectionListOpen:function(){},messageDrawerOpen:!1,setMessageDrawerOpen:function(){},filterDrawerOpen:!1,setFilterDrawerOpen:function(){}}),Za=function(){return Object(r.useContext)(Qa)},Xa=Object(s.b)((function(){return{}}),(function(e){return{addCollection:function(t,i){return e(function(e,t){return function(i,r){var n=r().users.loggedUser,a=null===n||void 0===n?void 0:n.userId,o=new p.N({userId:a,title:e,description:t});return q.m.create(void 0,p.N.fromJS(o)).then((function(e){return e})).catch((function(e){return i(Object(M.b)(e)),!1}))}}(t,i))},addToCollection:function(t,i){return e(ur(t,i))},addNotification:function(t,i){return e(M.a({message:t,variant:i}))},refreshCourse:function(){return e(cr(!1,!1))}}}))((function(e){var t=e.addCollection,i=e.addToCollection,r=e.addNotification,a=e.courseId,o=e.onClose,s=e.open,l=e.refreshCourse,c=Za(),d=c.setAddCollection,u=c.setAddCollectionFormOpen,v=c.setCollectionListOpen,p=c.setUpdateCourseAssignment,f={initialValues:{collectionTitle:"",collectionDescription:""},validationSchema:Object(yn.object)().shape({collectionTitle:Object(yn.string)().required("Collection title is a required field.").max(500,"Collection title must not exceed 500 characters."),collectionDescription:Object(yn.string)().max(500,"Description must not exceed 500 characters.")}),onSubmit:function(e,n){var s=e.collectionTitle,c=e.collectionDescription;t(s,c).then((function(e){!1!==e?(d&&d(!0),r("Collection successfully created.","success"),(null===e||void 0===e?void 0:e.collectionId)&&i(null===e||void 0===e?void 0:e.collectionId,a).then((function(){l(),v(!0),p&&p(!0),o()}))):r("Collection with the same name already exist.","warning")})).catch((function(e){r(e,"error")})),p&&p(!1),n.setSubmitting(!1)}};return n.a.createElement(hn.a,{open:s,onClose:o,fullWidth:!0,maxWidth:"sm"},n.a.createElement(un.DialogHeader,{titleBar:{title:n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:2},n.a.createElement(h.SystemIcon,{type:"duotone",icon:"Bookmark",size:"lg"})),n.a.createElement(h.Expanded,null,"New Collection")),onClose:o},colorMode:"light"}),n.a.createElement(mn.Formik,{initialValues:f.initialValues,validationSchema:f.validationSchema,onSubmit:f.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{id:"collection-form"},n.a.createElement(un.DialogBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,md:12,xl:12},n.a.createElement(h.TextField,{label:"Collection Title",fullWidth:!0,required:!0,id:"collectionTitle"})),n.a.createElement(h.Grid,{item:!0,xs:12,md:12,xl:12},n.a.createElement(h.TextField,{label:"Collection Description",fullWidth:!0,id:"collectionDescription",multiline:!0,rows:"5",rowsMax:"6"})))),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Grid,{item:!0,md:2,sm:1,lg:2,xl:2})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:5,md:4,lg:4,xl:4},n.a.createElement(h.Button,{variant:"outlined",fullWidth:!0,color:"default",onClick:function(){u(!1),v(!0)}},"Back")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:5,md:4,lg:4,xl:4},n.a.createElement(h.Button,{variant:"contained",type:"submit",loading:e.isSubmitting,disabled:!e.dirty,fullWidth:!0,color:"primary"},"Add Collection")),n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Grid,{item:!0,md:2,sm:1,lg:2,xl:2})))))})))})),eo=Object(s.b)((function(e){var t;return{selectedSessionFilters:e.sessions.selectedSessionFilters,userName:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userName,courseFilters:e.portalSettings.courseFilters}}),(function(e){return{getAllClassYears:function(t){return e(Oa(t))},getAllCompetencies:function(t){return e(Ca(t))},getAllDepartments:function(t){return e(xa(t))},getAllLearningPlans:function(){return e(dr())},getAllLevels:function(t){return e(Aa(t))},getAllLicenses:function(){return e(Ja())},getAllLocations:function(t){return e(Na(t))},getAllPracticeAreas:function(t){return e(ka(t))},getAllProviders:function(t){return e(Da(t))},getAllTags:function(t){return e(La(t))},getAllFormats:function(t){return e(Ta(t))},saveCatalogFilter:function(t,i){return e(fr(t,i))},validateCatalogSavedFilterName:function(t,i,r){return e(mr(t,i,r))}}}))((function(e){var t,i=e.duplicateMode,a=e.onClose,o=e.onSaved,s=e.open,l=e.saveCatalogFilter,d=e.selectedFilter,u=e.selectedSessionFilters,v=e.userName,p=e.validateCatalogSavedFilterName,f=e.classYears,m=e.competencies,y=e.departments,g=e.formats,b=e.learningPlans,S=e.levels,E=e.licenses,I=e.locations,O=e.practiceAreas,C=e.providers,x=e.tags,j=Object(r.useState)([]),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(),k=Object(c.a)(A,2),D=k[0],L=k[1],F=Object(r.useState)(!1),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(!0),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(!1),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)(!1),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(!1),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=[{id:1,name:"Enrolled"},{id:2,name:"Completed"},{id:3,name:"Not Enrolled"}];Object(r.useEffect)((function(){U(void 0===C||void 0===E||void 0===m||void 0===x||void 0===b||void 0===I||void 0===y||void 0===O||void 0===S||void 0===f||void 0===g)}),[f,m,y,b,S,E,I,O,C,U,x,g]),Object(r.useEffect)((function(){if(d){var e,t=null===d||void 0===d||null===(e=d.filter)||void 0===e?void 0:e.split("|").filter((function(e){return"SessionLicense[or]"===e.split(": ")[0]}));(null===t||void 0===t?void 0:t.toString())!==(null===P||void 0===P?void 0:P.toString())&&T(t)}}),[d,u,P,T]),Object(r.useEffect)((function(){if(P){var e,t=Array();P.forEach((function(e){var i=e.split(": ")[1];t.push(parseInt(i,10))}));var i=null!==(e=null===E||void 0===E?void 0:E.filter((function(e){return t.includes(e.licenseId)})))&&void 0!==e?e:[];L(i)}else L(void 0)}),[E,P,L]);var re=[{label:"Yes",value:"1"},{label:"No",value:"2"}],ne=function(e,t,i){var r,n=Array(),a=null===d||void 0===d||null===(r=d.filter)||void 0===r?void 0:r.split("|");if(a){var o=a.find((function(t){return t.includes("".concat(e))}));if(o)o.split(": ")[1].split(",").forEach((function(e){i&&i.forEach((function(i){parseInt(e,10)===i["".concat(t)]&&n.push(i)}))}))}return n},ae=function(e){var t=["","",""],i=null===e||void 0===e?void 0:e.split("|");return i&&i.forEach((function(e){e.indexOf("SessionStartDate")>-1&&(t[0]=e),e.indexOf("SessionEndDate")>-1&&(t[1]=e)})),t},oe={initialValues:{courseProviders:ne("ProviderIds","providerId",C),courseClassYears:ne("CourseClassYear","classYearId",f),courseCompetencies:ne("CourseCompetency","competencyId",m),courseDepartments:ne("CourseDepartment","departmentId",y),courseLevels:ne("CourseLevel","levelId",S),coursePracticeAreas:ne("CoursePracticeArea","practiceAreaId",O),courseTags:ne("CourseTag","tagId",x),courseLearningPlans:ne("LearningPlan","learningPlanId",b),viewingStatus:ne("CourseLabelStatus","id",ie),jurisdictions:function(e){var t,i=null===d||void 0===d||null===(t=d.filter)||void 0===t?void 0:t.split("|"),r=null===i||void 0===i?void 0:i.find((function(e){return e.includes("SessionLicense")}));if(r){var n=r.split(": ")[1];return e&&(null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===parseInt(n,10)})))}return[]}(E),licenseCreditsList:function(){var e,t={},i=null===d||void 0===d||null===(e=d.filter)||void 0===e?void 0:e.split("|");return D&&(null===D||void 0===D?void 0:D.length)>0&&D.forEach((function(e){var r=null===i||void 0===i?void 0:i.find((function(t){return t.includes("Credit: ".concat(e.licenseId))}));if(r){var n={};r.split(":")[1].split(" ".concat(e.licenseId,"_"))[1].split("_").forEach((function(e){var t=e.split("-");n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(t[0]),t[1]))}));var a={};e.licenseCredits&&e.licenseCredits.forEach((function(t){var i,r=n[null!==(i=t.creditId)&&void 0!==i?i:0];r=void 0===r?null:parseFloat(r.toString()),a=Object(J.a)(Object(J.a)({},a),{},Object(Sa.a)({},"".concat(e.licenseId,"_").concat(t.creditId),r))})),t=Object(J.a)(Object(J.a)({},t),a)}})),t}(),sessionInstructor:null!==(t=function(e){var t,i=null===d||void 0===d||null===(t=d.filter)||void 0===t?void 0:t.split("|");if(i){var r=i.find((function(t){return t.includes("".concat(e))}));if(r)return"SessionInstructor"===e?r.split(":")[1]:r.split(": ")[1]}return null}("SessionInstructor"))&&void 0!==t?t:"",sessionLocations:ne("SessionLocation","locationId",I),sessionFormats:ne("SessionFormat","courseFormatId",g),isDefault:i?"2":(null===d||void 0===d?void 0:d.isDefault)?"1":"2",name:null===d||void 0===d?void 0:d.name,startDate:""===ae(null===d||void 0===d?void 0:d.filter)[0]?null:ae(null===d||void 0===d?void 0:d.filter)[0],endDate:""===ae(null===d||void 0===d?void 0:d.filter)[1]?null:ae(null===d||void 0===d?void 0:d.filter)[1]},validationSchema:Object(yn.object)().shape({courseProviders:Object(yn.array)().nullable(),courseClassYears:Object(yn.array)().nullable(),courseCompetencies:Object(yn.array)().nullable(),courseDepartments:Object(yn.array)().nullable(),courseLevels:Object(yn.array)().nullable(),coursePracticeAreas:Object(yn.array)().nullable(),courseTags:Object(yn.array)().nullable(),courseLearningPlans:Object(yn.array)().nullable(),viewingStatus:Object(yn.array)().nullable(),jurisdictions:Object(yn.array)().notRequired().nullable(),sessionInstructor:Object(yn.string)().nullable(),sessionLocations:Object(yn.array)().nullable(),sessionFormats:Object(yn.array)().notRequired(),name:Object(yn.string)().required("Required").max(1e3,"Too long!").trim(),isDefault:Object(yn.string)(),startDate:Object(yn.date)().nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),endDate:Object(yn.date)().nullable().min(Object(yn.ref)("startDate"),"End date should be later than start date").typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar"))}),onSubmit:function(e,t){var r,n,s,u=e.courseProviders,h=e.courseClassYears,f=e.courseCompetencies,m=e.courseDepartments,y=e.courseLevels,g=e.coursePracticeAreas,b=e.courseTags,S=e.courseLearningPlans,E=e.viewingStatus,I=e.jurisdictions,O=e.licenseCreditsList,C=e.sessionInstructor,x=e.sessionLocations,j=e.isDefault,w=e.name,P=e.sessionFormats,T=e.startDate,A=e.endDate;t.setSubmitting(!0);var k=Array();if(E.length>0){var L="CourseLabelStatus: ";E.forEach((function(e){var t,i=null!==(t=e.id)&&void 0!==t?t:0;L=L.concat(i.toString(),",")})),k.push(L.slice(0,-1))}if(u.length>0){var F="ProviderIds: ";u.forEach((function(e){var t,i=null!==(t=e.providerId)&&void 0!==t?t:0;F=F.concat(i.toString(),",")})),k.push(F.slice(0,-1))}if(h.length>0){var B="CourseClassYear[or]: ";h.forEach((function(e){var t,i=null!==(t=e.classYearId)&&void 0!==t?t:0;B=B.concat(i.toString(),",")})),k.push(B.slice(0,-1))}if(f.length>0){var R="CourseCompetency[or]: ";f.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;R=R.concat(i.toString(),",")})),k.push(R.slice(0,-1))}if(m.length>0){var U="CourseDepartment[or]: ";m.forEach((function(e){var t,i=null!==(t=e.departmentId)&&void 0!==t?t:0;U=U.concat(i.toString(),",")})),k.push(U.slice(0,-1))}if(y.length>0){var G="CourseLevel[or]: ";y.forEach((function(e){var t,i=null!==(t=e.levelId)&&void 0!==t?t:0;G=G.concat(i.toString(),",")})),k.push(G.slice(0,-1))}if(g.length>0){var q="CoursePracticeArea[or]: ";g.forEach((function(e){var t,i=null!==(t=e.practiceAreaId)&&void 0!==t?t:0;q=q.concat(i.toString(),",")})),k.push(q.slice(0,-1))}if(b.length>0){var M="CourseTag[or]: ";b.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;M=M.concat(i.toString(),",")})),k.push(M.slice(0,-1))}if(S.length>0){var W="LearningPlan[or]: ";S.forEach((function(e){var t,i=null!==(t=e.learningPlanId)&&void 0!==t?t:0;W=W.concat(i.toString(),",")})),k.push(W.slice(0,-1))}if(x.length>0){var V="SessionLocation: ";x.forEach((function(e){var t,i=null!==(t=e.locationId)&&void 0!==t?t:0;V=V.concat(i.toString(),",")})),k.push(V.slice(0,-1))}if(Object.keys(I).length>0){var _="SessionLicense[or]: ".concat(I.licenseId),Y=Array(),$=D&&(null===D||void 0===D?void 0:D.map((function(e){return e.licenseId}))),H={};k.push(_),O&&(Object.keys(O).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===I||void 0===I?void 0:I.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=O[e];if(""!==r&&null!==r){var n=parseFloat(r);H=Object(J.a)(Object(J.a)({},H),{},Object(Sa.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(n)))}}})),$&&$.forEach((function(e){var t="Credit: ".concat(e),i=t;Object.entries(H).filter((function(t){var i=Object(c.a)(t,2)[1];return parseInt(i.split("|")[0],10)===e})).forEach((function(e){var i=Object(c.a)(e,2)[1];t+="_".concat(i.split("|")[1])})),i===t?Y.push(e):k.push(t)})))}if(""!==C&&k.push("SessionInstructor:".concat(C)),P.length>0){var K="SessionFormat: ";P.forEach((function(e){var t,i=null!==(t=e.courseFormatId)&&void 0!==t?t:0;K=K.concat(i.toString(),",")})),k.push(K.slice(0,-1))}T&&k.push("SessionStartDate: ".concat(Object(N.f)(T))),A&&k.push("SessionEndDate: ".concat(Object(N.f)(A))),z(!0);var Q=Object(J.a)(Object(J.a)({},d),{},{catalogSavedFilterId:null!==(r=null===d||void 0===d?void 0:d.catalogSavedFilterId)&&void 0!==r?r:void 0,name:String(w).trim(),isPublic:!1,isReadOnly:!0,isDefault:"1"===j,createdBy:i?v:null===d||void 0===d?void 0:d.createdBy,filter:k.length>0?k.join("|"):"[]"});p(i?0:null!==(n=null===d||void 0===d?void 0:d.catalogSavedFilterId)&&void 0!==n?n:0,String(w).trim(),i?null!==v&&void 0!==v?v:"":null!==(s=null===d||void 0===d?void 0:d.createdBy)&&void 0!==s?s:"").then((function(e){e?(te(!0),t.setSubmitting(!1)):(t.setSubmitting(!0),l(Q,!i).then((function(e){t.setSubmitting(!1),e&&(a(),o(e))})))}))}},se=function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"};return n.a.createElement(h.SideDrawer,{size:"sm",open:s,onClose:function(){z(!0),a()}},n.a.createElement(mn.Formik,{initialValues:oe.initialValues,validationSchema:oe.validationSchema,onSubmit:oe.onSubmit,enableReinitialize:M},(function(e){return n.a.createElement(h.Form,{id:"edit-saved-catalog-filter",formikContext:!0},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:i?"Add Filter":"Edit Filters"},widgets:n.a.createElement(h.Typography,{variant:"body1"},"for ",null===d||void 0===d?void 0:d.name)}),n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},R?n.a.createElement(Ia,{type:"filter-drawer"}):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},n.a.createElement(h.Collapse,{in:ee},n.a.createElement(h.Alert,{type:"error",icon:"Error",onClose:function(){return te(!1)}},"This filter name already exists"))),n.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.TextField,{required:!0,fullWidth:!0,id:"name",label:"Filter Name",formikContext:!0})),n.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.RadioGroup,{groupLabel:"Set as the default filter?",options:re,id:"isDefault",orientation:"horizontal",formikContext:!0,disabled:!i&&(null===d||void 0===d?void 0:d.isDefault)})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},n.a.createElement(h.DateTimeField,{id:"startDate",type:"date",label:"Start Date",formikContext:!0,format:Object(N.h)()})),n.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},n.a.createElement(h.DateTimeField,{id:"endDate",type:"date",label:"End Date",formikContext:!0,format:Object(N.h)()})))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:C||[]})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:g||[],formikContext:!0,optionId:"courseFormatId",groupBy:se})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{id:"viewingStatus",label:"Enrollment Status",fullWidth:!0,multiple:!0,options:ie||[],formikContext:!0,optionId:"id"})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.ComboBox,{label:"Jurisdiction",id:"jurisdictions",fullWidth:!0,optionId:"licenseId",options:E,onChange:function(t,i){if(z(!1),null===i||void 0===i)e.setFieldValue("jurisdictions",[]),Y(!0);else{var r,n=null!==(r=null===E||void 0===E?void 0:E.filter((function(e){return i.licenseId&&i.licenseId===e.licenseId})))&&void 0!==r?r:[];L(n),Y(!1)}},onInputChange:function(t,i){""===i?(e.setFieldValue("jurisdictions",[]),Y(!0),z(!1)):Y(!1)}})),!_&&(null===D||void 0===D?void 0:D.map((function(e){var t;return n.a.createElement(h.Grid,{item:!0,xs:12,key:"license_".concat(e.licenseId,"_info")},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(t=e.licenseCredits)||void 0===t?void 0:t.map((function(t){return n.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(e.licenseId,"_").concat(t.creditId,"_grid")},n.a.createElement(h.Box,{mt:1,ml:1,mr:1},n.a.createElement(h.TextField,{id:"licenseCreditsList.".concat(e.licenseId,"_").concat(t.creditId),label:t.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))})))))})))),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"button"},n.a.createElement("b",null,"Advanced Search Options"))),n.a.createElement(h.Expanded,{flex:0,ml:1},n.a.createElement(h.IconButton,{onClick:function(){Q(!K)}},K?n.a.createElement(h.SystemIcon,{icon:"CollapseVertical",size:"md"}):n.a.createElement(h.SystemIcon,{icon:"ExpandVertical",size:"md"}))))),n.a.createElement(h.Collapse,{in:K},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:m||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:x||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:b||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:I||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,optionId:"departmentId",options:y||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:O||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:S||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:f||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"})))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){return a()},fullWidth:!0},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{loading:e.isSubmitting,variant:"contained",type:"submit",color:"primary",fullWidth:!0},"Save")))))})))})),to=Object(s.b)((function(e){var t;return{userName:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userName}}),(function(e){return{saveCalendarFilter:function(t,i){return e(fr(t,i))},validateCatalogSavedFilterName:function(t,i,r){return e(mr(t,i,r))}}}))((function(e){var t=e.onClose,i=e.onSaved,a=e.open,o=e.title,s=e.editMode,l=e.saveCalendarFilter,d=e.selectedFilter,u=e.userName,v=e.validateCatalogSavedFilterName,p=Object(r.useState)(!1),f=Object(c.a)(p,2),m=f[0],y=f[1],g=[{label:"Yes",value:"1"},{label:"No",value:"2"}],b={initialValues:{name:s?null===d||void 0===d?void 0:d.name:"",isDefault:s&&(null===d||void 0===d?void 0:d.isDefault)?"1":"2"},validationSchema:Object(yn.object)().shape({name:Object(yn.string)().required("Required").max(1e3,"Too long!").trim(),isDefault:Object(yn.string)()}),onSubmit:function(e,r){var n=e.name,a=e.isDefault;r.setSubmitting(!0);var o=Object(J.a)(Object(J.a)({},d),{},{catalogSavedFilterId:s?null===d||void 0===d?void 0:d.catalogSavedFilterId:void 0,name:String(n).trim(),isPublic:!1,isReadOnly:!0,isDefault:"1"===a,createdBy:s?null===d||void 0===d?void 0:d.createdBy:u,filter:null===d||void 0===d?void 0:d.filter});v(s&&(null===d||void 0===d?void 0:d.catalogSavedFilterId)||0,String(n).trim(),s?(null===d||void 0===d?void 0:d.createdBy)||"":u||"").then((function(e){e?(y(!0),r.setSubmitting(!1)):(r.setSubmitting(!0),l(o,s).then((function(e){r.setSubmitting(!1),e&&(t(),i(e))})))}))}};return n.a.createElement(h.Dialog,{maxWidth:"sm",fullWidth:!0,color:"default",open:a,onClose:t},n.a.createElement(mn.Formik,{initialValues:b.initialValues,validationSchema:b.validationSchema,onSubmit:b.onSubmit},(function(e){return n.a.createElement(h.Form,{id:"calendar-save-filter",formikContext:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:o,onClose:t}}),n.a.createElement(un.DialogBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:2},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},n.a.createElement(h.Collapse,{in:m},n.a.createElement(h.Alert,{type:"error",icon:"Error",onClose:function(){return y(!1)}},"This filter name already exists"))),n.a.createElement(h.Grid,{item:!0,xs:12,key:"caption",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"The saved filters will be available from the calendar screen and from the 'Saved Filters' tab within Filters.")),n.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Filter Name"})),n.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"Set as the default filter?",options:g,id:"isDefault",orientation:"horizontal"})))),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){t()},fullWidth:!0},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Save")))),n.a.createElement(h.Box,{mb:3}))})))})),io=Object(s.b)((function(e){return{filters:e.catalog.filters,courseFilters:e.portalSettings.courseFilters,savedFilters:e.catalog.savedFilters,savedFilterId:e.catalog.savedFilterId,searchRequestBody:e.catalog.searchRequestBody,formats:e.formats.formats}}),(function(e){return{confirmDialog:function(t){return e(Object($n.b)(t))},deleteSavedFilter:function(t){return e((i=t,function(e,t){var r=t().catalog.savedFilterId;q.f.delete(void 0,i).then((function(){e(Object(M.a)({message:"Saved filter successfully deleted.",variant:"success"})),void 0!==i.find((function(e){return e===r}))&&e(rr(-1)),e(pr(!1))})).catch((function(t){t.errors&&t.errors.SavedFilterDefault&&t.errors.SavedFilterDefault.length>0?e(Object(M.b)(t.errors.SavedFilterDefault[0])):e(Object(M.b)(t.title))}))}));var i},getAllClassYears:function(t){return e(Oa(t))},getAllCompetencies:function(t){return e(Ca(t))},getAllDepartments:function(t){return e(xa(t))},getAllLevels:function(t){return e(Aa(t))},getAllLocations:function(t){return e(Na(t))},getAllPracticeAreas:function(t){return e(ka(t))},getAllProviders:function(t){return e(Da(t))},getAllTags:function(t){return e(La(t))},getAllLicenses:function(){return e((function(e){return q.E.getAllFirmLicenses(void 0).then((function(e){return e})).catch((function(t){throw e(Object(M.b)(t)),t}))}))},getAllLearningPlans:function(){return e(dr())},getAllFormats:function(t){return e(Ta(t))},getCourseCatalog:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e(cr(t))},setFilters:function(t){return e(tr(t))},setSavedFilterId:function(t){return e(rr(t))},setSearchRequestBody:function(t){return e(nr(t))},setCatalogSavedFilterDefault:function(t){return e((i=t,function(e,t){var r=t().users.loggedUser;return e(ir(void 0)),q.O.setSavedFilterDefault(void 0,p.pe.fromJS({userId:null===r||void 0===r?void 0:r.userId,catalogSavedFilterId:i.catalogSavedFilterId})).then((function(){e(Object(M.a)({message:"".concat(i.name," have been set to default."),variant:"success"})),e(pr(!1))})).catch((function(t){e(Object(M.b)(t))}))}));var i},showNotification:function(t,i){return e(M.a({message:t,variant:i}))}}}))((function(e){var t,i,a=Za(),o=a.filterDrawerOpen,s=a.setFilterDrawerOpen,l=e.getAllClassYears,d=e.getAllCompetencies,u=e.getAllDepartments,v=e.getAllLearningPlans,p=e.getAllLevels,f=e.getAllLicenses,m=e.getAllLocations,y=e.getAllPracticeAreas,g=e.getAllProviders,b=e.getAllTags,S=e.getAllFormats,E=e.getCourseCatalog,I=e.filters,O=e.setFilters,C=e.savedFilters,x=e.savedFilterId,j=e.setSavedFilterId,w=e.confirmDialog,P=e.deleteSavedFilter,T=e.searchRequestBody,A=e.setSearchRequestBody,k=e.setCatalogSavedFilterDefault,D=e.showNotification,L=e.courseFilters,F=Object(r.useState)([]),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)([]),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)([]),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)([]),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)([]),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)([]),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)([]),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)([]),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)([]),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)([]),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)([]),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)([]),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=Object(r.useState)(void 0),Ne=Object(c.a)(Ae,2),ke=Ne[0],De=Ne[1],Le=Object(r.useState)(!1),Je=Object(c.a)(Le,2),Fe=Je[0],Be=Je[1],Re=Object(r.useState)(!0),Ue=Object(c.a)(Re,2),Ge=Ue[0],qe=Ue[1],Me=Object(r.useState)(!1),ze=Object(c.a)(Me,2),We=ze[0],Ve=ze[1],_e=Object(r.useState)(!1),Ye=Object(c.a)(_e,2),$e=Ye[0],He=Ye[1],Ke=Object(r.useState)(!1),Qe=Object(c.a)(Ke,2),Ze=Qe[0],Xe=Qe[1],et=Object(r.useState)(!1),tt=Object(c.a)(et,2),it=tt[0],rt=tt[1],nt=Object(r.useState)(!1),at=Object(c.a)(nt,2),ot=at[0],st=at[1],lt=Object(r.useState)(void 0),ct=Object(c.a)(lt,2),dt=ct[0],ut=ct[1],ht=null===C||void 0===C||null===(t=C.find((function(e){return e.isDefault})))||void 0===t?void 0:t.catalogSavedFilterId,vt=[{id:1,name:"Enrolled"},{id:2,name:"Completed"},{id:3,name:"Not Enrolled"}],pt=Object(r.useCallback)((function(){var e,t,i,r,n,a,o,s;if(L){U(["ClassYear","Competency","Department","LearningPlan","Level","License","Location","PracticeArea","Provider","Tag","Formats"]);var h=(null===(e=L.departmentIds)||void 0===e?void 0:e.map(String))||[],E=(null===(t=L.locationIds)||void 0===t?void 0:t.map(String))||[],I=(null===(i=L.practiceAreaIds)||void 0===i?void 0:i.map(String))||[],O=(null===(r=L.levelIds)||void 0===r?void 0:r.map(String))||[],C=(null===(n=L.providerIds)||void 0===n?void 0:n.map(String))||[],x=(null===(a=L.competencyIds)||void 0===a?void 0:a.map(String))||[],j=(null===(o=L.classYearIds)||void 0===o?void 0:o.map(String))||[],w=(null===(s=L.tagIds)||void 0===s?void 0:s.map(String))||[],P=L.courseFormatIds||[];Promise.all([l(j),d(x),u(h),v(),p(O),f(),m(E),y(I),g(C),b(w),S(P)]).then((function(e){var t=Object(c.a)(e,11),i=t[0],r=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],d=t[7],u=t[8],h=t[9],v=t[10];z(null===i||void 0===i?void 0:i.classYears),Y(null===r||void 0===r?void 0:r.competencies),Q(null===n||void 0===n?void 0:n.departments),te(a),ae(null===o||void 0===o?void 0:o.levels),ce(null===s||void 0===s?void 0:s.licenses),ve(null===l||void 0===l?void 0:l.locations),ye(null===d||void 0===d?void 0:d.practiceAreas),Ee(null===u||void 0===u?void 0:u.providers),xe((null===h||void 0===h?void 0:h.tags)||[]),Te(v||[]),U([])}))}}),[L,l,d,u,v,p,m,y,g,b,f,S]);Object(r.useEffect)((function(){pt()}),[pt]);var ft=function(e,t,i){var r=[],n=null===I||void 0===I?void 0:I.find((function(t){return t.includes("".concat(e))}));if(n){var a=n.split(": ");Object(c.a)(a,2)[1].split(",").forEach((function(e){i&&i.forEach((function(i){parseInt(e,10)===i["".concat(t)]&&r.push(i)}))}))}return r},mt=function(e){var t=null===I||void 0===I?void 0:I.find((function(t){return t.includes("".concat(e))}));return t?"SessionInstructor"===e?t.split(":")[1]:t.split(": ")[1]:null},yt={initialValues:{courseProviders:ft("ProviderIds","providerId",Se),courseClassYears:ft("CourseClassYear","classYearId",M),courseCompetencies:ft("CourseCompetency","competencyId",_),courseDepartments:ft("CourseDepartment","departmentId",K),courseLevels:ft("CourseLevel","levelId",ne),coursePracticeAreas:ft("CoursePracticeArea","practiceAreaId",me),courseTags:ft("CourseTag","tagId",Ce),courseLearningPlans:ft("LearningPlan","learningPlanId",ee),viewingStatus:ft("CourseLabelStatus","id",vt),jurisdictions:function(e){var t=null===I||void 0===I?void 0:I.find((function(e){return e.includes("SessionLicense")}));if(t){var i=t.split(": "),r=Object(c.a)(i,2)[1];return e&&(null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===parseInt(r,10)})))}}(le),licenseCreditsList:function(){var e={};return ke&&(null===ke||void 0===ke?void 0:ke.length)>0&&ke.forEach((function(t){var i=null===I||void 0===I?void 0:I.find((function(e){return e.includes("Credit: ".concat(t.licenseId))}));if(i){var r={};i.split(":")[1].split(" ".concat(t.licenseId,"_"))[1].split("_").forEach((function(e){var t=e.split("-");r=Object(J.a)(Object(J.a)({},r),{},Object(Sa.a)({},"".concat(t[0]),t[1]))}));var n={};t.licenseCredits&&t.licenseCredits.forEach((function(e){var i,a=r[null!==(i=e.creditId)&&void 0!==i?i:0];a=void 0===a?null:parseFloat(a.toString()),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(t.licenseId,"_").concat(e.creditId),a))})),e=Object(J.a)(Object(J.a)({},e),n)}})),e}(),sessionInstructor:null!==(i=mt("SessionInstructor"))&&void 0!==i?i:"",sessionLocations:ft("SessionLocation","locationId",he),sessionFormats:ft("SessionFormat","courseFormatId",Pe),startDate:mt("SessionStartDate"),endDate:mt("SessionEndDate")},validationSchema:Object(yn.object)().shape({courseProviders:Object(yn.array)().nullable(),courseClassYears:Object(yn.array)().nullable(),courseCompetencies:Object(yn.array)().nullable(),courseDepartments:Object(yn.array)().nullable(),courseLevels:Object(yn.array)().nullable(),coursePracticeAreas:Object(yn.array)().nullable(),courseTags:Object(yn.array)().nullable(),courseLearningPlans:Object(yn.array)().nullable(),viewingStatus:Object(yn.array)().nullable(),jurisdictions:Object(yn.array)().notRequired().nullable(),sessionInstructor:Object(yn.string)().nullable(),sessionLocations:Object(yn.array)().nullable(),sessionFormats:Object(yn.array)().notRequired(),startDate:Object(yn.date)().nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),endDate:Object(yn.date)().nullable().min(Object(yn.ref)("startDate"),"End date should be later than start date").typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar"))}),onSubmit:function(e,t){var i=e.courseProviders,r=e.courseClassYears,n=e.courseCompetencies,a=e.courseDepartments,o=e.courseLevels,l=e.coursePracticeAreas,d=e.courseTags,u=e.courseLearningPlans,h=e.viewingStatus,v=e.jurisdictions,p=e.licenseCreditsList,f=e.sessionInstructor,m=e.sessionLocations,y=e.sessionFormats,g=e.startDate,b=e.endDate,S=Array();if(h.length>0){var I="CourseLabelStatus: ";h.forEach((function(e){var t,i=null!==(t=e.id)&&void 0!==t?t:0;I=I.concat(i.toString(),",")})),S.push(I.slice(0,-1))}if(i.length>0){var x="ProviderIds: ";i.forEach((function(e){var t,i=null!==(t=e.providerId)&&void 0!==t?t:0;x=x.concat(i.toString(),",")})),S.push(x.slice(0,-1))}if(r.length>0){var w="CourseClassYear[or]: ";r.forEach((function(e){var t,i=null!==(t=e.classYearId)&&void 0!==t?t:0;w=w.concat(i.toString(),",")})),S.push(w.slice(0,-1))}if(n.length>0){var P="CourseCompetency[or]: ";n.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;P=P.concat(i.toString(),",")})),S.push(P.slice(0,-1))}if(a.length>0){var T="CourseDepartment[or]: ";a.forEach((function(e){var t,i=null!==(t=e.departmentId)&&void 0!==t?t:0;T=T.concat(i.toString(),",")})),S.push(T.slice(0,-1))}if(o.length>0){var A="CourseLevel[or]: ";o.forEach((function(e){var t,i=null!==(t=e.levelId)&&void 0!==t?t:0;A=A.concat(i.toString(),",")})),S.push(A.slice(0,-1))}if(l.length>0){var k="CoursePracticeArea[or]: ";l.forEach((function(e){var t,i=null!==(t=e.practiceAreaId)&&void 0!==t?t:0;k=k.concat(i.toString(),",")})),S.push(k.slice(0,-1))}if(d.length>0){var D="CourseTag[or]: ";d.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;D=D.concat(i.toString(),",")})),S.push(D.slice(0,-1))}if(u.length>0){var L="LearningPlan[or]: ";u.forEach((function(e){var t,i=null!==(t=e.learningPlanId)&&void 0!==t?t:0;L=L.concat(i.toString(),",")})),S.push(L.slice(0,-1))}if(void 0!==v&&Object.keys(v).length>0){var F="SessionLicense[or]: ".concat(v.licenseId),B=Array(),R=ke.map((function(e){return e.licenseId})),U={};S.push(F),p&&(Object.keys(p).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===v||void 0===v?void 0:v.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=p[e];if(""!==r&&null!==r){var n=parseFloat(r);U=Object(J.a)(Object(J.a)({},U),{},Object(Sa.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(n)))}}})),R.forEach((function(e){var t="Credit: ".concat(e),i=t;Object.entries(U).filter((function(t){var i=Object(c.a)(t,2)[1];return parseInt(i.split("|")[0],10)===e})).forEach((function(e){var i=Object(c.a)(e,2)[1];t+="_".concat(i.split("|")[1])})),i===t?B.push(e):S.push(t)})))}if(""!==f&&S.push("SessionInstructor:".concat(f)),m.length>0){var G="SessionLocation: ";m.forEach((function(e){var t,i=null!==(t=e.locationId)&&void 0!==t?t:0;G=G.concat(i.toString(),",")})),S.push(G.slice(0,-1))}if(y.length>0){var q="SessionFormat: ";y.forEach((function(e){var t,i=null!==(t=e.courseFormatId)&&void 0!==t?t:0;q=q.concat(i.toString(),",")})),S.push(q.slice(0,-1))}if(g&&S.push("SessionStartDate: ".concat(Object(N.f)(g))),b&&S.push("SessionEndDate: ".concat(Object(N.f)(b))),Ze)ut(Object(J.a)(Object(J.a)({},dt),{},{filter:S.join("|")})),Xe(!1);else{qe(!0);var M,z=S.join("|"),W=null===C||void 0===C?void 0:C.find((function(e){return e.filter===z}));if(W)j(null!==(M=null===W||void 0===W?void 0:W.catalogSavedFilterId)&&void 0!==M?M:0);else S.length>0?j(-1):j(0);O(S),s(!1),E(!0),t.setSubmitting(!1)}}},gt=function(e,t){j(e);var i,r,n,a,o=Array();t?o=(null===(i=t.filter)||void 0===i?void 0:i.split("|"))||Array():o=null!==(r=null===C||void 0===C||null===(n=C.find((function(t){return t.catalogSavedFilterId===e})))||void 0===n||null===(a=n.filter)||void 0===a?void 0:a.split("|"))&&void 0!==r?r:[];O(o),A(Object(J.a)(Object(J.a)({},T),{},{searchCriteria:o,page:1,pageSize:10})),E()},bt=function(e){var t;(ht!==e.catalogSavedFilterId&&e.isDefault||e.catalogSavedFilterId===x)&>(null!==(t=e.catalogSavedFilterId)&&void 0!==t?t:0,e)},St=function(e){var t=new Array;return e.isSystem||t.push({label:"Edit Filters",icon:n.a.createElement(h.SystemIcon,{icon:"Edit"}),onClick:function(){return ut(e),Xe(!1),He(!1),rt(!1),void st(!0)}}),t.push({label:"Set as default",icon:n.a.createElement(h.SystemIcon,{icon:""}),disable:e.isDefault,onClick:function(){var t;k(t=e).then((function(){var e;gt(null!==(e=t.catalogSavedFilterId)&&void 0!==e?e:0,t)}))}}),e.isSystem||t.push({label:"Duplicate",icon:n.a.createElement(h.SystemIcon,{icon:"Clone"}),onClick:function(){return t=e,ut(Object(J.a)(Object(J.a)({},t),{},{catalogSavedFilterId:0,name:"".concat(t.name," clone")})),He(!0),void st(!0);var t}},{label:"Delete",icon:n.a.createElement(h.SystemIcon,{icon:"Delete"}),onClick:function(){var t;return function(e){var t=[e];w({message:"Are you sure you want to delete this selected filter?",title:"Confirm Delete",OnConfirm:function(){return P(t)}})}(null!==(t=e.catalogSavedFilterId)&&void 0!==t?t:0)},disable:e.isDefault}),t},Et=function(e){return null===e.getFieldProps("startDate").value&&null===e.getFieldProps("endDate").value&&0===e.getFieldProps("courseProviders").value.length&&0===e.getFieldProps("courseClassYears").value.length&&0===e.getFieldProps("courseCompetencies").value.length&&0===e.getFieldProps("courseDepartments").value.length&&0===e.getFieldProps("courseLevels").value.length&&0===e.getFieldProps("coursePracticeAreas").value.length&&0===e.getFieldProps("courseTags").value.length&&0===e.getFieldProps("courseLearningPlans").value.length&&0===e.getFieldProps("viewingStatus").value.length&&(void 0===e.getFieldProps("jurisdictions").value||0===e.getFieldProps("jurisdictions").value.length)&&""===e.getFieldProps("sessionInstructor").value&&0===e.getFieldProps("sessionLocations").value.length&&0===e.getFieldProps("sessionFormats").value.length},It=function(e){var t,i=!1;if(I){var r,a,o=(null!==(r=null===I||void 0===I?void 0:I.find((function(e){return e.includes("SessionLicense")})))&&void 0!==r?r:"").split(": "),l=Object(c.a)(o,2)[1],d=void 0!==ke||null!==(a=le&&-1!==(null===le||void 0===le?void 0:le.findIndex((function(e){return e.licenseId===parseInt(l,10)}))))&&void 0!==a&&a,u=le&&(null===le||void 0===le?void 0:le.find((function(e){return e.licenseId===parseInt(l,10)}))),v=void 0!==e.getFieldProps("jurisdictions").value;void 0!==ke||void 0===u||Fe||De([u]),i=d&&v}return[{label:"Filters",component:n.a.createElement(n.a.Fragment,{key:"filter"},n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},n.a.createElement(h.DateTimeField,{id:"startDate",type:"date",label:"Start Date",formikContext:!0,format:Object(N.h)()})),n.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},n.a.createElement(h.DateTimeField,{id:"endDate",type:"date",label:"End Date",formikContext:!0,format:Object(N.h)()})))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:Se||[],loading:R.includes("Provider")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:Pe||[],formikContext:!0,optionId:"courseFormatId",loading:R.includes("Formats"),groupBy:function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"}})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{id:"viewingStatus",label:"Enrollment Status",fullWidth:!0,multiple:!0,options:vt||[],formikContext:!0,optionId:"id",loading:R.includes("Formats")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Jurisdiction",id:"jurisdictions",onChange:function(t,i){null===i||void 0===i?(e.setFieldValue("jurisdictions",[]),De(void 0),Be(!0)):(De(null===le||void 0===le?void 0:le.filter((function(e){return e.licenseId===i.licenseId}))),Be(!1))},onInputChange:function(t,i){""===i?(e.setFieldValue("jurisdictions",[]),De(void 0),Be(!0)):Be(!1)},fullWidth:!0,optionId:"licenseId",options:le,loading:R.includes("License")})),i&&ke&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Grid,{container:!0,spacing:4},null===(t=ke[0].licenseCredits)||void 0===t?void 0:t.map((function(e){return n.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(ke.licenseId,"_").concat(e.creditId,"_grid")},n.a.createElement(h.Box,{mt:1,ml:1,mr:1},n.a.createElement(h.TextField,{key:"licenseCreditsList.".concat(ke[0].licenseId,"_").concat(e.creditId),id:"licenseCreditsList.".concat(ke[0].licenseId,"_").concat(e.creditId),label:e.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))}))))),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"button"},n.a.createElement("b",null,"Advanced Search Options")))),n.a.createElement(h.Box,{mt:2}),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:_||[],loading:R.includes("Competency")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:Ce||[]})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:ee||[],loading:R.includes("LearningPlan")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:he||[],loading:R.includes("Location")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,optionId:"departmentId",options:K||[],loading:R.includes("Department")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:me||[],loading:R.includes("PracticeArea")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:ne||[],loading:R.includes("Level")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:M||[],loading:R.includes("ClassYear")})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"})))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:function(){return qe(!1),e.setFieldValue("courseProviders",[]),e.setFieldValue("courseClassYears",[]),e.setFieldValue("courseCompetencies",[]),e.setFieldValue("courseDepartments",[]),e.setFieldValue("courseLevels",[]),e.setFieldValue("coursePracticeAreas",[]),e.setFieldValue("courseTags",[]),e.setFieldValue("courseLearningPlans",[]),e.setFieldValue("viewingStatus",[]),e.setFieldValue("jurisdictions",void 0),e.setFieldValue("licenseCreditsList",null),e.setFieldValue("sessionInstructor",""),e.setFieldValue("sessionLocations",[]),void e.setFieldValue("sessionFormats",[])}},"Clear All")),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"secondary",fullWidth:!0,disabled:!!(Et(e)||e.errors.startDate||e.errors.endDate)||-1!==x&&!e.dirty},"Apply Filter")))))},{label:"Saved Filters",component:n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,key:"savefilter"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12}),n.a.createElement(h.Grid,{item:!0,xs:12},C&&C.length>0?n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.List,{disablePadding:!0},C&&(null===C||void 0===C?void 0:C.map((function(e,t){var i,r,a,o=null!==(i=e.catalogSavedFilterId)&&void 0!==i?i:0,l=null!==(r=e.name)&&void 0!==r?r:"",c=null!==(a=e.isDefault)&&void 0!==a&&a;return o>0&&n.a.createElement(n.a.Fragment,{key:o},n.a.createElement(h.ListItem,{style:{paddingRight:0}},n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Link,{onClick:function(){return function(e){var t;qe(!0),gt(null!==(t=e.catalogSavedFilterId)&&void 0!==t?t:1,e),s(!1)}(e)},underline:"none"},l))),n.a.createElement(h.Box,{ml:1},!0===c&&n.a.createElement(h.Tooltip,{title:"Default",placement:"right"},n.a.createElement("span",null,n.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))),n.a.createElement(h.Box,{textAlign:"right",flex:1},n.a.createElement(Ea,{menu:St(e)}))),t0,formikContext:!1,icon:n.a.createElement(h.SystemIcon,{type:"duotone",icon:"Bookmark"}),checkedIcon:n.a.createElement(h.SystemIcon,{icon:"Bookmark",color:"warning",type:"duotone"}),onClick:function(e){return function(e){y(e.currentTarget)}(e)},onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)}}))),n.a.createElement(h.Popover,{open:Boolean(m),anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableRestoreFocus:!0,onClose:function(){y(null)}},n.a.createElement(h.Column,{mainAxisAlignment:"middle"},i&&i.map((function(e){var t=e.collectionId,i=e.title;return n.a.createElement(h.Expanded,{mt:.5,mb:.5,ml:2,mr:2,key:t},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},i))})),n.a.createElement(h.Expanded,{pr:2,pl:2,pt:.75,pb:.75,textAlign:"right",width:"100%"},n.a.createElement(h.Link,{onClick:function(){return o(t),s(!0),void y(null)}},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement(h.Box,{mr:.5,component:"span"},n.a.createElement(h.SystemIcon,{icon:"Add"})),"Add"))))))})),no=i(350),ao=Object(s.b)((function(){return{}}),(function(e){return{addToCollection:function(t,i){return e(ur(t,i))},addNotification:function(t,i){return e(M.a({message:t,variant:i}))},getAllUserCollections:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser,n=null===r||void 0===r?void 0:r.userId;return q.m.getAllUserCollections(n,e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},removeCourseFromCollection:function(t,i){return e(hr(t,i))},refreshCourse:function(){return e(cr(!1,!1))}}}))((function(e){var t=e.addToCollection,i=e.addNotification,a=e.courseId,o=e.getAllUserCollections,s=e.onClose,l=e.open,d=e.removeCourseFromCollection,u=e.refreshCourse,v=Za(),p=v.addCollection,f=v.collectionListOpen,m=v.setAddCollection,y=v.setCollectionListOpen,g=v.setAddCollectionFormOpen,b=v.setUpdateCourseAssignment,S=Object(r.useState)(),E=Object(c.a)(S,2),I=E[0],O=E[1];Object(r.useEffect)((function(){O(void 0),o(a).then((function(e){m&&m(!1),O(e)}))}),[p,f,a,o,m]);var C=function(e,t){var i=I&&Object(no.a)(I||[],(function(i){i.filter((function(e){return e.collectionId===t}))[0].isAssigned=e;var r=i.filter((function(e){return e.collectionId===t}))[0].courseCount;e?r+=1:r-=1,i.filter((function(e){return e.collectionId===t}))[0].courseCount=r}));O(i)};return n.a.createElement(n.a.Fragment,null,n.a.createElement(hn.a,{open:l,onClose:s,fullWidth:!0,maxWidth:"sm"},n.a.createElement(un.DialogHeader,{titleBar:{title:n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:2},n.a.createElement(h.SystemIcon,{type:"duotone",icon:"Bookmark",size:"lg"})),n.a.createElement(h.Expanded,null,"Select A Collection")),onClose:s},colorMode:"light"}),n.a.createElement(un.DialogBody,{maxWidth:!1},0===(null===I||void 0===I?void 0:I.length)?n.a.createElement(h.Box,{width:"100%"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},n.a.createElement(h.Typography,null,"No collections found."))):I?n.a.createElement(h.Box,{maxHeight:"300px"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===I||void 0===I?void 0:I.map((function(e){return n.a.createElement(h.Grid,{item:!0,xs:12,md:12,xl:12,key:null===e||void 0===e?void 0:e.collectionId},n.a.createElement(h.Card,{elevation:0,variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{mr:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,e.title)," (",e.courseCount&&e.courseCount>1?"".concat(e.courseCount," Items"):"".concat(e.courseCount," Item"),")")),n.a.createElement(h.Expanded,{flex:0},e.isAssigned?n.a.createElement(h.IconButton,{onClick:function(){return t=e.collectionId||0,d(t,[a]).then((function(e){e?(u(),C(!1,t),i("The course has been successfully removed from the collection.","success")):i("The course has already been removed from the collection.","warning"),b&&b(!0)})).catch((function(e){i(e,"error")})),void(b&&b(!1));var t},disabled:!e.isAssigned},n.a.createElement(h.SystemIcon,{icon:"Remove",size:"md",color:"primary"})):n.a.createElement(h.IconButton,{onClick:function(){return r=e.collectionId||0,t(r,a).then((function(e){e?(u(),C(!0,r),i("The course has been successfully added to the collection.","success")):i("The course has already been added from the collection.","warning"),b&&b(!0)})).catch((function(e){i(e,"error")})),void(b&&b(!1));var r},disabled:e.isAssigned},n.a.createElement(h.SystemIcon,{icon:"Add",size:"md",color:"primary"})))))))})))):n.a.createElement(Ia,{type:"filter-drawer"})),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Button,{variant:"outlined",color:"primary",onClick:function(){return g(!0),void y(!1)}},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Or Create a New Collection"))))))})),oo=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500]}),iconEnabled:{color:t.grey[500],backgroundColor:t.grey[200]},provider:{color:t.grey[500]},iconDisabled:{color:t.grey[200],backgroundColor:"transparent",border:"1px solid ".concat(t.grey[200])},filterBadge:{height:"".concat(i(.75),"px"),minWidth:"".concat(i(.75),"px"),borderRadius:"50%",backgroundColor:t.secondary.dark},courseFavoriteIcon:{minHeight:"100%"},courseDescriptionContainer:{color:t.grey[600]},courseDescription:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":3,"-webkit-box-orient":"vertical"},filterSelectField:{maxWidth:i(35),margin:"0 auto"}})})),so=Object(s.b)((function(e){var t,i;return{loggedUserId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,loggedUserRole:null===(i=e.users.loggedUser)||void 0===i?void 0:i.userRole,filters:e.catalog.filters,searchOptionTextFilter:e.catalog.searchOptionTextFilter,searchOptionCategories:e.catalog.searchOptionCategories,searchOptionFavoritesOnly:e.catalog.searchOptionFavoritesOnly,searchRequestBody:e.catalog.searchRequestBody,searchResults:e.catalog.searchResults,searchResultsCount:e.catalog.searchResultsCount,selectedFilterId:e.catalog.savedFilterId,savedFilters:e.catalog.savedFilters}}),(function(e){return{getScreenDescription:function(t){return e(Object(Ka.c)(t))},setFilters:function(t){return e(tr(t))},setSearchOptionTextFilter:function(t){return e(function(e){return{type:er.g,payload:e}}(t))},setSearchOptionCategories:function(t){return e(function(e){return{type:er.e,payload:e}}(t))},setSearchOptionFavoritesOnly:function(t){return e(function(e){return{type:er.f,payload:e}}(t))},setSearchRequestBody:function(t){return e(nr(t))},getCourseCatalog:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e(cr(t,i))},getCourseFilters:function(){return e(Object(Ka.b)())},toggleFavoriteCourse:function(t,i){return e(vr(t,i,!1))},getCatalogSavedFilters:function(t){return e(pr(t))},setSelectedFilterId:function(t){return e(rr(t))}}})),lo=Object($a.a)(Object(d.o)(so((function(e){var t,i,a,o=e.getCourseCatalog,s=e.searchOptionTextFilter,l=e.searchOptionCategories,d=e.searchOptionFavoritesOnly,u=e.searchRequestBody,v=e.searchResults,f=e.searchResultsCount,m=e.setSearchOptionTextFilter,y=e.setSearchOptionCategories,g=e.setSearchOptionFavoritesOnly,b=e.setSearchRequestBody,S=e.filters,E=e.setFilters,I=e.loggedUserId,O=e.loggedUserRole,C=e.getScreenDescription,j=e.toggleFavoriteCourse,w=e.getCatalogSavedFilters,P=e.savedFilters,T=e.selectedFilterId,A=e.setSelectedFilterId,N=e.getCourseFilters,k=e.history,D=Object(r.useState)("grid"),F=Object(c.a)(D,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),q=G[0],M=G[1],z=Object(r.useState)(!1),W=Object(c.a)(z,2),_=W[0],Y=W[1],$=Object(r.useState)(0),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(!1),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(!1),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)(!1),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)(void 0),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)(!1),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)(!1),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)(!1),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=oo(),Ne=Object(V.useTheme)(),ke=Object(V.useMediaQuery)(Ne.breakpoints.down("xs")),De=Object(V.useMediaQuery)(Ne.breakpoints.down("sm")),Le=null===P||void 0===P||null===(t=P.find((function(e){return!0===e.isDefault})))||void 0===t?void 0:t.catalogSavedFilterId,Je=Math.ceil((f||0)/((null===u||void 0===u?void 0:u.pageSize)||10)),Fe=Object(Ha.a)((function(e){e!==s&&(m(e),o(!0))}),500),Be=function(e,t){b(Object(J.a)(Object(J.a)({},u),{},{page:e,pageSize:t})),o()},Re=function(e){ve(e),ye(!0)},Ue={addCollection:q,setAddCollection:M,addCollectionFormOpen:_,setAddCollectionFormOpen:Y,updateCourseAssignment:Ce,setUpdateCourseAssignment:xe,collectionCourseId:K,setCollectionCourseId:Q,collectionListOpen:ee,setCollectionListOpen:te,messageDrawerOpen:ne,setMessageDrawerOpen:ae,filterDrawerOpen:le,setFilterDrawerOpen:ce},Ge=Object(r.useRef)(!0);Object(r.useEffect)((function(){Ge.current&&(w(!0).then((function(){m(""),N().then((function(){var e=null===P||void 0===P?void 0:P.find((function(e){return e.isDefault}));if(e){A(Le);var t,i,r,n,a,s=[];if(e)s=""===(null===(t=e.filter)||void 0===t?void 0:t.split("|")[0])?[]:(null===(i=e.filter)||void 0===i?void 0:i.split("|"))||[];else s=null!==(r=null===P||void 0===P||null===(n=P.find((function(e){return e.catalogSavedFilterId===Le})))||void 0===n||null===(a=n.filter)||void 0===a?void 0:a.split("|"))&&void 0!==r?r:[];E(s),b(Object(J.a)(Object(J.a)({},u),{},{searchCriteria:s,page:1,pageSize:10})),o()}else o(!0)})),E([]),y([]),g(!1)})),Ge.current=!1)}),[o,w,m,I,Ce,N,E,Le,P,u,y,g,b,A]),Object(r.useEffect)((function(){O&&C(p.Md.CourseCatalog).then((function(e){return Ee(e)}))}),[C,O]);var qe=[{Header:"Title",accessor:"title",disableSortBy:!0,Cell:function(e){var t,i=e.row,r=e.cell,a=i.original;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Link,{onClick:function(){return Re(a.courseId)}},n.a.createElement(h.Typography,{variant:"body2"},r.value)),a.courseTags&&n.a.createElement(h.Box,{display:"flex",flexWrap:"wrap"},null===(t=a.courseTags)||void 0===t?void 0:t.map((function(e,t){return t<=1&&n.a.createElement(h.Box,{mr:.5,mb:.125},n.a.createElement(h.Chip,{label:e.name,variant:"box"}))})),a.courseTags.length>2&&n.a.createElement(h.Tooltip,{title:a.courseTags.join(", ")},n.a.createElement(h.Box,{mr:.5,component:"span"},n.a.createElement(h.Chip,{label:"".concat(a.courseTags.length-2,"+"),variant:"box"})))))}},{Header:"Format",accessor:"courseFormatCategories",disableSortBy:!0,Cell:function(e){var t,i,r,a=e.row.original,o=null===(t=a.courseFormatCategories)||void 0===t?void 0:t.includes("Classroom"),s=null===(i=a.courseFormatCategories)||void 0===i?void 0:i.includes("Webcast"),l=null===(r=a.courseFormatCategories)||void 0===r?void 0:r.includes("On-demand");return n.a.createElement(h.Box,{mr:2},n.a.createElement(h.Row,{flex:0},n.a.createElement(h.Expanded,{flex:0},l?n.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},n.a.createElement(kn,{format:"On-demand",size:"sm",type:"duotone"}))):n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},n.a.createElement(kn,{format:"On-demand",size:"sm",type:"duotone"}))),n.a.createElement(h.Expanded,{flex:0,mr:.5,ml:.5},o?n.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},n.a.createElement(kn,{format:"Classroom",size:"sm",type:"duotone"}))):n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},n.a.createElement(kn,{format:"Classroom",size:"sm",type:"duotone"}))),n.a.createElement(h.Expanded,{flex:0},s?n.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},n.a.createElement(kn,{format:"Webcast",size:"sm",type:"duotone"}))):n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},n.a.createElement(kn,{format:"Webcast",size:"sm",type:"duotone"})))))}},{Header:"Provider",accessor:"provider",disableSortBy:!0,Cell:function(e){var t=e.cell;return n.a.createElement(h.Typography,{variant:"body2"},t.value)}},{Header:"",accessor:"userCollection",disableSortBy:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0},n.a.createElement(ro,{userCollection:t.userCollection,courseId:t.courseId||0})),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Tooltip,{title:"Favorite",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(h.Checkbox,{disableRipple:!0,checked:t.userFavorite,formikContext:!1,icon:n.a.createElement(h.SystemIcon,{type:"duotone",icon:"Star"}),checkedIcon:n.a.createElement(h.SystemIcon,{type:"duotone",color:"secondary",icon:"Star"}),onClick:function(e){var i;j(null!==(i=t.courseId)&&void 0!==i?i:0,t.userFavorite||!1),e.preventDefault()}})))))}}],Me=[{label:n.a.createElement(h.Tooltip,{title:"On-demand",placement:"top"},n.a.createElement("span",null,n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},n.a.createElement(h.Box,{display:"flex",pr:ke?0:.5},n.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",size:"xs"})),n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Typography,{variant:"body1"},"On-Demand"))))),value:"On-demand"},{label:n.a.createElement(h.Tooltip,{title:"Classroom",placement:"top"},n.a.createElement("span",null,n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},n.a.createElement(h.Box,{display:"flex",pr:ke?0:.5},n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",size:"xs"})),n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Typography,{variant:"body1"},"Classroom"))))),value:"Classroom"},{label:n.a.createElement(h.Tooltip,{title:"Webinar",placement:"top"},n.a.createElement("span",null,n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},n.a.createElement(h.Box,{display:"flex",pr:ke?0:.5},n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",size:"xs"})),n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Typography,{variant:"body1"},"Webinar"))))),value:"Webcast"}];return n.a.createElement(h.Screen,{titleBar:{title:(Se&&""!==Se.title?Se.title:"Course Catalog")||"Course Catalog",description:Se?n.a.createElement(h.Column,null,null!==Se.shortDescription&&""!==Se.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(Se.shortDescription)}),null!==Se.text&&""!==Se.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return ae(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))},bgColor:"default"},n.a.createElement(Qa.Provider,{value:Ue},n.a.createElement(h.Box,{mt:2,mb:3},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:8,xl:6},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,null,n.a.createElement(h.TextField,{hiddenLabel:!0,placeholder:"Search Courses",fullWidth:!0,dense:!0,onChange:function(e){return Fe(e.target.value)},startAdornment:n.a.createElement(h.SystemIcon,{icon:"Search",size:"xs"}),formikContext:!1}),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement(h.Link,{onClick:function(){k.push({pathname:"user-courses/my-collections",state:{fromCourseCatalog:!0}})}},"My Collection")),n.a.createElement(h.Box,{mr:1,ml:1},"|"),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement(h.Link,{onClick:function(){return ce(!0)}},n.a.createElement(h.Badge,{invisible:!S||S.length<1,variant:"dot",classes:{dot:Ae.filterBadge},color:"secondary"},"Advanced Search"))),(S&&S.length>0||l&&l.length>0||d)&&n.a.createElement(h.IconButton,{color:"primary",size:"small",onClick:function(){E([]),A(void 0),y([]),g(!1),o(!0,!0)}},n.a.createElement(h.SystemIcon,{icon:"ClearFilters",size:"xs",color:"secondary"}))))),n.a.createElement(h.Box,{ml:2,hidden:ke},n.a.createElement(h.Tooltip,{title:"Cards View"},n.a.createElement(h.IconButton,{onClick:function(){return R("grid")},color:"grid"===B?"primary":"default"},n.a.createElement(h.SystemIcon,{icon:"ViewAsGrid",size:"sm"}))),n.a.createElement(h.Tooltip,{title:"List View"},n.a.createElement(h.IconButton,{onClick:function(){return R("list")},color:"list"===B?"primary":"default"},n.a.createElement(h.SystemIcon,{icon:"ViewAsList",size:"sm"})))))))),n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center",alignItems:"center"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:4,lg:5},n.a.createElement(h.Wrap,{alignment:"center",runSpacing:4},n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Box,{mr:1},n.a.createElement(h.Typography,{variant:"h6"},"Showing ".concat((null===v||void 0===v?void 0:v.length)||0," ").concat((null===v||void 0===v?void 0:v.length)&&(null===v||void 0===v?void 0:v.length)>1?"Courses":"Course")))),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Tooltip,{title:"Course Favorites",placement:"top"},n.a.createElement(h.Chip,{label:n.a.createElement(h.Typography,{variant:"caption"},"My Favorites"),size:"small",color:"default",avatar:n.a.createElement(h.Avatar,{customBackgroundColor:"#ffffff"},n.a.createElement(h.Box,{mr:-.375},n.a.createElement(h.Checkbox,{className:Ae.courseFavoriteIcon,onChange:function(e,t){return function(e){g(e),o(!0)}(t)},checked:d,formikContext:!1,icon:n.a.createElement(h.SystemIcon,{size:"xs",type:"duotone",color:"grey700",icon:"Star"}),checkedIcon:n.a.createElement(h.SystemIcon,{size:"xs",type:"duotone",color:"secondary",icon:"Star"})})))}))))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:8,lg:7},n.a.createElement(h.Wrap,{alignment:"center",runSpacing:4,spacing:De?4:0,mainAxisAlignment:De?"center":"end"},n.a.createElement(h.Expanded,{flex:ke?1:0},n.a.createElement(h.Box,{mr:ke?"auto":De?0:1,maxWidth:ke?280:void 0,margin:"0 auto"},n.a.createElement(h.ToggleButtonGroup,{size:"small",id:"CourseFormatToggle",options:Me,exclusive:!1,value:l,onChange:function(e,t){return y(t),void o(!0)},formikContext:!1,stretch:ke}))),n.a.createElement(h.Expanded,{flex:ke?1:0},n.a.createElement(h.Box,{className:Object(Va.default)(Object(Sa.a)({},Ae.filterSelectField,ke))},n.a.createElement(h.SelectField,{fullWidth:ke,id:"catalogSavedFilterId",variant:"outlined",value:T||Le||1,onOpen:function(){return Te(!0)},onClose:function(){return Te(!1)},formikContext:!1,dense:!0,onChange:function(e){return function(e,t){A(e);var i,r,n,a,s,l=[];t?l=(null===(i=t.filter)||void 0===i?void 0:i.split("|"))||Array():l=""===(null===P||void 0===P||null===(r=P.find((function(t){return t.catalogSavedFilterId===e})))||void 0===r||null===(n=r.filter)||void 0===n?void 0:n.split("|")[0])?[]:(null===P||void 0===P||null===(a=P.find((function(t){return t.catalogSavedFilterId===e})))||void 0===a||null===(s=a.filter)||void 0===s?void 0:s.split("|"))||[];E(l),b(Object(J.a)(Object(J.a)({},u),{},{searchCriteria:l,page:1,pageSize:10})),o()}(e.target.value,void 0)},startAdornment:"View:"},n.a.createElement(h.MenuItem,{key:-1,value:-1,disabled:!0},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1,pb:.3},n.a.createElement(h.Typography,{variant:"subtitle2"},"Custom Filter")))),P&&P.map((function(e){return n.a.createElement(h.MenuItem,{key:e.catalogSavedFilterId,value:e.catalogSavedFilterId},n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{flex:1,mr:1,pb:.3},n.a.createElement(h.Typography,{variant:"body1"},e.name)),Pe&&Le===e.catalogSavedFilterId?n.a.createElement(h.Box,{my:"auto"},n.a.createElement(h.Tooltip,{title:"Default"},n.a.createElement("span",null,n.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))):void 0))}))))))))),n.a.createElement(h.Grid,{container:!0,spacing:"card"},0===(null===v||void 0===v?void 0:v.length)?n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No courses found."))):v&&"grid"===B?n.a.createElement(n.a.Fragment,null,v.map((function(e){var t,i,r,a,o,s,l=null===(t=e.courseFormatCategories)||void 0===t?void 0:t.includes("Classroom"),c=null===(i=e.courseFormatCategories)||void 0===i?void 0:i.includes("Webcast"),d=null===(r=e.courseFormatCategories)||void 0===r?void 0:r.includes("On-demand"),u=null!==(a=e.label)&&void 0!==a?a:"",v="Completed"===u?"success":"Enrolled"===u?"primary":"default";return n.a.createElement(h.Grid,{key:e.courseId,item:!0,xs:12,sm:ke?12:6,lg:ke?12:4,stretchContent:!0},n.a.createElement(h.Card,{variant:"elevation"},n.a.createElement(h.CardHeader,{classes:{title:Ae.cardTitle,subheader:Ae.cardSubheader},title:n.a.createElement(h.Box,null,n.a.createElement(h.Row,null,n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:Object(x.isEmpty)(u)?12:9},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"bold"},e.title)),!Object(x.isEmpty)(u)&&n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-right"},n.a.createElement(h.Chip,{label:u,variant:"box",color:v})))),e.courseId&&n.a.createElement(h.Typography,{variant:"subtitle2",weight:"semi-bold"},e.provider))}),n.a.createElement(h.CardContent,{noTopPadding:!0},n.a.createElement(h.Box,{mr:2},n.a.createElement(h.Row,{flex:0},n.a.createElement(h.Expanded,{flex:0},d?n.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},n.a.createElement(kn,{format:"On-demand",size:"sm",type:"duotone"}))):n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},n.a.createElement(kn,{format:"On-demand",size:"sm",type:"duotone"}))),n.a.createElement(h.Expanded,{flex:0,mr:.5,ml:.5},l?n.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},n.a.createElement(kn,{format:"Classroom",size:"sm",type:"duotone"}))):n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},n.a.createElement(kn,{format:"Classroom",size:"sm",type:"duotone"}))),n.a.createElement(h.Expanded,{flex:0},c?n.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},n.a.createElement(kn,{format:"Webcast",size:"sm",type:"duotone"}))):n.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},n.a.createElement(kn,{format:"Webcast",size:"sm",type:"duotone"}))))),n.a.createElement(h.Box,{className:Ae.courseDescriptionContainer},e.description?n.a.createElement(h.Tooltip,{title:null!==(o=n.a.createElement(h.TextEditorView,{model:e.description}))&&void 0!==o?o:""},n.a.createElement(h.Box,{component:"span"},n.a.createElement(h.Typography,{variant:"subtitle2",className:Ae.courseDescription},n.a.createElement(h.TextEditorView,{model:L(e.description)})))):n.a.createElement(n.a.Fragment,null,n.a.createElement("br",null),n.a.createElement(h.Typography,{variant:"subtitle2"},"No description available."))),e.courseTags&&n.a.createElement(h.Box,{mt:2,display:"flex",flexWrap:"wrap"},null===(s=e.courseTags)||void 0===s?void 0:s.map((function(e,t){return t<=1&&n.a.createElement(h.Box,{mr:.5,mb:.125},n.a.createElement(h.Chip,{label:e.name,variant:"box"}))})),e.courseTags.length>2&&n.a.createElement(h.Tooltip,{title:e.courseTags.map((function(e){return e.name})).join(", ")},n.a.createElement(h.Box,{mr:.5,component:"span"},n.a.createElement(h.Chip,{label:"".concat(e.courseTags.length-2,"+"),variant:"box"}))))),n.a.createElement(h.CardActions,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0},n.a.createElement(ro,{userCollection:e.userCollection,courseId:e.courseId||0})),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Tooltip,{title:"Favorite",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(h.Checkbox,{disableRipple:!0,checked:e.userFavorite,formikContext:!1,icon:n.a.createElement(h.SystemIcon,{type:"duotone",icon:"Star"}),checkedIcon:n.a.createElement(h.SystemIcon,{type:"duotone",color:"secondary",icon:"Star"}),onClick:function(t){var i;j(null!==(i=e.courseId)&&void 0!==i?i:0,e.userFavorite||!1),t.preventDefault()}}))))),n.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){return Re(e.courseId)}},"Details"))))})),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(Ya.a,{count:Je,defaultPage:(null===u||void 0===u?void 0:u.page)||1,onChange:function(e,t){return Be(t)}}))):v&&"list"===B?n.a.createElement(h.DataGrid,{id:"courseId",advanced:!0,loading:null===v,data:v,columns:qe,totalRecords:null!==f&&void 0!==f?f:0,onNavigate:Be,pageIndex:null!==(i=null===u||void 0===u?void 0:u.page)&&void 0!==i?i:1}):n.a.createElement(n.a.Fragment,null,"grid"===B?[1,2,3,4,5,6].map((function(e){return n.a.createElement(h.Grid,{key:e,item:!0,xs:12,sm:6,lg:4,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardHeader,{classes:{title:Ae.cardTitle,subheader:Ae.cardSubheader},title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{classes:{root:Ae.cardContent},noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"})),n.a.createElement(h.CardActions,null,n.a.createElement(h.Skeleton,{width:"30%"}))))})):n.a.createElement(h.DataGrid,{id:"courseId",advanced:!0,loading:null===v,data:v,columns:qe,totalRecords:null!==(a=v&&v.length)&&void 0!==a?a:0,hideRowsPerPage:!0,pageSize:10}))),le&&n.a.createElement(io,null),me&&n.a.createElement(aa,{hidePastSessions:!0,courseId:he,categories:l,open:me,onClose:function(){return ye(!1)}}),ne&&n.a.createElement(dn,{open:ne,onClose:function(){return ae(!1)},title:(Se&&""!==Se.title?Se.title:"Course Catalog")||"Course Catalog",description:null===Se||void 0===Se?void 0:Se.text}),ee&&n.a.createElement(ao,{open:ee,onClose:function(){return te(!1)},courseId:K}),_&&n.a.createElement(Xa,{courseId:K,open:_,onClose:function(){Y(!1)}})))})))),co=i(243),uo=i.n(co),ho=i(247),vo=i.n(ho),po=function(e){return function(t){var i=t.children;return n.a.createElement(vo.a,null,n.a.createElement(e,t,i))}},fo=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses}}),(function(){return{}}))((function(e){var t,i=e.firmLicenses,r=null!==(t=e.session.sessionLicenses)&&void 0!==t?t:[];return n.a.createElement(h.Grid,{spacing:"form",container:!0},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{m:1},r.map((function(e){var t,r,a=null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.filter((function(t){var r,n,a=null===i||void 0===i||null===(r=i.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(n=r.licenseProperties)||void 0===n?void 0:n.find((function(e){return e.propertyId===t.propertyId}));return 5===(null===a||void 0===a?void 0:a.typeId)})),o=null===(r=e.sessionLicenseProperties)||void 0===r?void 0:r.filter((function(t){var r,n,a=null===i||void 0===i||null===(r=i.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(n=r.licenseProperties)||void 0===n?void 0:n.find((function(e){return e.propertyId===t.propertyId})),o=3===(null===a||void 0===a?void 0:a.typeId)?Object(N.c)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue,s=!0;return 3===(null===a||void 0===a?void 0:a.typeId)&&(s=fn()(t.propertyValue).isValid()),""!==o&&(1===(null===a||void 0===a?void 0:a.typeId)||3===(null===a||void 0===a?void 0:a.typeId))&&s}));return n.a.createElement(h.Box,{mt:1,key:"license-".concat(e.licenseId)},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{key:e.name,variant:"button",display:"inline"},e.name),e.expirationDate&&null!==e.expirationDate&&e.expirationDate<=new Date&&n.a.createElement(h.Typography,{variant:"body1",color:"error"},"\xa0 ",n.a.createElement("i",null," ","(Expired ".concat(Object(N.c)(e.expirationDate),")"))),2===e.licenseStatus&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),3===e.licenseStatus&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),n.a.createElement(h.Box,{ml:2},function(e,t){var i,r;return((null===t||void 0===t?void 0:t.length)||0)>0?0===((null===(i=e.sessionLicenseCredits)||void 0===i?void 0:i.filter((function(e){var t;return(null!==(t=e.creditValue)&&void 0!==t?t:0)>0})).length)||0)?n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"}," - No Credits")):n.a.createElement(h.Box,{pt:1,pl:1,pr:1},null===(r=e.sessionLicenseCredits)||void 0===r?void 0:r.map((function(e,i){var r,a,o,s=null!==(r=null===t||void 0===t||null===(a=t.find((function(t){return t.creditId===e.creditId})))||void 0===a?void 0:a.name)&&void 0!==r?r:"";return e.creditValue>0?n.a.createElement("div",{key:e.creditName},n.a.createElement(h.Typography,{variant:"caption",weight:"regular",display:"inline"},"".concat(e.creditValue," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"},"".concat(null!==(o=e.creditName)&&void 0!==o?o:s,"; ")),i%2===0?"":n.a.createElement("br",null)):""}))):n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"}," - No Credits"))}(e,e.sessionLicenseCredits),a&&a.length>0?n.a.createElement(h.Box,{style:{border:"1px solid #c2c2c2",borderRadius:"5px"},display:"inline-block",pb:.5,pl:1,pr:1},null===a||void 0===a?void 0:a.map((function(t){var r,a,o,s=null===i||void 0===i||null===(r=i.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(a=r.licenseProperties)||void 0===a||null===(o=a.find((function(e){return e.propertyId===t.propertyId})))||void 0===o?void 0:o.label;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2"}}," ".concat(s,"; ")))}))):"",o&&o.length>0?n.a.createElement(h.Divider,null):"",o&&o.length>0?n.a.createElement(h.Box,{p:1,style:{backgroundColor:"#fafafa"}},null===o||void 0===o?void 0:o.map((function(t,r){var a,o,s=null===i||void 0===i||null===(a=i.find((function(t){return t.licenseId===e.licenseId})))||void 0===a||null===(o=a.licenseProperties)||void 0===o?void 0:o.find((function(e){return e.propertyId===t.propertyId})),l=3===(null===s||void 0===s?void 0:s.typeId)?Object(N.c)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",weight:"bold",style:{color:"#c2c2c2"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),r%2===0?"":n.a.createElement("br",null))}))):""))})))))})),mo=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{confirmDialog:function(t){return e(Object($n.b)(t))},getSessionEvaluation:function(t){return e(function(e){return function(t){return q.R.getSessionEvaluationById(void 0,p.bd.fromJS({sessionEvaluationId:e})).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}}(t))},saveSessionEvaluationAnswers:function(t,i,r){return e(function(e,t,i){return function(r){return q.R.saveSessionEvaluationAnswers(void 0,p.Yd.fromJS({sessionEvaluationId:e,answers:t,isSubmit:"submit"===i})).then((function(e){return"save"===i?r(Object(M.a)({message:"Save Successful!",variant:"success"})):"submit"===i&&r(Object(M.a)({message:"Submit Successful!",variant:"success"})),e})).catch((function(e){throw r(Object(M.b)(e)),e}))}}(t,i,r))},getAllSessionInstructors:function(t){return e(gr(t))}}}))((function(e){var t,i,a,o,s,l,d,u,v,p,f,m=e.open,y=e.loggedUser,g=e.sessionEvaluationId,b=e.confirmDialog,S=e.onSubmit,E=e.onClose,I=e.getAllSessionInstructors,O=e.getSessionEvaluation,C=e.saveSessionEvaluationAnswers,x=Object(r.useState)(),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(),A=Object(c.a)(T,2),k=A[0],D=A[1],F=Object(r.useState)(void 0),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(void 0),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(void 0),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)(void 0),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(!1),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(!0),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)(!0),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)("save"),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)(!1),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(!1),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)(!1),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)(!1),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=Object(r.useState)(void 0),Ne=Object(c.a)(Ae,2),ke=Ne[0],De=Ne[1];Object(r.useEffect)((function(){m&&g&&O(g).then((function(e){var t;I(null!==(t=e.sessionId)&&void 0!==t?t:0).then((function(e){De(e)})),P(e),Je((null===e||void 0===e?void 0:e.sessionEvaluationAnswers)||[]),xe(!1),te(!!(null===e||void 0===e?void 0:e.evaluationDate)),D(null===e||void 0===e?void 0:e.evaluation)}))}),[m,g,O,I]),Object(r.useEffect)((function(){m&&k&&(U((null===k||void 0===k?void 0:k.sections)&&(null===k||void 0===k?void 0:k.sections.length)>0&&(null===k||void 0===k?void 0:k.sections[0].questions)&&(null===k||void 0===k?void 0:k.sections[0].questions.length)>0?null===k||void 0===k?void 0:k.sections[0].questions[0]:void 0),z((null===k||void 0===k?void 0:k.sections)&&(null===k||void 0===k?void 0:k.sections.length)>0?null===k||void 0===k?void 0:k.sections[0].sectionId:void 0),ae(!((null===k||void 0===k?void 0:k.sections)&&(null===k||void 0===k?void 0:k.sections.length)>0&&((null===k||void 0===k?void 0:k.sections.length)>1||(null===k||void 0===k?void 0:k.sections[0].questions)&&(null===k||void 0===k?void 0:k.sections[0].questions.length)>1))))}),[m,k]);var Le,Je=function(e){var t=new Array;null===e||void 0===e||e.forEach((function(e){t.push({questionId:e.questionId||0,initialAnswer:e.answer||"",answer:e.answer||"",isValid:!1,isCommentValid:!1,instructorId:e.instructorId})})),Y(e),Q(t)},Fe=function(){var e,t,i,r,n,a,o,s,l,c,d,u,h,v,p,f=Object(J.a)({},R),m=null===k||void 0===k||null===(e=k.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===M}))[0];m&&m.questions&&(null!==(t=f.sequence)&&void 0!==t?t:0)===m.questions.length?(m=null===k||void 0===k||null===(c=k.sections)||void 0===c?void 0:c.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=m)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)+1}))[0],f=(null===(d=m)||void 0===d||null===(u=d.questions)||void 0===u?void 0:u.filter((function(e){return 1===e.sequence}))[0])||void 0,z(null===(h=m)||void 0===h?void 0:h.sectionId),U(f)):(f=(null===(v=m)||void 0===v||null===(p=v.questions)||void 0===p?void 0:p.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=f)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)+1}))[0])||void 0,U(f));(null===(i=m)||void 0===i?void 0:i.sequence)!==(null===k||void 0===k||null===(r=k.sections)||void 0===r?void 0:r.length)||(null===(n=f)||void 0===n?void 0:n.sequence)!==(null===(a=m)||void 0===a||null===(o=a.questions)||void 0===o?void 0:o.length)&&0!==(null===(s=m)||void 0===s||null===(l=s.questions)||void 0===l?void 0:l.length)||ae(!0),le&&ce(!1)},Be=function(){var e,t,i,r,n,a,o,s,l,c,d,u,h=Object(J.a)({},R),v=null===k||void 0===k||null===(e=k.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===M}))[0];(null!==(t=h.sequence)&&void 0!==t?t:0)-1<1?(v=null===k||void 0===k||null===(o=k.sections)||void 0===o?void 0:o.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=v)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0],h=(null===(s=v)||void 0===s||null===(l=s.questions)||void 0===l?void 0:l.filter((function(e){var t,i;return e.sequence===(null===(t=v)||void 0===t||null===(i=t.questions)||void 0===i?void 0:i.length)}))[0])||void 0,z(null===(c=v)||void 0===c?void 0:c.sectionId),U(h)):(h=(null===(d=v)||void 0===d||null===(u=d.questions)||void 0===u?void 0:u.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=h)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0])||void 0,U(h));1!==(null===(i=v)||void 0===i?void 0:i.sequence)||1!==(null===(r=h)||void 0===r?void 0:r.sequence)&&0!==(null===(n=v)||void 0===n||null===(a=n.questions)||void 0===a?void 0:a.length)||ce(!0),ne&&ae(!1)},Re=function(e){ve(e),"save"!==e&&ye(!0)},Ue=function(e,t){Ee(!0),C((null===w||void 0===w?void 0:w.sessionEvaluationId)||0,e,t).then((function(e){xe(!1),Ee(!1),Y(e),"submit"===t&&(te(!0),S&&S())}))},Ge=function(){Re("submit")},qe=function(){Re("save");var e=Me(K||[]);Ue(e,"save")},Me=function(e){var t=new Array;return e.forEach((function(e){var i=null===_||void 0===_?void 0:_.filter((function(t){return t.questionId===e.questionId&&(t.instructorId===e.instructorId||null===t.instructorId)})),r=0;i&&(null===i||void 0===i?void 0:i.length)>0&&(r=i[0].sessionEvaluationAnswerId||0),t.push({sessionEvaluationAnswerId:r,sessionEvaluationId:null===w||void 0===w?void 0:w.sessionEvaluationId,questionId:e.questionId,answer:e.answer,instructorId:e.instructorId})})),t},ze=function(){Ce?b({message:"Do you want to save your changes?",title:"Confirm Save",OnConfirm:function(){qe(),E()},onCancel:E}):E()};return n.a.createElement(hn.a,{fullScreen:!0,open:m,onClose:ze},n.a.createElement(h.Backdrop,{open:!k||!_},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(un.DialogHeader,{colorMode:"dark",titleBar:{onClose:ze}}),n.a.createElement(un.DialogBody,null,n.a.createElement(h.Box,null,(null===w||void 0===w?void 0:w.course)&&(null===w||void 0===w?void 0:w.session)&&n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Card,{variant:"outlined",status:"primary"},n.a.createElement(h.CardHeader,{style:{padding:"8px"},title:n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{p:1,pr:2,my:"auto"},n.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===w||void 0===w||null===(t=w.course)||void 0===t?void 0:t.title),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null===w||void 0===w||null===(i=w.course)||void 0===i?void 0:i.provider)),n.a.createElement(h.Box,{p:1,my:"auto"},n.a.createElement(h.IconButton,{onClick:function(){return Te(!Pe)}},n.a.createElement(h.SystemIcon,{icon:Pe?"CollapseVertical":"ExpandVertical",size:"md"}))))}),n.a.createElement(h.Collapse,{in:Pe},n.a.createElement(h.Divider,null),n.a.createElement(h.CardContent,null,n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},n.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(a=null===w||void 0===w?void 0:w.session.startDate)&&void 0!==a?a:new Date})),n.a.createElement(h.Box,{flex:1,my:"auto"},(null===(o=w.session.title)||void 0===o?void 0:o.trim())!==(null===(s=w.course.title)||void 0===s?void 0:s.trim())&&n.a.createElement(h.Box,{mb:.5},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},w.session.title)),n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},(null===w||void 0===w?void 0:w.session.startTime)?"".concat(null===w||void 0===w?void 0:w.session.startTime):"",(null===w||void 0===w?void 0:w.session.endTime)?" - ".concat(null===w||void 0===w?void 0:w.session.endTime):""," ",(null===w||void 0===w?void 0:w.session.startTime)||(null===w||void 0===w?void 0:w.session.endTime)?" ".concat(null!==(l=null===w||void 0===w?void 0:w.session.timezone)&&void 0!==l?l:"","; "):"",Object(N.c)(null===w||void 0===w?void 0:w.session.startDate,"MMM DD, YYYY")||"",(null===w||void 0===w?void 0:w.session.endDate)&&(null===w||void 0===w?void 0:w.session.endDate)!==(null===w||void 0===w?void 0:w.session.startDate)&&" - ".concat(Object(N.c)(null===w||void 0===w?void 0:w.session.endDate,"MMM DD, YYYY")||"")))),((null===w||void 0===w?void 0:w.session.location)||(null===w||void 0===w?void 0:w.session.room))&&n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},null===w||void 0===w?void 0:w.session.location,(null===w||void 0===w?void 0:w.session.room)?"; ".concat(null===w||void 0===w?void 0:w.session.room):""))),n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return n.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(d=null===(u=w.session.courseFormat)||void 0===u?void 0:u.portalCategory)&&void 0!==d?d:"")),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},null===w||void 0===w||null===(v=w.session.courseFormat)||void 0===v?void 0:v.name)))),n.a.createElement(h.Box,{flex:1,my:"auto"},ke&&ke.length>0&&(Le={icon:n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center",justifyItems:"center"}},n.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",ke.map((function(e){return e.fullName})).join(", ")))},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{mb:.1,mr:.5,textAlign:"center",style:{width:"20px"}},Le.icon),Le.label)))),(null===w||void 0===w?void 0:w.session.detail)&&n.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:L(null===w||void 0===w?void 0:w.session.detail)}}))))),k&&K&&ke?n.a.createElement(Br,{disabled:ee,evaluation:k,currentQuestion:R,currentSectionId:M,validate:me,evaluationAnswers:K,instructors:ke,setValidate:ye,onValidate:function(e,t){if("next"===he||"back"===he){var i=t.filter((function(e){return e.questionId===(null===R||void 0===R?void 0:R.questionId)}));if(0===i.length||i.length>0&&i[0].isValid&&i[0].isCommentValid){var r=Me(i);ee||Ue(r,he),"next"===he?Fe():Be()}}else if("submit"===he&&e){!function(e){b({message:"Are you sure you want to submit this evaluation?",title:"Confirm Submit",OnConfirm:function(){Ue(e,"submit")}})}(Me(t))}},onChange:function(e){Q(e),e.filter((function(e){return e.answer!==e.initialAnswer})).length>0?xe(!0):xe(!1)},tokens:{firstName:(null===y||void 0===y?void 0:y.firstName)||"",lastName:(null===y||void 0===y?void 0:y.lastName)||"",office:(null===y||void 0===y||null===(p=y.location)||void 0===p?void 0:p.name)||"",department:(null===y||void 0===y||null===(f=y.userDepartment)||void 0===f?void 0:f.map((function(e){return e.name})).join(", "))||""}}):n.a.createElement(Ia,{type:"filter-drawer"}))),k&&_&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Hidden,{smDown:!0},!ee&&n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"}),n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"outlined",onClick:function(){qe()},disabled:"save"!==he&&Se,loading:"save"===he&&Se},"Save")),n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Ge()},disabled:"submit"!==he&&Se,loading:"submit"===he&&Se},"Submit")),n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"})))),n.a.createElement(h.Hidden,{mdUp:!0},n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})),n.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"default",variant:"contained",type:"submit",onClick:function(){ee?Be():Re("back")},disabled:le||Se&&"submit"===he},"Back")),ne?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Ge()},disabled:ee,loading:"submit"===he&&Se},"Submit"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){ee?Fe():Re("next")},disabled:ne},"Next"))),n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})))))))}));function yo(){yo=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var go=function(e,t){return function(i){return q.X.getCourseSessionByParticipant(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}},bo=function(e,t,i,r){return function(n){var a=new p.ab({userIdList:e,sessionId:t,isInstructor:i,isTentative:r,sendEmailConfirmation:!0});return q.R.create(void 0,a).then((function(e){return e})).catch((function(e){n(Object(M.a)({message:e.detail,variant:"error"}))}))}},So=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(o){var s={sessionParticipantIds:e,sessionParticipantStatusId:t,isParticipantUnvalidated:i,isCreditAdjusted:r,sessionId:n,isApproval:a,sendEmailConfirmation:!0};return q.R.update(void 0,p.Ee.fromJS(s)).then((function(e){return e})).catch((function(e){o(Object(M.b)(e))}))}},Eo=function(e,t,i){return function(r){var n=new p.af({sessionParticipantIds:e,completionDate:new Date(Object(Zt.j)(new Date)),sessionId:t,onlineCourseFailed:i});return q.R.validate(void 0,p.af.fromJS(n)).then((function(e){return e})).catch((function(e){r(Object(M.b)(e))}))}},Io=function(e){return function(t){var i=new p.Zd({sessionParticipantIds:e});return q.R.saveSessionEvaluation(void 0,p.Zd.fromJS(i)).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}},Oo=function(){var e=Object(l.a)(yo().mark((function e(){var t;return yo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=Zr.a.getItem("SCORM_CODE"))||null===t){e.next=3;break}return e.abrupt("return",t);case 3:return e.next=5,q.P.getToken(void 0).then((function(e){var t=new Date;return Zr.a.setItem("SCORM_CODE",e,{expires:t.getTime()+6e4}),e}));case 5:return t=e.sent,e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Co=function(){return function(e,t){var i=t().users,r=i.loggedUser,n=i.authenticatedUser,a=void 0!==n&&null!==n&&n.userRole?n.userRole[0].roleId:void 0!==r&&null!==r&&r.userRole?r.userRole[0].roleId:0;return q.J.getRoleElearningSetting(void 0,p.Uc.fromJS({roleId:a})).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}},xo=Object(V.makeStyles)((function(e){var t,i,r,n,a=e.breakpoints,o=e.palette,s=e.spacing;return Object(V.createStyles)({container:{minHeight:s(23.75),paddingTop:s(2.5),paddingBottom:s(2.5),display:"flex"},launchButton:(t={borderRadius:s(6.25)},Object(Sa.a)(t,a.up("xs"),{width:s(21.5),height:s(6.5)}),Object(Sa.a)(t,a.up("sm"),{width:s(31.5),height:s(7.5)}),Object(Sa.a)(t,a.up("md"),{width:s(32.25),height:s(10.625)}),Object(Sa.a)(t,a.up("lg"),{width:s(39.75),height:s(12.25)}),t),progressContainer:(i={display:"flex",background:o.grey[900],justifyContent:"space-evenly",textAlign:"center",margin:"0 auto",borderRadius:s(6.25),alignItems:"center",paddingLeft:s(3),paddingRight:s(3)},Object(Sa.a)(i,a.up("xs"),{minHeight:s(6.5)}),Object(Sa.a)(i,a.up("sm"),{minHeight:s(7.5)}),Object(Sa.a)(i,a.up("md"),{width:s(47.5),minHeight:s(10.625)}),Object(Sa.a)(i,a.up("lg"),{minHeight:s(12.25),width:s(61.25)}),i),h5Label:(r={},Object(Sa.a)(r,a.down("md"),{fontSize:s(2.75)}),Object(Sa.a)(r,a.down("sm"),{fontSize:s(2.5)}),Object(Sa.a)(r,a.down("xs"),{fontSize:s(2)}),r),status:{color:"#ffffff"},statusLabel:{color:o.grey[700]},divider:{height:s(5.75),width:s(.125),background:"#000000"},sync:(n={border:"".concat(s(.125),"px solid ").concat(o.grey[700]),borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",margin:"0 auto",cursor:"pointer"},Object(Sa.a)(n,a.up("xs"),{width:s(6.5),height:s(6.5)}),Object(Sa.a)(n,a.up("sm"),{width:s(7.5),height:s(7.5)}),Object(Sa.a)(n,a.up("md"),{width:s(10.625),height:s(10.625)}),Object(Sa.a)(n,a.up("lg"),{width:s(12.25),height:s(12.25)}),n),syncDisabled:{backgroundColor:"#e0e0e0 !important"},syncLabel:Object(Sa.a)({color:o.secondary.main},a.down("xs"),{fontSize:s(1.375)}),syncLabelDisabled:{color:o.primary.contrastText}})})),jo=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{getPortalElearningSettingByRole:function(){return e(Co())},getPreviewLink:function(t,i){return e(function(e,t){return function(){var i=Object(l.a)(yo().mark((function i(r){var n;return yo().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n={redirectOnExitUrl:t},i.t0=$i.a,i.t1="".concat("https://cloud.scorm.com/api/v2","/courses/").concat(e,"/preview"),i.t2=n,i.t3="Bearer ",i.next=7,Oo();case 7:return i.t4=i.sent,i.t5=i.t3.concat.call(i.t3,i.t4),i.t6={Accept:"application/json","Content-Type":"application/json",Authorization:i.t5},i.t7={headers:i.t6},i.abrupt("return",i.t0.post.call(i.t0,i.t1,i.t2,i.t7).then((function(e){return e.data.launchLink})).catch((function(e){r(Object(M.b)(e))})));case 12:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()}(t,i))},getSession:function(t,i){return e(go(t,i))},getScormRegistration:function(t){return e(function(e){return function(t){return q.P.getScormRegistration(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getScormRegistrationByParticipantId:function(t){return e(function(e){return function(t){return q.P.getScormRegistrationByParticipantId(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getScormRegistrationProgress:function(t,i){return e(function(e,t){return function(i){return q.P.getScormRegistrationProgress(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},getScormRegistrationLaunchLink:function(t,i){return e(function(e,t){return function(i){return q.P.getScormRegistrationLaunchLink(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},getSessionParticipant:function(t,i){return e(function(e,t){var i=new p.gd({sessionId:e,userId:t});return function(e){return q.R.getSessionParticipant(void 0,i).then((function(e){return e.sessionParticipants})).catch((function(t){e(Object(M.a)({message:t.detail,variant:"error"}))}))}}(t,i))},registerParticipant:function(t,i,r,n){return e(bo(t,i,r,n))},resetFailedScorm:function(t){return e((i=t,function(e){var t=new p.wb({sessionParticipantId:i});return q.P.deleteScormRegistrationProgress(void 0,t).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}));var i},saveSessionEvaluation:function(t){return e(Io(t))},updateParticipant:function(t,i,r,n,a){return e(So(t,i,r,!1,n,a))},updateScormRegistration:function(t,i,r,n,a,o){return e(function(e,t,i,r,n,a){return function(o,s){var l=s().users.loggedUser,c=null===l||void 0===l?void 0:l.userId,d=new p.X({scormCourseId:e,sessionParticipantId:t,sessionId:i,userId:c,sessionMediaFileId:r,status:n,userLearningPackageDetailId:a});return q.P.createScormRegistration(void 0,p.X.fromJS(d)).then((function(){return!0})).catch((function(e){return o(Object(M.b)(e)),!1}))}}(t,i,r,n,a,o))},updateScormRegistrationProgress:function(t,i,r,n,a){return e(function(e,t,i,r,n){return function(a){var o=new p.Y({userLearningPackageDetailId:e,duration:t,score:i,status:r,userLearningPackageProgressId:n});return q.P.createScormRegistrationProgress(void 0,p.Y.fromJS(o)).then((function(e){return e})).catch((function(e){return a(Object(M.b)(e)),!1}))}}(t,i,r,n,a))},validateParticipant:function(t,i,r){return e(Eo(t,i,r))}}}))((function(e){var t,i,a=e.getPortalElearningSettingByRole,o=e.getPreviewLink,s=e.getSession,l=e.getScormRegistration,d=e.getScormRegistrationByParticipantId,u=e.getScormRegistrationProgress,v=e.getScormRegistrationLaunchLink,f=e.getSessionParticipant,m=e.registerParticipant,y=e.resetFailedScorm,g=e.saveSessionEvaluation,b=e.sessionId,S=e.updateParticipant,E=e.updateScormRegistration,I=e.updateScormRegistrationProgress,O=e.userId,C=e.validateParticipant,x=xo(),j=Object(r.useState)(),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(r.useState)(),J=Object(c.a)(L,2),F=J[0],B=J[1],R=Object(r.useState)(),U=Object(c.a)(R,2),G=U[0],q=U[1],z=Object(r.useState)(),W=Object(c.a)(z,2),_=W[0],Y=W[1],$=Object(r.useState)(),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(!1),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(!1),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)(),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)(void 0),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)(!1),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(!1),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)(!1),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)(!1),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=Object(r.useState)(!1),Ne=Object(c.a)(Ae,2),ke=Ne[0],De=Ne[1],Le=Object(r.useState)(!1),Je=Object(c.a)(Le,2),Fe=Je[0],Be=Je[1],Re=Object(r.useState)(!1),Ue=Object(c.a)(Re,2),Ge=Ue[0],qe=Ue[1],Me=Object(r.useState)(!1),ze=Object(c.a)(Me,2),We=ze[0],Ve=ze[1],_e=Object(r.useState)(!1),Ye=Object(c.a)(_e,2),$e=Ye[0],He=Ye[1],Ke=Object(V.useTheme)(),Qe=Object(V.useMediaQuery)(Ke.breakpoints.up("md")),Ze=Object(V.useMediaQuery)(Ke.breakpoints.up("sm")),Xe=(null===le||void 0===le?void 0:le.evaluationId)&&(null===le||void 0===le?void 0:le.evaluationId)>0,et=Object(r.useRef)(Xe),tt=Object(r.useRef)(P),it=Object(r.useRef)(k),rt=Object(r.useRef)(null!==F&&void 0!==F?F:0),nt=Object(r.useRef)(ne),at=Object(r.useRef)(_);et.current=Xe,nt.current=ne,Object(r.useEffect)((function(){a().then((function(e){Be(Boolean(e.enableMakeupDisqualifiedScorm))}))}),[a]),Object(r.useEffect)((function(){k&&_===p.ke.Failed&&Boolean(Fe)&&!$e&&qe(!0)}),[k,_,$e,Fe]),Object(r.useEffect)((function(){b&&(Te(!0),O&&s(b,O).then((function(e){ce(e),Te(!1);var t=e.scormCourseId,i=e.sessionMediaFiles,r=e.sessionParticipant;T(t),tt.current=t,D(i),it.current=i;var n=r&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0])&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId),a=r&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0])&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),o=r&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0])&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId);B(n),rt.current=null!==n&&void 0!==n?n:0,Q(a),Y(o),at.current=o})).catch((function(e){Object(M.b)(e)})))}),[s,b,O]),Object(r.useEffect)((function(){F&&(De(!0),l(F).then((function(e){q(void 0),Ve(e),e?d(F).then((function(e){u(F,!e).then((function(e){De(!1),q(e),He(!0)}))})):De(!1)})))}),[l,d,u,F]);var ot=function(){qe(!1)},st=function(){_&&F&&(q(void 0),Q(void 0),Y(void 0),at.current=void 0,De(!0),u(F,!0).then((function(e){var t=e.duration,i=e.score,r=e.status;q(e),O&&f(b,O).then((function(e){var n=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId,a=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageProgressId;void 0!==n&&void 0!==i&&void 0!==t&&r&&I(n,t,i,r,a).then((function(){b&&O&&f(b,O).then((function(e){Q(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),Y(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId),at.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,De(!1),ae(!1),nt.current=!1}))}))}))})))},lt=Object(r.useCallback)((function(){rt.current&&(De(!0),u(rt.current,!0).then((function(e){var t,i=e.duration,r=e.score,n=e.status;q(e),De(!1),void 0!==n&&"failed"===n.toLowerCase()?t=p.Ke.Failed:void 0!==n&&"passed"===n.toLowerCase()?(Ee(!0),xe(!0),t=p.Ke.Completed):t=p.Ke.InProgress,b&&O&&f(b,O).then((function(e){var a=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId,o=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageProgressId;tt.current&&it.current&&it.current.length>0&&it.current[0].sessionMediaFileId&&E(tt.current,rt.current,b,it.current[0].sessionMediaFileId,t,a).then((function(){Ve(!0),void 0!==a&&void 0!==r&&void 0!==i&&n&&I(a,i,r,n,o).then((function(){b&&O&&f(b,O).then((function(e){Ee(!1),Q(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),Y(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId),at.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,t===p.Ke.Completed||t===p.Ke.Failed?C([rt.current],b,t===p.Ke.Failed).then((function(){b&&O&&(Te(!0),s(b,O).then((function(t){var i=t.scormCourseId,r=t.sessionMediaFiles,n=t.sessionParticipant;ce(t),Te(!1),T(i),tt.current=i,D(r),it.current=r;var a=n&&(null===n||void 0===n?void 0:n.filter((function(e){return!e.isInstructor}))[0])&&(null===n||void 0===n?void 0:n.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId),o=n&&(null===n||void 0===n?void 0:n.filter((function(e){return!e.isInstructor}))[0])&&(null===n||void 0===n?void 0:n.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),s=n&&(null===n||void 0===n?void 0:n.filter((function(e){return!e.isInstructor}))[0])&&(null===n||void 0===n?void 0:n.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId);B(a),rt.current=null!==a&&void 0!==a?a:0,Q(o),Y(s),at.current=s,et.current&&g(e.map((function(e){return e.sessionParticipantId||0}))).then((function(){var t=e.map((function(e){return e.sessionParticipantId||0})),i=Object(c.a)(t,1)[0];ve(i)}))})).catch((function(e){Object(M.b)(e)}))),ae(!1),nt.current=!1})):(b&&O&&(Te(!0),s(b,O).then((function(e){var t=e.scormCourseId,i=e.sessionMediaFiles,r=e.sessionParticipant;ce(e),Te(!1),T(t),tt.current=t,D(i),it.current=i;var n=r&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0])&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId),a=r&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0])&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),o=r&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0])&&(null===r||void 0===r?void 0:r.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId);B(n),rt.current=null!==n&&void 0!==n?n:0,Q(a),Y(o),at.current=o})).catch((function(e){Object(M.b)(e)}))),ae(!1),nt.current=!1)}))}))}))}))})))}),[u,s,f,g,b,O,E,I,C]);Object(r.useEffect)((function(){ne&&_&&_!==p.ke.Validated&&_!==p.ke.Failed&<()}),[ne,_,lt]);var ct=Object(r.useCallback)((function(e){var t=e.document;b&&t.write('')),!at.current||at.current!==p.ke.Validated&&at.current!==p.ke.Failed?rt.current?b&&S([rt.current],p.ke.InProgress,!1,b,!1).then((function(){O&&f(b,O).then((function(e){Q(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),Y(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId),at.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,b&&tt.current&&it.current&&it.current.length>0&&it.current[0].sessionMediaFileId&&E(tt.current,rt.current,b,it.current[0].sessionMediaFileId,p.Ke.InProgress,null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId).then((function(){b&&v(rt.current,"".concat(window.location.origin,"/learning-package-player/closeWindow")||!1).then((function(e){t.getElementById("scormWindow_".concat(b)).src=e}))}))}))})):b&&O&&m([O],b,!1,!1).then((function(){f(b,O).then((function(e){var i=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId;B(i),rt.current=null!==i&&void 0!==i?i:0,Q(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),Y(null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId),at.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,i&&S([i],p.ke.InProgress,!1,b,!1).then((function(){i&&tt.current&&it.current&&it.current.length>0&&it.current[0].sessionMediaFileId&&E(tt.current,i,b,it.current[0].sessionMediaFileId,p.Ke.InProgress,null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId).then((function(){v(i,"".concat("micronapps.com","sessionId=").concat(b)||!1).then((function(e){t.getElementById("scormWindow_".concat(b)).src=e}))}))}))}))})):tt.current&&o(tt.current,"".concat(window.location.origin,"/learning-package-player/closeWindow")||!1).then((function(e){t.getElementById("scormWindow_".concat(b)).src=e}))}),[o,v,f,m,b,S,E,O]);return Object(r.useEffect)((function(){if(ee){var e=b&&window.open("/learning-package-player","scormWindow_".concat(b),"width=959 height=654");ct(e),e.onbeforeunload=function(){nt.current=!0,ae(!0),te(!1)},e.onunload=function(){nt.current||(nt.current=!0,ae(!0),te(!1))}}}),[b,ct,ee]),k?k[0].allowedToBeViewed?n.a.createElement(h.Container,{className:x.container,maxWidth:Qe?"lg":Ze?"sm":"xs",fixed:!0},n.a.createElement(h.Grid,{container:!0,spacing:Qe?0:"card",alignContent:"center"},n.a.createElement(h.Grid,{item:!0,xs:8,sm:8,md:4,lg:4},n.a.createElement(h.Box,{textAlign:"center"},n.a.createElement(h.Button,{className:x.launchButton,onClick:function(){te(!0)},color:"primary",variant:"contained",fullWidth:!0},n.a.createElement(h.Typography,{variant:"h5",className:x.h5Label},"Launch Course")))),n.a.createElement(h.Hidden,{mdUp:!0},n.a.createElement(h.Grid,{item:!0,xs:4,sm:4,md:2,lg:2},n.a.createElement(h.Button,{variant:_!==p.ke.Failed&&_!==p.ke.InProgress||!We?"contained":"outlined",className:Object(Va.default)(x.sync,Object(Sa.a)({},x.syncDisabled,!(_===p.ke.Failed||_===p.ke.InProgress)||!We)),onClick:function(){return st()},disabled:!(_===p.ke.Failed||_===p.ke.InProgress)||!We},n.a.createElement(h.Typography,{className:Object(Va.default)(x.syncLabel,Object(Sa.a)({},x.syncLabelDisabled,!(_===p.ke.Failed||_===p.ke.InProgress)||!We)),variant:"body1"},"Sync")))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:6,lg:6},n.a.createElement(h.Box,{className:x.progressContainer},Pe||ke?n.a.createElement(h.Skeleton,{width:"100%",height:"32px"}):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h5",className:Object(Va.default)(x.status,x.h5Label)},1===K||void 0===K?"-":(null===G||void 0===G?void 0:G.score)&&Math.round(100*(null===G||void 0===G?void 0:G.score))/100||0),n.a.createElement(h.Typography,{variant:"caption",className:x.statusLabel},"Score")),n.a.createElement(h.Box,{className:x.divider}),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h5",className:Object(Va.default)(x.status,x.h5Label)},3===K?"PASS":4===K?"FAIL":"-"),n.a.createElement(h.Typography,{variant:"caption",className:x.statusLabel},"Pass or Fail")),k&&k[0]&&"aicc"!==(null===(t=k[0].libraryFile)||void 0===t||null===(i=t.scormType)||void 0===i?void 0:i.toLowerCase())&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{className:x.divider}),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h5",className:Object(Va.default)(x.status,x.h5Label)},(null===G||void 0===G?void 0:G.duration)?new Date(1e3*(null===G||void 0===G?void 0:G.duration)).toISOString().substr(11,8):new Date(0).toISOString().substr(11,8)),n.a.createElement(h.Typography,{variant:"caption",className:x.statusLabel},"Session Time")))))),n.a.createElement(h.Hidden,{smDown:!0},n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:2,lg:2},n.a.createElement(h.Button,{variant:_!==p.ke.Failed&&_!==p.ke.InProgress||!We?"contained":"outlined",className:Object(Va.default)(x.sync,Object(Sa.a)({},x.syncDisabled,!(_===p.ke.Failed||_===p.ke.InProgress)||!We)),onClick:function(){return st()},disabled:!(_===p.ke.Failed||_===p.ke.InProgress)||!We},n.a.createElement(h.Typography,{className:Object(Va.default)(x.syncLabel,Object(Sa.a)({},x.syncLabelDisabled,!(_===p.ke.Failed||_===p.ke.InProgress)||!We)),variant:"body1"},"Sync"))))),he&&n.a.createElement(mo,{open:me,sessionEvaluationId:he,onClose:function(){ye(!1)}}),n.a.createElement(h.Dialog,{maxWidth:"md",open:Ce},n.a.createElement(un.DialogBody,null,n.a.createElement(h.Box,{px:2,pt:2},n.a.createElement(h.Box,{textAlign:"center"},Se?n.a.createElement(h.CircularProgress,{color:"primary",variant:"indeterminate"}):n.a.createElement(h.SystemIcon,{icon:"Success",size:"xl",color:"success",type:"duotone"})),n.a.createElement(h.Box,{py:2,textAlign:"center"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:Se?"primary":"success"},Se?"Validating...":"You successfully completed this course."))),!Se&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},Xe&&n.a.createElement(h.Grid,{item:!0,xs:12,sm:6},n.a.createElement(h.Button,{variant:"text",size:"small",color:"primary",fullWidth:!0,style:{whiteSpace:"nowrap"},onClick:function(){ye(!0)}},"Complete Evaluation")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:Xe?6:12},n.a.createElement(h.Button,{variant:"text",size:"small",color:"primary",fullWidth:!0,style:{whiteSpace:"nowrap"},onClick:function(){return window.location.replace("/course-catalog")}},"Return to Catalog"))))),n.a.createElement(h.Dialog,{open:Ge,maxWidth:"sm",fullWidth:!0},n.a.createElement(un.DialogHeader,{colorMode:"light",titleBar:{title:"On-Demand Session",onClose:ot}}),n.a.createElement(un.DialogBody,null,"You've been disqualified on this session. Do you want to retake this session?"),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:4}),n.a.createElement(h.Grid,{item:!0,xs:2},n.a.createElement(h.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){ot()}},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:2},n.a.createElement(h.Button,{color:"primary",fullWidth:!0,variant:"contained",type:"button",onClick:function(){return function(){var e=(null===le||void 0===le?void 0:le.sessionParticipant)&&(null===le||void 0===le?void 0:le.sessionParticipant.filter((function(e){return!e.isInstructor}))[0])&&(null===le||void 0===le?void 0:le.sessionParticipant.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId);b&&e&&O&&S([e],p.ke.InProgress,!1,b,!1).then((function(){Te(!0),ot(),s(b,O).then((function(t){y(e).then((function(){Te(!1),q(void 0),Q(void 0)})),ce(t)}))}))}()}},"Yes")),n.a.createElement(h.Grid,{item:!0,xs:4}))))):n.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"warning"},"You do not have sufficient permission to view this file.")):n.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},n.a.createElement(h.CircularProgress,null))})),wo=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.breakpoints;return Object(V.createStyles)({mediaRow:{marginBottom:i(3),background:"#000000"},validateButton:{height:i(4),width:i(22.375)},verificationContainer:Object(Sa.a)({backgroundColor:"#e8f1fa",padding:i(2),borderRadius:i(.5),width:i(38.75)},r.down("sm"),{width:"auto"}),verificationMessage:{lineHeight:1.2},verificationCountDown:{lineHeight:1.2,color:"#ff8d11",fontWeight:700,marginTop:i(1)},verififcationButton:{height:i(4),width:i(22.375)},videoList:{padding:i(2),color:t.grey[400]},videoItemSelected:{color:t.primary.main,backgroundColor:"transparent !important"},videoDivider:{width:"100%",background:t.grey[700]},videoNotSelected:{display:"none"},videoContainer:{position:"relative"},videoMessage:{position:"absolute",transform:"translate(-50%)",left:"50%",top:0,width:"100%",height:"100%",background:"rgba(255,255,255, 0.8)",display:"flex",justifyContent:"center",alignItems:"center"},loadingState:Object(Sa.a)({height:i(23.75),display:"flex",justifyContent:"center",alignItems:"center",background:"#000"},r.down("sm"),{height:"100vh"})})})),Po=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{getOnDemandUserSession:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser;return q.Z.getUserOnDemandSessionDetails(null===r||void 0===r?void 0:r.userId,e,void 0).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}}(t))},getPortalElearningSettingByRole:function(){return e(Co())},getSession:function(t,i){return e(go(t,i))},getMediaFiles:function(t,i){return e(function(e,t){return function(i){return q.S.getAllSessionMedia(void 0,p.nc.fromJS({sessionId:e,userId:t})).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},registerParticipant:function(t,i,r,n){return e(bo(t,i,r,n))},resetDisqualifiedVideo:function(t){return e((i=t,function(e){var t=new p.sb({userOnDemandSessionIdList:i});return q.Z.resetDisqualifiedVideo(void 0,t).then((function(e){return e})).catch((function(t){e(Object(M.b)(t))}))}));var i},updateParticipant:function(t,i,r,n,a){return e(So(t,i,r,!1,n,a))},updateUserOnDemandSessionValidation:function(t,i,r,n,a,o,s,l,c){return e(function(e,t,i,r,n,a,o,s,l){return function(c,d){var u=d().users.loggedUser,h=null===u||void 0===u?void 0:u.userId;if(void 0===o){var v=new p.gb({viewStart:e,viewEnd:t,viewStatus:i,userId:h,sessionMediaFileId:n,sessionId:a,sessionParticipantId:r,verificationCodeAttempt:s,verificationCodeValidated:Boolean(l)});return q.Z.createUserOnDemandValidationStatus(void 0,p.gb.fromJS(v)).then((function(e){return e})).catch((function(e){return c(Object(M.b)(e)),!1}))}var f=new p.Fe({userOnDemandSessionId:o,viewStart:e,viewEnd:t,viewStatus:i,verificationCodeAttempt:s,verificationCodeValidated:l});return q.Z.updateUserOnDemandValidationStatus(void 0,p.Fe.fromJS(f)).then((function(e){return e})).catch((function(e){return c(Object(M.b)(e)),!1}))}}(t,i,r,n,a,o,s,l,c))},updateUserOnDemandSessionVerification:function(t,i,r,n,a,o,s,l,c,d){return e(function(e,t,i,r,n,a,o,s,l,c){return function(d,u){var h=u().users.loggedUser,v=null===h||void 0===h?void 0:h.userId;if(void 0===c){var f=new p.hb({viewStart:e,viewEnd:t,verificationLastViewed:i,verificationViewMissed:r,verificationViewValidated:n,userId:v,sessionMediaFileId:s,sessionId:l,sessionParticipantId:o,verificationViewCount:a});return q.Z.createUserOnDemandVerificationStatus(void 0,p.hb.fromJS(f)).then((function(e){return e})).catch((function(e){return d(Object(M.b)(e)),!1}))}var m=new p.Ge({userOnDemandSessionId:c,viewStart:e,viewEnd:t,verificationLastViewed:i,verificationViewMissed:r,verificationViewValidated:n,verificationViewCount:a});return q.Z.updateUserOnDemandVerificationStatus(void 0,p.Ge.fromJS(m)).then((function(e){return e})).catch((function(e){return d(Object(M.b)(e)),!1}))}}(t,i,r,n,a,o,s,l,c,d))},validateParticipant:function(t,i,r){return e(Eo(t,i,r))},saveSessionEvaluation:function(t){return e(Io(t))},errorNotification:function(t){return e(Object(M.b)(t))}}}))((function(e){var t,i,a,o,s,l,d,u,v,f,m,y,g,b,S,E,I,O,C,j,w,P,T=e.sessionId,A=e.getMediaFiles,N=e.getOnDemandUserSession,k=e.getPortalElearningSettingByRole,D=e.getSession,L=e.userId,J=e.registerParticipant,F=e.resetDisqualifiedVideo,B=e.saveSessionEvaluation,R=e.updateParticipant,U=e.updateUserOnDemandSessionValidation,G=e.updateUserOnDemandSessionVerification,q=e.validateParticipant,z=wo(),W=Object(ho.useVideoPlayerContext)(),V=W.fullScreen,_=W.setFullScreen,Y=Object(r.useState)(),$=Object(c.a)(Y,2),H=$[0],K=$[1],Q=Object(r.useState)(),Z=Object(c.a)(Q,2),X=Z[0],ee=Z[1],te=Object(r.useState)(),ie=Object(c.a)(te,2),re=ie[0],ne=ie[1],ae=Object(r.useState)(),oe=Object(c.a)(ae,2),se=oe[0],le=oe[1],ce=Object(r.useState)(),de=Object(c.a)(ce,2),ue=de[0],he=de[1],ve=Object(r.useState)(),pe=Object(c.a)(ve,2),fe=pe[0],me=pe[1],ye=Object(r.useState)(),ge=Object(c.a)(ye,2),be=ge[0],Se=ge[1],Ee=Object(r.useState)(0),Ie=Object(c.a)(Ee,2),Oe=Ie[0],Ce=Ie[1],xe=Object(r.useState)(0),je=Object(c.a)(xe,2),we=je[0],Pe=je[1],Te=Object(r.useState)(0),Ae=Object(c.a)(Te,2),Ne=Ae[0],ke=Ae[1],De=Object(r.useState)(!1),Le=Object(c.a)(De,2),Je=Le[0],Fe=Le[1],Be=Object(r.useState)(!1),Re=Object(c.a)(Be,2),Ue=Re[0],Ge=Re[1],qe=Object(r.useState)(!1),Me=Object(c.a)(qe,2),ze=Me[0],We=Me[1],Ve=Object(r.useState)(!1),_e=Object(c.a)(Ve,2),Ye=_e[0],$e=_e[1],He=Object(r.useState)(!1),Ke=Object(c.a)(He,2),Qe=Ke[0],Ze=Ke[1],Xe=Object(r.useState)(!1),et=Object(c.a)(Xe,2),tt=et[0],it=et[1],rt=Object(r.useState)(!1),nt=Object(c.a)(rt,2),at=nt[0],ot=nt[1],st=Object(r.useState)(!1),lt=Object(c.a)(st,2),ct=lt[0],dt=lt[1],ut=Object(r.useState)(!1),ht=Object(c.a)(ut,2),vt=ht[0],pt=ht[1],ft=Object(r.useState)(!1),mt=Object(c.a)(ft,2),yt=mt[0],gt=mt[1],bt=Object(r.useState)(!1),St=Object(c.a)(bt,2),Et=St[0],It=St[1],Ot=Object(r.useState)(!1),Ct=Object(c.a)(Ot,2),xt=Ct[0],jt=Ct[1],wt=Object(r.useState)(void 0),Pt=Object(c.a)(wt,2),Tt=Pt[0],At=Pt[1],Nt=Object(r.useState)(0),kt=Object(c.a)(Nt,2),Dt=kt[0],Lt=kt[1],Jt=Object(r.useState)(0),Ft=Object(c.a)(Jt,2),Bt=Ft[0],Rt=Ft[1],Ut=Object(r.useState)(0),Gt=Object(c.a)(Ut,2),qt=Gt[0],Mt=Gt[1],zt=Object(r.useState)(0),Wt=Object(c.a)(zt,2),Vt=Wt[0],_t=Wt[1],Yt=Object(r.useState)(""),$t=Object(c.a)(Yt,2),Ht=$t[0],Kt=$t[1],Qt=Object(r.useState)(0),Zt=Object(c.a)(Qt,2),Xt=Zt[0],ei=Zt[1],ti=Object(r.useState)(0),ii=Object(c.a)(ti,2),ri=ii[0],ni=ii[1],ai=Object(r.useState)(0),oi=Object(c.a)(ai,2),si=oi[0],li=oi[1],ci=Object(r.useState)(!1),di=Object(c.a)(ci,2),ui=di[0],hi=di[1],vi=Object(r.useState)(!1),pi=Object(c.a)(vi,2),fi=pi[0],mi=pi[1],yi=Object(r.useState)(0),gi=Object(c.a)(yi,2),bi=gi[0],Si=gi[1],Ei=Object(r.useState)(void 0),Ii=Object(c.a)(Ei,2),Oi=Ii[0],Ci=Ii[1],xi=Object(r.useState)(0),ji=Object(c.a)(xi,2),wi=ji[0],Pi=ji[1],Ti=Object(r.useState)(!1),Ai=Object(c.a)(Ti,2),Ni=Ai[0],ki=Ai[1],Di=Object(r.useState)(!1),Li=Object(c.a)(Di,2),Ji=Li[0],Fi=Li[1],Bi=Object(r.useState)(0),Ri=Object(c.a)(Bi,2),Ui=Ri[0],Gi=Ri[1],qi=Object(r.useState)(void 0),Mi=Object(c.a)(qi,2),zi=Mi[0],Wi=Mi[1],Vi=Object(r.useState)(0),_i=Object(c.a)(Vi,2),Yi=_i[0],$i=_i[1],Hi=Object(r.useState)(0),Ki=Object(c.a)(Hi,2),Qi=Ki[0],Zi=Ki[1],Xi=Object(r.useState)(0),er=Object(c.a)(Xi,2),tr=er[0],ir=er[1],rr=Object(r.useState)(!1),nr=Object(c.a)(rr,2),ar=nr[0],or=nr[1],sr=Object(r.useState)(0),lr=Object(c.a)(sr,2),cr=lr[0],dr=lr[1],ur=Object(r.useState)(!1),hr=Object(c.a)(ur,2),vr=hr[0],pr=hr[1],fr=Object(r.useState)(0),mr=Object(c.a)(fr,2),yr=mr[0],gr=mr[1],br=Object(r.useState)(0),Sr=Object(c.a)(br,2),Er=Sr[0],Ir=Sr[1],Or=Object(r.useState)(0),Cr=Object(c.a)(Or,2),xr=Cr[0],jr=Cr[1],wr=Object(r.useState)(0),Pr=Object(c.a)(wr,2),Tr=Pr[0],Ar=Pr[1],Nr=Object(r.useState)(!1),kr=Object(c.a)(Nr,2),Dr=kr[0],Lr=kr[1],Jr=Object(r.useState)(!1),Fr=Object(c.a)(Jr,2),Br=Fr[0],Rr=Fr[1],Ur=Object(r.useState)(0),Gr=Object(c.a)(Ur,2),qr=Gr[0],Mr=Gr[1],zr=Object(r.useState)(0),Wr=Object(c.a)(zr,2),Vr=Wr[0],_r=Wr[1],Yr=Object(r.useState)(void 0),$r=Object(c.a)(Yr,2),Hr=$r[0],Kr=$r[1],Qr=Object(r.useState)(!1),Zr=Object(c.a)(Qr,2),Xr=Zr[0],en=Zr[1],tn=Object(r.useState)([0]),rn=Object(c.a)(tn,2),nn=rn[0],an=rn[1],on=Object(r.useState)(),sn=Object(c.a)(on,2),ln=sn[0],cn=sn[1],dn=Object(r.useState)(!1),vn=Object(c.a)(dn,2),pn=vn[0],fn=vn[1],gn=Object(r.useState)(!1),bn=Object(c.a)(gn,2),Sn=bn[0],En=bn[1],In=Object(r.useState)(!1),On=Object(c.a)(In,2),Cn=On[0],xn=On[1],jn=Object(r.useState)(),wn=Object(c.a)(jn,2),Pn=wn[0],Tn=wn[1],An=Object(r.useState)(!1),Nn=Object(c.a)(An,2),kn=Nn[0],Dn=Nn[1],Ln=Object(r.useState)(!1),Jn=Object(c.a)(Ln,2),Fn=Jn[0],Bn=Jn[1],Rn=Object(r.useState)(!0),Un=Object(c.a)(Rn,2),Gn=Un[0],qn=Un[1],Mn=Object(r.useState)(!1),zn=Object(c.a)(Mn,2),Wn=zn[0],Vn=zn[1],_n=Object(r.useState)(!1),Yn=Object(c.a)(_n,2),$n=Yn[0],Hn=Yn[1],Kn=Object(r.createRef)(),Qn=(null===H||void 0===H?void 0:H.evaluationId)&&(null===H||void 0===H?void 0:H.evaluationId)>0,Zn=ue&&ue.filter((function(e){return e.viewStatus===p.Id.Done||e.viewStatus===p.Id.Disqualified})).map((function(e){return e.sessionMediaFileId})),Xn=se&&se.map((function(e){return e.sessionMediaFileId})),ea=Zn&&Xn&&Object(x.xor)(Xn,Zn),ta=se&&se.filter((function(e){return ea&&ea.includes(e.sessionMediaFileId)}))[0],ia=Object(r.useRef)(null),ra=function(e){return.001*e},na=function(e){En(e),Kr(!1),fn(!1)},aa=[{label:"Continue where I left off",action:function(){return na(!1)}},{label:"Start from the beginning",action:function(){return na(!0)}}],oa=Object(r.useCallback)((function(){gt(!1),T&&L&&D(T,L).then((function(e){K(e)}))}),[D,T,L]),sa=Object(r.useCallback)((function(e){T&&e&&e.length>0&&yt&&(q(e.map((function(e){return e.sessionParticipantId||0})),T).then((function(){Qn?B(e.map((function(e){return e.sessionParticipantId||0}))).then((function(){var t=e.map((function(e){return e.sessionParticipantId||0})),i=Object(c.a)(t,1)[0];At(i),oa()})):oa()})),$e(!0))}),[Qn,B,T,oa,q,yt]),la=function(e,t,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(T&&t&&fe){var a;Fe(!0);var o,s=null===fe||void 0===fe?void 0:fe.find((function(e){return e.sessionMediaFileId===t})),l=null===s||void 0===s?void 0:s.userOnDemandSessionId,c=null===s||void 0===s?void 0:s.viewStatus,d=null!==(a=null===s||void 0===s?void 0:s.viewEnd)&&void 0!==a?a:0,u=null===s||void 0===s?void 0:s.verificationCodeValidated,h=null===s||void 0===s?void 0:s.verificationViewValidated,v=null===s||void 0===s?void 0:s.verificationViewMissed,f=null!==i&&void 0!==i?i:re,m=fe&&l&&fe.length>0?l:void 0;o=Ni&&ar&&r&&c!==p.Id.Done&&c!==p.Id.Disqualified?!u||!h||(void 0===v?0:v)>0?p.Id.Disqualified:p.Id.Done:(Ni||ar)&&r&&c!==p.Id.Done&&c!==p.Id.Disqualified?Ni&&u||ar&&h?p.Id.Done:p.Id.Disqualified:Ni||ar||!r?void 0===c?p.Id.InProgress:c:p.Id.Done,(c!==p.Id.Done&&(c!==p.Id.Disqualified||Math.round(10*d)/1e3!==Math.round(10*xr)/1e3)||u&&c!==p.Id.Done||void 0===s)&&f&&U(Oe,e,o,f,t,T,m,bi).then((function(e){e?N(T).then((function(e){var i;Fe(!1),me(e),Wn&&!n&&Ci(!0),$n&&!n&&Wi(!0);var a=e.find((function(e){return e.sessionMediaFileId===t})),o=null===a||void 0===a?void 0:a.viewStatus,s=null===H||void 0===H||null===(i=H.sessionParticipant)||void 0===i?void 0:i.filter((function(e){return!e.isInstructor&&!(e.sessionParticipantStatusId===p.ke.Validated||e.sessionParticipantStatusId===p.ke.Disqualified)}));a&&(null===a||void 0===a?void 0:a.verificationViewMissed)&&(null===a||void 0===a?void 0:a.verificationViewMissed)>0&&s&&s.length>0&&o===p.Id.Disqualified&&cr===Qi&&r&&q(s.map((function(e){return e.sessionParticipantId||0})),T,!0).then((function(){oa()})),r&&(Rr(!1),Lr(!1),Zi(0),Pi(0),Mt(0)),se&&se.length>1&&r?(We(!1),he(e),Se(void 0),Ci(void 0),qn(!0)):se&&1===se.length&&r&&Kr(!0),pt(!1)})):pt(!1)}))}},ca=function(e,t,i,r,n){if(T&&i&&fe){Fe(!0),it(!0);var a=null===fe||void 0===fe?void 0:fe.find((function(e){return e.sessionMediaFileId===i})),o=null===a||void 0===a?void 0:a.userOnDemandSessionId,s=null===a||void 0===a?void 0:a.viewStatus,l=null===a||void 0===a?void 0:a.viewEnd,c=null===a||void 0===a?void 0:a.verificationViewValidated,d=void 0===r?null===a||void 0===a?void 0:a.verificationViewMissed:r,u=fe&&o&&fe.length>0?o:void 0,h=!0===c?c:t===cr&&0===d;!(s===p.Id.Done||s===p.Id.Disqualified&&l&&Math.round(10*l)/1e3===Math.round(10*xr)/1e3)||c&&s!==p.Id.Done?re&&G(Oe,e,e,d,Boolean(h),t,re,i,T,u).then((function(e){e&&(Kr(void 0),N(T).then((function(e){n&&Kr(!1),Wi(!1),!Oi&&Kr(!1),he(e),Bn(!0),it(!1),Fe(!1),me(e),pt(!1),dt(!0)})))})):(it(!1),!Oi&&Kr(!1),Fe(!1),it(!1),Wi(!1),Bn(!0),dt(!0))}},da=Object(r.useCallback)((function(e){if(T&&be){Fe(!0),Ze(!0);var t=null===fe||void 0===fe?void 0:fe.find((function(e){return e.sessionMediaFileId===be})),i=null===t||void 0===t?void 0:t.userOnDemandSessionId,r=fe&&i&&fe.length>0?i:void 0,n=t&&(null===t||void 0===t?void 0:t.verificationCodeAttempt)||0;!e&&at&&(n+=1);var a=wi>=ri&&!e||n>=si&&!e;Si(n),U(Oe,Tr,a?p.Id.Disqualified:p.Id.InProgress,re,be,T,r,n,e).then((function(e){if(Fe(!1),e){var t;N(T).then((function(e){me(e),he(e),Ci(!1),!zi&&Kr(!1),ei(0),Ze(!1),pr(!1),ot(!1)}));var i=null===H||void 0===H||null===(t=H.sessionParticipant)||void 0===t?void 0:t.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId;if(e.viewStatus===p.Id.Disqualified&&i!==p.ke.Disqualified){var r,n=null===H||void 0===H||null===(r=H.sessionParticipant)||void 0===r?void 0:r.filter((function(e){return!e.isInstructor&&!(e.sessionParticipantStatusId===p.ke.Validated||e.sessionParticipantStatusId===p.ke.Disqualified)}));n&&q(n.map((function(e){return e.sessionParticipantId||0})),T,!0).then((function(){oa()}))}}else Ci(!1),Wi(!1),!zi&&Kr(!1),Ze(!1),pr(!1),ot(!1)}))}}),[si,wi,ri,N,be,fe,re,Oe,H,T,oa,U,q,at,Tr,zi]),ua={initialValues:{validationCode:Ht},validationSchema:Object(yn.object)().shape({validationCode:Object(yn.string)()}),onSubmit:function(e){var t=e.validationCode;da(t===Ht)}};Object(r.useEffect)((function(){fi&&(da(!1),mi(!1))}),[fi,da]),Object(r.useEffect)((function(){(Oi||zi&&!vr)&&(!(Xt>0||Ui>0)||Qe&&tt&&Je?at&&ct||(ar&&zi&&!ct&&pr(!0),Ni&&Oi&&!at&&hi(!0)):(Xt>0&&!(tt||Qe||Je)&&setTimeout((function(){return ei(Xt-1)}),1e3),Ui>0&&!Fn&&!(tt||Qe||Je)?setTimeout((function(){return Gi(Ui-1)}),1e3):Fn&&Gi(0)))}),[ct,Fn,ri,Qe,Xt,Oi,Ni,at,Ui,cr,ar,zi,vr,tt,Je]);var ha=function(){en(!1)};return Object(r.useEffect)((function(){var e=Kn&&Kn.current;kn||!e||Je||!Boolean(Oi)&&!Boolean(zi)||(e.play(),Dn(!0)),Boolean(Oi)||Boolean(zi)||Dn(!1)}),[Kn,Oi,zi,Je,kn]),Object(r.useEffect)((function(){k().then((function(e){cn(e)}))}),[k]),Object(r.useEffect)((function(){T&&L&&(le(void 0),A(T,L).then((function(e){var t,i=null===(t=e.mediaFiles)||void 0===t?void 0:t.filter((function(e){return e.libraryFile&&e.libraryFile.url}));le(i)})).catch((function(e){Object(M.b)(e)})))}),[A,T,L]),Object(r.useEffect)((function(){void 0===be&&ta?Se(ta.sessionMediaFileId):void 0===be&&void 0===ta&&se&&Se(se[0].sessionMediaFileId)}),[se,be,ta]),Object(r.useEffect)((function(){if(void 0!==be&&!vt){var e,t=se&&se.find((function(e){return e.sessionMediaFileId===be})),i=null===t||void 0===t?void 0:t.verificationDisplayLimit,r=null===t||void 0===t?void 0:t.verificationAttemptLimit,n=null===t||void 0===t?void 0:t.viewingVerificationDisplayLimit,a=null===t||void 0===t?void 0:t.verificationCodeEnabled,o=null===t||void 0===t?void 0:t.viewingVerificationEnabled,s=null===t||void 0===t||null===(e=t.libraryFile)||void 0===e?void 0:e.duration,l=null===t||void 0===t?void 0:t.verificationCode,c=null===t||void 0===t?void 0:t.verificationDisplayDuration,d=null===t||void 0===t?void 0:t.viewingVerificationDisplayDuration;if(void 0!==l&&void 0!==a&&void 0!==i&&void 0!==n&&void 0!==o&&void 0!==s&&void 0!==r&&void 0!==c&&void 0!==d){var u=ra(s/(i+1)),h=ra(s/(n+1));jr(ra(s)),ki(a),or(o),Kt(l),Lt(u),Rt(h),ni(i),dr(n),li(r),Mr(c),_r(d);var v=Math.floor(Math.round(qt)/Math.round(u))/1,p=Math.floor(Math.round(qt)/Math.round(h))/1;_t(u*(v+1)),$i(h*(p+1)),Gn&&(Pi(v),Zi(p))}}}),[Gn,be,se,qt,vt]),Object(r.useEffect)((function(){(wi>0||Cn)&&_t(Dt*(wi+1)),(Qi>0||Cn)&&$i(Bt*(Qi+1))}),[be,Dt,Bt,Qi,wi,Cn]),Object(r.useEffect)((function(){K(void 0),ee(void 0),ne(void 0),T&&L&&D(T,L).then((function(e){var t=e.sessionParticipant,i=t&&(null===t||void 0===t?void 0:t.filter((function(e){return!e.isInstructor}))[0])&&(null===t||void 0===t?void 0:t.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId);ne(i),K(e),ee(e)})).catch((function(e){Object(M.b)(e)}))}),[D,T,L]),Object(r.useEffect)((function(){pt(!0),N(T).then((function(e){pt(!1),he(e||[]),me(e||[])}))}),[N,T]),Object(r.useEffect)((function(){void 0!==be&&(pt(!0),N(T).then((function(e){var t,i=e.filter((function(e){return e.viewStatus===p.Id.InProgress&&e.sessionMediaFileId===be}))[0]&&e.filter((function(e){return e.viewStatus===p.Id.InProgress&&e.sessionMediaFileId===be}))[0];i&&i.verificationViewMissed&&Ir(i.verificationViewMissed),i&&i.verificationViewCount&&ir(i.verificationViewCount);var r=e.filter((function(e){return e.sessionMediaFileId===be}))[0]&&e.filter((function(e){return e.sessionMediaFileId===be}))[0].viewStatus;Tn(r),void 0===i||i&&void 0!==i.viewEnd&&i.viewEnd<1?fn(!1):fn(!0),Mt(void 0===i||void 0===i.viewEnd?0:i.viewEnd);var n=null===e||void 0===e?void 0:e.find((function(e){return e.sessionMediaFileId===be})),a=null===n||void 0===n?void 0:n.verificationCodeAttempt,o=null===n||void 0===n?void 0:n.verificationViewMissed;Si(null!==a&&void 0!==a?a:0),Ir(null!==o&&void 0!==o?o:0),ir(null!==(t=null===n||void 0===n?void 0:n.verificationViewCount)&&void 0!==t?t:0),Cn&&(he(e),me(e),Ci(void 0),Wi(void 0),ot(!1)),pt(!1)})))}),[N,be,Cn,T]),Object(r.useEffect)((function(){if(fe){var e=null===fe||void 0===fe?void 0:fe.filter((function(e){return e.sessionMediaFileId===be}));Fi(!!(e.length>0&&e[0].verificationCodeValidated)&&e[0].verificationCodeValidated)}}),[be,fe]),Object(r.useEffect)((function(){var e,t=null===X||void 0===X||null===(e=X.sessionParticipant)||void 0===e?void 0:e.filter((function(e){return!e.isInstructor&&e.sessionParticipantStatusId===p.ke.Disqualified}));if(fe&&t&&t.length>0&&ln&&(null===ln||void 0===ln?void 0:ln.enableMakeupDisqualifiedVideo)){var i=(fe&&fe.filter((function(e){return e.viewStatus===p.Id.Disqualified}))).map((function(e){return e.userOnDemandSessionId||0}));an(i),We(!1),en(!0)}}),[X,fe,ln]),Object(r.useEffect)((function(){var e,t=se&&se.map((function(e){return e.sessionMediaFileId})),i=fe&&fe.filter((function(e){return e.viewStatus===p.Id.Done})),r=i&&i.map((function(e){return e.sessionMediaFileId})),n=null===H||void 0===H||null===(e=H.sessionParticipant)||void 0===e?void 0:e.filter((function(e){return!e.isInstructor&&!(e.sessionParticipantStatusId===p.ke.Validated||e.sessionParticipantStatusId===p.ke.Disqualified)}));t&&i&&Object(x.isEmpty)(Object(x.xor)(t,r))&&n&&n.length>0&&!Ye&&(Kr(!0),gt(!0),sa(n),It(!0))}),[se,fe,H,T,sa,L,Ye]),n.a.createElement(n.a.Fragment,null,n.a.createElement("audio",{ref:Kn,controls:!0,hidden:!0},n.a.createElement("source",{src:"/video/ding.wav",type:"audio/wav"})),n.a.createElement(h.Grid,{container:!0},void 0===H?n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{className:z.loadingState},n.a.createElement(h.CircularProgress,null))):se&&se.length>0?n.a.createElement(n.a.Fragment,null,se.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:V?12:4,lg:V?12:3,hidden:V},n.a.createElement(h.List,{classes:{root:z.videoList}},se.filter((function(e){return!(e.libraryFile&&e.libraryFile.archivedDate)})).map((function(e,t){var i,r,a;return n.a.createElement(n.a.Fragment,{key:"video-file-".concat(se[t].sessionMediaFileId)},t>0&&n.a.createElement(h.ListItem,null,n.a.createElement(h.Divider,{light:!0,classes:{light:z.videoDivider}})),n.a.createElement(h.ListItem,{button:!0,selected:e.sessionMediaFileId===be,classes:{selected:z.videoItemSelected},onClick:function(){e.sessionMediaFileId!==be&&(Se(null===e||void 0===e?void 0:e.sessionMediaFileId),pt(!0),Kr(void 0),xn(!0),qn(!0))}},n.a.createElement(h.Wrap,{flex:1},n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,null,null===(i=e.libraryFile)||void 0===i?void 0:i.title)),n.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle",flex:0},n.a.createElement(h.Box,{display:"flex"},fe&&fe.filter((function(t){return t.sessionMediaFileId===e.sessionMediaFileId})).length>0&&fe.filter((function(t){return t.sessionMediaFileId===e.sessionMediaFileId}))[0].viewStatus===p.Id.Done&&n.a.createElement(h.ListItemIcon,null,n.a.createElement(h.SystemIcon,{icon:"Success",size:"sm",color:"success"})),fe&&fe.filter((function(t){return t.sessionMediaFileId===e.sessionMediaFileId})).length>0&&fe.filter((function(t){return t.sessionMediaFileId===e.sessionMediaFileId}))[0].viewStatus===p.Id.InProgress&&n.a.createElement(h.ListItemIcon,null,n.a.createElement(h.SystemIcon,{icon:"Repeat",size:"sm",color:"primary"})),fe&&fe.filter((function(t){return t.sessionMediaFileId===e.sessionMediaFileId})).length>0&&fe.filter((function(t){return t.sessionMediaFileId===e.sessionMediaFileId}))[0].viewStatus===p.Id.Disqualified&&n.a.createElement(h.ListItemIcon,null,n.a.createElement(h.SystemIcon,{icon:"Error",size:"sm",color:"error"}))),n.a.createElement(h.Expanded,{flex:0},(null===(r=e.libraryFile)||void 0===r?void 0:r.duration)&&new Date(1e3*ra(null===(a=e.libraryFile)||void 0===a?void 0:a.duration)).toISOString().substr(11,8))))))})))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:V?12:se.length>0?8:12,lg:V?12:se.length>0?9:12},n.a.createElement(n.a.Fragment,null,se.filter((function(e){return e.sessionMediaFileId===be&&e.allowedToBeViewed}))[0]?ue&&be&&se&&se.filter((function(e){return e.sessionMediaFileId===be}))[0]&&!vt?n.a.createElement(h.Box,{className:z.videoContainer},n.a.createElement(h.Box,null,n.a.createElement(h.VideoPlayer,{key:"video-".concat(se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId),hideProgressBar:(null===(t=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===t||null===(i=t.settings)||void 0===i||null===(a=i.find((function(e){return e.libraryFileSettingType===p.Ad.EnableCustomVideoSetting})))||void 0===a?void 0:a.valueBit)&&!(null===(o=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===o||null===(s=o.settings)||void 0===s||null===(l=s.find((function(e){return e.libraryFileSettingType===p.Ad.EnableSeekbar})))||void 0===l?void 0:l.valueBit)||!(null===(d=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===d||null===(u=d.settings)||void 0===u||null===(v=u.find((function(e){return e.libraryFileSettingType===p.Ad.EnableCustomVideoSetting})))||void 0===v?void 0:v.valueBit)&&!(null===ln||void 0===ln?void 0:ln.enableSeekBar),startTime:Math.round(10*qt)/10===Math.round(10*xr)/10||Sn?0:qt,paused:Hr,autoplay:(!ue.filter((function(e){return e.sessionMediaFileId===se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId}))[0]||ue.filter((function(e){return e.sessionMediaFileId===se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId}))[0].viewStatus!==p.Id.Done&&ue.filter((function(e){return e.sessionMediaFileId===se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId}))[0].viewStatus!==p.Id.Disqualified)&&ze,source:(null===(f=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===f?void 0:f.url)||"",onPlay:function(e){!function(e,t){var i,r=e.currentTarget.currentTime;Ar(r),Ce(r),ke(we),Pe(Math.round(r));var n=null===H||void 0===H||null===(i=H.sessionParticipant)||void 0===i?void 0:i.filter((function(e){return!e.isInstructor}));if(n&&n.length>0){var a=n.filter((function(e){return!(e.sessionParticipantStatusId===p.ke.InProgress||e.sessionParticipantStatusId===p.ke.Validated||e.sessionParticipantStatusId===p.ke.Disqualified)}));!Je&&a.length>0&&(Fe(!0),R(n.map((function(e){return e.sessionParticipantId||0})),p.ke.InProgress,!1,T,!1).then((function(){L&&D(T,L).then((function(e){K(e),la(r,t,re,!1)}))})))}else!Je&&L&&T&&!Ue&&n&&0===n.length&&(Ge(!0),J([L],T,!1,!1).then((function(){D(T,L).then((function(e){var i=e.sessionParticipant,n=i&&(null===i||void 0===i?void 0:i.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId);ne(n),i&&(null===i||void 0===i?void 0:i.filter((function(e){return!e.isInstructor})).length)>0&&(Fe(!0),R([n||0],p.ke.InProgress,!1,T,!1).then((function(){L&&D(T,L).then((function(e){K(e),la(r,t,n,!1)}))}))),Ge(!1)}))})))}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},onPause:function(e){!function(e,t){var i=e.currentTarget.currentTime;Ar(i),ke(we),Pe(Math.round(i)),gr(i);var r=Vt&&Math.round(Vt-Dt),n=Yi&&Math.round(Yi-Bt),a=Math.round(i),o=i;r!==a&&n!==a||(o-=2),(Je||Math.round(10*i)/10===Math.round(10*xr)/10||zi&&Oi||Math.round(xr)===Math.round(Math.round(i)))&&!Wn&&!$n||la(o,t)}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},onEnded:function(e){!function(e,t){var i=e.currentTarget.duration;Ar(i);var r=fe&&fe.filter((function(e){return e.sessionMediaFileId===t}))[0]&&fe.filter((function(e){return e.sessionMediaFileId===t}))[0].viewStatus;_(!1),r!==p.Id.Done&&la(i,t,re,!0)}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},onTimeUpdate:function(e){!function(e,t){qn(!1);var i=e.currentTarget.currentTime;Ar(i),ke(we),Pe(Math.round(i));var r=Vt&&Math.round(Vt),n=Yi&&Math.round(Yi),a=Math.round(i),o=Ne!==we&&r&&!Oi&&r===a&&wi15)||o||s||la(i,t),o?(Dr||(ei(qr),Vn(!0),hi(!1),Kr(!0),ot(!1)),_t(Vt+Dt)):Dr&&Rr(!1),s?(Br||(Bn(!1),Gi(Vr),Hn(!0),pr(!1),Kr(!0),dt(!1)),$i(Yi+Bt)):Br&&Lr(!1)}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},duration:xr,disableSeekBackward:(null===(m=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===m||null===(y=m.settings)||void 0===y||null===(g=y.find((function(e){return e.libraryFileSettingType===p.Ad.EnableCustomVideoSetting})))||void 0===g?void 0:g.valueBit)?!(null===(b=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===b||null===(S=b.settings)||void 0===S||null===(E=S.find((function(e){return e.libraryFileSettingType===p.Ad.EnableRewind})))||void 0===E?void 0:E.valueBit):!(null===ln||void 0===ln?void 0:ln.enableRewind),disableSeekForward:se.filter((function(e){return e.sessionMediaFileId===be}))[0].verificationCodeEnabled||se.filter((function(e){return e.sessionMediaFileId===be}))[0].viewingVerificationEnabled||((null===(I=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===I||null===(O=I.settings)||void 0===O||null===(C=O.find((function(e){return e.libraryFileSettingType===p.Ad.EnableCustomVideoSetting})))||void 0===C?void 0:C.valueBit)?!(null===(j=se.filter((function(e){return e.sessionMediaFileId===be}))[0].libraryFile)||void 0===j||null===(w=j.settings)||void 0===w||null===(P=w.find((function(e){return e.libraryFileSettingType===p.Ad.EnableFastForward})))||void 0===P?void 0:P.valueBit):!(null===ln||void 0===ln?void 0:ln.enableFastForward))})),pn&&qt>=1&&n.a.createElement(h.Box,{className:z.videoMessage},n.a.createElement(h.Card,null,n.a.createElement(h.CardContent,null,n.a.createElement(h.Box,{textAlign:"center",mb:2},n.a.createElement(h.IconButton,{onClick:function(){null!==(null===ia||void 0===ia?void 0:ia.current)&&void 0!==(null===ia||void 0===ia?void 0:ia.current)&&na(ia.current.innerText.includes("Start from the beginning"))}},n.a.createElement(h.SystemIcon,{icon:"Play",size:"xl",color:"primary",type:"duotone"}))),n.a.createElement(h.Typography,null,"You previously listened to / viewed this segment through",n.a.createElement("b",null," ".concat(new Date(1e3*qt).toISOString().substr(11,8))))),n.a.createElement(h.CardActions,null,n.a.createElement(h.Box,{m:1},n.a.createElement("div",{ref:ia},n.a.createElement(h.SplitButton,{variant:"contained",color:"primary",options:aa}))))))):n.a.createElement(h.Box,{className:z.loadingState},n.a.createElement(h.CircularProgress,null)):n.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"warning"},"You do not have sufficient permission to view this file."))))):n.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},n.a.createElement(h.CircularProgress,null))),Tt&&n.a.createElement(mo,{open:xt,sessionEvaluationId:Tt,onClose:function(){jt(!1)}}),n.a.createElement(hn.a,{maxWidth:"md",open:Et},n.a.createElement(un.DialogBody,null,n.a.createElement(h.Box,{px:2,pt:2},n.a.createElement(h.Box,{display:"flex",justifyContent:"center",alignItems:"center"},yt?n.a.createElement(h.CircularProgress,{color:"primary",variant:"indeterminate"}):n.a.createElement(h.SystemIcon,{icon:"Success",size:"xl",color:"success",type:"duotone"})),n.a.createElement(h.Box,{py:2,textAlign:"center"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:yt?"primary":"success"},yt?"Validating...":"You successfully completed this course."))),!yt&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},Qn&&n.a.createElement(h.Grid,{item:!0,xs:12,sm:6},n.a.createElement(h.Button,{variant:"text",size:"small",color:"primary",fullWidth:!0,style:{whiteSpace:"nowrap"},onClick:function(){jt(!0)}},"Complete Evaluation")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:Qn?6:12},n.a.createElement(h.Button,{variant:"text",size:"small",color:"primary",fullWidth:!0,style:{whiteSpace:"nowrap"},onClick:function(){return window.location.replace("/course-catalog")}},"Return to Catalog"))))),n.a.createElement(hn.a,{maxWidth:"xs",open:Boolean(Oi)||Boolean(zi)},n.a.createElement(un.DialogBody,null,n.a.createElement(h.Box,{mb:2,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Error",color:"warning",size:"lg"})),ar&&Ui>0&&!vr&&Boolean(zi)&&n.a.createElement(h.Box,{mb:3},n.a.createElement(h.Column,null,n.a.createElement(h.Box,null,n.a.createElement(h.Box,{className:z.verificationContainer},n.a.createElement(h.Box,{textAlign:"center"},n.a.createElement(h.Typography,{variant:"subtitle1",className:z.verificationMessage},n.a.createElement("b",null,"Please click the button below to confirm that you are viewing this video."))),n.a.createElement(h.Box,{maxWidth:179,textAlign:"center",margin:"0 auto"},!Je||tt||Qe?n.a.createElement(h.Typography,{className:z.verificationCountDown,variant:"overline"},new Date(1e3*Ui).toISOString().substr(14,5)):n.a.createElement(h.Skeleton,{width:"100%"})),n.a.createElement(h.Box,{textAlign:"center",mt:3.5},n.a.createElement(h.Button,{color:"secondary",variant:"contained",className:z.verififcationButton,disabled:tt||Qe||Je,loading:tt,onClick:function(){Ze(!1),Zi(Qi+1),ir(tr+1),Lr(!1),Hn(!1),ca(yr,tr+1,be,Er)}},"Verify Viewing")))))),(Ni&&ui&&Boolean(Oi)||ar&&vr&&Boolean(zi))&&n.a.createElement(h.Box,null,n.a.createElement(h.Column,null,n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Box,{className:z.verificationContainer},n.a.createElement(h.Box,{textAlign:"center"},n.a.createElement(h.Typography,{variant:"caption"},"You have missed a validation.")),n.a.createElement(h.Box,{textAlign:"center"},n.a.createElement(h.Typography,null,n.a.createElement(h.Link,{className:z.verififcationButton,onClick:function(){Vn(!1),Hn(!1),pt(!0),En(!1),pn||We(!0),ui&&Boolean(Oi)&&(Math.round(yr)-Math.floor(Dt)+1>0?Mt(Math.round(yr)-Math.floor(Dt)):Mt(0),Rr(!0),_t(Vt-Dt),Ci(!1),Kr(void 0),la(yr,be,void 0,!1,!0)),vr&&Boolean(zi)&&(Math.round(yr)-Math.floor(Bt)+1>0?Mt(Math.round(yr)-Math.floor(Bt)):Mt(0),Lr(!0),$i(Yi-Bt),Wi(!1),ca(yr,tr,be))}},"Re-listen / Re-watch from my last validation")),n.a.createElement(h.Typography,null,"or"),n.a.createElement(h.Typography,null,n.a.createElement(h.Link,{className:z.verififcationButton,onClick:function(){Vn(!1),Hn(!1),ui&&Oi&&(Mt(Math.round(yr)),Ci(!1),Pi(wi+1),ot(!0),mi(!0),Rr(!1)),vr&&zi&&(Mt(Math.round(yr)),Wi(!1),Zi(Qi+1),Ir(Er+1),Lr(!1),dt(!0),ca(yr,tr,be,Er+1,!0))}},"Continue listening / watching"))),n.a.createElement(h.Box,{textAlign:"center"},n.a.createElement(h.Typography,{variant:"caption"},"You must contact your Coordinator when the audio / video is complete to receive credit.")))))),Ni&&Xt>0&&Boolean(Oi)&&n.a.createElement(h.Box,null,n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle",flex:1},n.a.createElement(mn.Formik,{initialValues:ua.initialValues,onSubmit:ua.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{id:"verification-code-field"},n.a.createElement(h.Box,{className:z.verificationContainer},n.a.createElement(h.Box,{textAlign:"center"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"bold",className:z.verificationMessage},n.a.createElement("b",null,"Please click on the validate button to automatically confirm the code."))),n.a.createElement(h.Box,{maxWidth:179,textAlign:"center",margin:"0 auto",mb:3.5},!Je||tt||Qe?n.a.createElement(h.Typography,{className:z.verificationCountDown,variant:"overline"},new Date(1e3*Xt).toISOString().substr(14,5)):n.a.createElement(h.Skeleton,{width:"100%"})),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle",flex:1},n.a.createElement(h.Box,{mb:1},n.a.createElement(h.TextField,{placeholder:"Enter the validation code",id:"validationCode",dense:!0,disabled:!0})),n.a.createElement(h.Box,null,n.a.createElement(h.Button,{className:z.validateButton,onClick:function(){Pi(wi+1),Rr(!1),ot(!0),Vn(!1)},color:"secondary",variant:"contained",type:"submit",disabled:Qe||tt||Je,loading:e.isSubmitting},"Validate"))))))})))))),n.a.createElement(hn.a,{open:Xr,maxWidth:"sm",fullWidth:!0},n.a.createElement(un.DialogHeader,{colorMode:"light",titleBar:{title:"On-Demand Session",onClose:ha}}),n.a.createElement(un.DialogBody,null,"You've been disqualified on this session. Do you want to retake this session?"),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:4}),n.a.createElement(h.Grid,{item:!0,xs:2},n.a.createElement(h.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){ha()}},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:2},n.a.createElement(h.Button,{color:"primary",fullWidth:!0,variant:"contained",type:"button",onClick:function(){return function(){var e,t=H&&(null===(e=H.sessionParticipant)||void 0===e?void 0:e.filter((function(e){return!e.isInstructor})));t&&t.length>0&&R(t.map((function(e){return e.sessionParticipantId||0})),p.ke.InProgress,!1,T,!1).then((function(){ha(),pt(!0),L&&D(T,L).then((function(e){F(nn).then((function(){L&&A(T,L).then((function(e){var t,i=null===(t=e.mediaFiles)||void 0===t?void 0:t.filter((function(e){return e.libraryFile&&e.libraryFile.url}));N(T).then((function(e){me(e),he(e),le(i),Se(void 0),pt(!1)}))})).catch((function(e){pt(!1),Object(M.b)(e)}))})),ee(e),K(e)}))}))}()}},"Yes")),n.a.createElement(h.Grid,{item:!0,xs:4})))))})),To=Object(V.makeStyles)((function(e){var t,i,r=e.spacing,n=(e.palette,e.breakpoints);return Object(V.createStyles)({mediaRow:{marginBottom:r(3),background:"#000000"},launchButton:(t={borderRadius:r(6.25)},Object(Sa.a)(t,n.up("xs"),{width:r(21.5),height:r(6.5)}),Object(Sa.a)(t,n.up("sm"),{width:r(31.5),height:r(7.5)}),Object(Sa.a)(t,n.up("md"),{width:r(32.25),height:r(10.625)}),Object(Sa.a)(t,n.up("lg"),{width:r(39.75),height:r(12.25)}),t),h5Label:(i={},Object(Sa.a)(i,n.down("md"),{fontSize:r(2.75)}),Object(Sa.a)(i,n.down("sm"),{fontSize:r(2.5)}),Object(Sa.a)(i,n.down("xs"),{fontSize:r(2)}),i)})})),Ao=po(Object(s.b)((function(e){var t,i;return{userType:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userType,userId:null===(i=e.users.loggedUser)||void 0===i?void 0:i.userId}}),(function(e){return{downloadFile:function(t){return e(_i(t))},getCourse:function(t){return e((i=t,function(e){return e({type:"SET_LOADING",payload:!0}),q.n.getCourseWithCategories(i,void 0).then((function(e){return e})).catch((function(t){throw e(Object(M.b)(t)),t}))}));var i},getSession:function(t,i){return e(go(t,i))},saveSessionEvaluation:function(t){return e(Io(t))},errorNotification:function(t){return e(Object(M.b)(t))},setRedirectUrl:function(t){return e(Object(O.g)(t))}}}))(Object(_n.a)((function(e){var t,i,a,o,s,l,u,v,f,m,y,g,b,S,E,I,O,C=e.downloadFile,x=e.getCourse,j=e.getSession,w=e.history,P=e.userId,T=e.userType,A=e.setRedirectUrl,k=Object(ho.useVideoPlayerContext)().fullScreen,D=new URLSearchParams(Object(d.l)().search).get("sessionId"),J=null!==D?+D:void 0,F=To(),B=(null!==(t=w.location.state)&&void 0!==t?t:{}).prevPath,R=Object(r.useState)(),U=Object(c.a)(R,2),G=U[0],q=U[1],z=Object(r.useState)(),W=Object(c.a)(z,2),V=W[0],_=W[1],Y=Object(r.useState)(!1),$=Object(c.a)(Y,2),H=$[0],K=$[1],Q=Object(r.useState)(!1),Z=Object(c.a)(Q,2),X=Z[0],ee=Z[1],te=Object(r.useState)(null!==B&&void 0!==B?B:"/course-catalog"),ie=Object(c.a)(te,1)[0],re=null===G||void 0===G||null===(i=G.courseCompetency)||void 0===i?void 0:i.map((function(e){return e.name})),ne=null===G||void 0===G||null===(a=G.courseDepartment)||void 0===a?void 0:a.map((function(e){return e.name})),ae=null===G||void 0===G||null===(o=G.coursePracticeArea)||void 0===o?void 0:o.map((function(e){return e.name})),oe=null===G||void 0===G||null===(s=G.courseLevel)||void 0===s?void 0:s.map((function(e){return e.name})),se=null===G||void 0===G||null===(l=G.courseClassYear)||void 0===l?void 0:l.map((function(e){return e.name})),le=null===G||void 0===G||null===(u=G.courseTag)||void 0===u?void 0:u.map((function(e){return e.name})),ce=Object(r.useCallback)((function(){V&&V.courseId&&(K(!0),q(void 0),x(V.courseId).then((function(e){q(e),K(!1)})).catch((function(e){K(!1),Object(M.b)(e)})))}),[V,x]);Object(r.useEffect)((function(){ce()}),[ce]),Object(r.useEffect)((function(){A(null)}),[A]),Object(r.useEffect)((function(){ee(!0),_(void 0),J&&P&&j(J,P).then((function(e){_(e),ee(!1)})).catch((function(e){ee(!1),Object(M.b)(e)}))}),[j,J,P]);var de;return n.a.createElement(uo.a,{viewMode:"immersive",appBarDisplay:{hideAppBar:k,disablePadding:k},modular:!0,onBackRedirectUrl:null!==ie&&void 0!==ie?ie:"/course-catalog"},n.a.createElement(co.ScreenBody,{maxWidth:!1,disableGutters:!0},n.a.createElement("div",{className:Object(Va.default)(Object(Sa.a)({},F.mediaRow,!k))},X?n.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},n.a.createElement(h.CircularProgress,null)):n.a.createElement(n.a.Fragment,null,2!==T||(null===V||void 0===V?void 0:V.isOpenToClient)?0!==(null===V||void 0===V?void 0:V.registrationLimit)&&Number(null===V||void 0===V?void 0:V.participantCount)>=Number(null===V||void 0===V?void 0:V.registrationLimit)?n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},n.a.createElement(h.Box,{height:160})),n.a.createElement(h.Grid,{item:!0,xs:10,sm:8,md:4,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"warning"},"The registration has been closed.")),n.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},n.a.createElement(h.Box,{height:160}))):J&&(null===V||void 0===V?void 0:V.mediaTypeId)===p.Gd.LearningPackage&&V.scormCourseId&&V.sessionMediaFiles&&(null===(v=V.sessionMediaFiles)||void 0===v?void 0:v.length)>0?n.a.createElement(jo,{sessionId:J}):J&&((null===V||void 0===V?void 0:V.mediaTypeId)===p.Gd.Audio||(null===V||void 0===V?void 0:V.mediaTypeId)===p.Gd.Video)&&V.sessionMediaFiles&&(null===(f=V.sessionMediaFiles)||void 0===f?void 0:f.length)>0?n.a.createElement(Po,{sessionId:J}):n.a.createElement(n.a.Fragment,null,(null===V||void 0===V?void 0:V.mediaTypeId)===p.Gd.Url&&""!==(null===V||void 0===V?void 0:V.launchUrl)?n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{m:3,textAlign:"center"},n.a.createElement(h.Button,{className:F.launchButton,onClick:function(){return window.open(null===V||void 0===V?void 0:V.launchUrl)},color:"primary",variant:"contained",fullWidth:!0},n.a.createElement(h.Typography,{variant:"h3",className:F.h5Label},"View Course"))))):n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},n.a.createElement(h.Box,{height:160})),n.a.createElement(h.Grid,{item:!0,xs:10,sm:8,md:4,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"warning"},"No"," ",(null===V||void 0===V?void 0:V.mediaTypeId)===p.Gd.Audio||(null===V||void 0===V?void 0:V.mediaTypeId)===p.Gd.Video?"media file":"learning package"," ","available for this session.")),n.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},n.a.createElement(h.Box,{height:160})))):n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},n.a.createElement(h.Box,{height:160})),n.a.createElement(h.Grid,{item:!0,xs:10,sm:8,md:4,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"warning"},"The session is not open for clients.")),n.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},n.a.createElement(h.Box,{height:160}))))),(2!==T||2===T&&(null===V||void 0===V?void 0:V.isOpenToClient))&&n.a.createElement(h.Box,{hidden:k},n.a.createElement(h.Tabs,{key:"tabs",components:[{label:"Overview",render:n.a.createElement(h.Container,{maxWidth:"lg"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,md:12},n.a.createElement(h.Column,{crossAxisAlignment:"stretch",flex:1,size:"max"},((null===G||void 0===G?void 0:G.description)||re||ne||ae||se||oe||le)&&n.a.createElement(h.Expanded,{flex:1},n.a.createElement(h.Card,null,n.a.createElement(h.CardHeader,{subheader:null!==(m=null===G||void 0===G?void 0:G.providerName)&&void 0!==m?m:"",title:n.a.createElement(h.Typography,{variant:"h5"},null===G||void 0===G?void 0:G.title,""!==(null===V||void 0===V?void 0:V.title)&&(null===G||void 0===G?void 0:G.title)!==(null===V||void 0===V?void 0:V.title)?": ".concat(null===V||void 0===V?void 0:V.title):"")}),n.a.createElement(h.CardContent,{noTopPadding:!0},H?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement("br",null),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):n.a.createElement(h.Grid,{container:!0,spacing:"form"},(null===G||void 0===G?void 0:G.description)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.TextEditorView,{model:L(null===G||void 0===G?void 0:G.description)}))),(null===V||void 0===V?void 0:V.detail)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Divider,null),n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.TextEditorView,{model:L(null===V||void 0===V?void 0:V.detail)}))),0!==(null!==(y=null===V||void 0===V||null===(g=V.sessionInstructors)||void 0===g?void 0:g.length)&&void 0!==y?y:0)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Column,null,n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"h6",weight:"semi-bold"},"Instructors")),null===V||void 0===V||null===(b=V.sessionInstructors)||void 0===b?void 0:b.map((function(e){return n.a.createElement(h.Row,{key:e.userId},n.a.createElement(h.Avatar,{src:null===e||void 0===e?void 0:e.avatar,style:{height:52,width:52}},Object(N.i)(null===e||void 0===e?void 0:e.fullName)),n.a.createElement(h.Column,{mainAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1.5},n.a.createElement(h.Typography,{color:"default",variant:"body1",weight:"bold"},"".concat(e.fullName)),n.a.createElement(h.Typography,{color:"default",variant:"caption"},"Instructor"))))})))),0!==(null===re||void 0===re?void 0:re.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Competencies")),n.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},n.a.createElement(h.Typography,{variant:"body1"},null===re||void 0===re?void 0:re.join(", ")))),0!==(null===ne||void 0===ne?void 0:ne.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Departments")),n.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},n.a.createElement(h.Typography,{variant:"body1"},null===ne||void 0===ne?void 0:ne.join(", ")))),0!==(null===ae||void 0===ae?void 0:ae.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Practice Areas")),n.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},n.a.createElement(h.Typography,{variant:"body1"},null===ae||void 0===ae?void 0:ae.join(", ")))),0!==(null===oe||void 0===oe?void 0:oe.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Levels")),n.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},n.a.createElement(h.Typography,{variant:"body1"},null===oe||void 0===oe?void 0:oe.join(", ")))),0!==(null===se||void 0===se?void 0:se.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Class Year")),n.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},n.a.createElement(h.Typography,{variant:"body1"},null===se||void 0===se?void 0:se.join(", ")))),0!==(null===le||void 0===le?void 0:le.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Tags")),n.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},n.a.createElement(h.Wrap,{direction:"horizontal",runSpacing:2,spacing:2},null===le||void 0===le?void 0:le.map((function(e){return n.a.createElement(h.Expanded,{key:e,flex:0},n.a.createElement(h.Chip,{variant:"box",label:null!==e&&void 0!==e?e:"",size:"small"}))})))))))))))))},{label:"Materials",render:n.a.createElement(h.Container,{maxWidth:"lg"},n.a.createElement(h.Card,null,n.a.createElement(h.CardHeader,{title:"Materials"}),0===(null!==(S=null===V||void 0===V||null===(E=V.sessionMaterials)||void 0===E?void 0:E.length)&&void 0!==S?S:0)?n.a.createElement(h.CardContent,{noTopPadding:!0},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No materials associated to this course.")):n.a.createElement(h.CardContent,{noTopPadding:!0},(de=null===V||void 0===V?void 0:V.sessionMaterials,de?n.a.createElement(h.Grid,{container:!0,spacing:"card",alignItems:"center"},null===de||void 0===de?void 0:de.map((function(e){var t,i,r;return n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4,lg:4,key:e.sessionMaterialId},n.a.createElement(h.Link,{onClick:function(){return C("".concat(e.fileId||0))}},n.a.createElement(h.Box,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:"1px solid #F1F1F1",p:1},n.a.createElement(h.Box,{m:1},n.a.createElement(Qn,{fileExtension:null!==(t=null===(i=e.libraryFile)||void 0===i?void 0:i.extension)&&void 0!==t?t:"",color:"primary",type:"duotone",size:"lg"})),n.a.createElement(h.Box,null,n.a.createElement(ua,{title:(null===(r=e.libraryFile)||void 0===r?void 0:r.title)||""})))))}))):null))))},{label:"Credits",render:n.a.createElement(h.Container,{maxWidth:"lg"},0===(null!==(I=null===V||void 0===V||null===(O=V.sessionLicenses)||void 0===O?void 0:O.length)&&void 0!==I?I:0)?n.a.createElement(h.Card,null,n.a.createElement(h.CardHeader,{title:"Credits"}),n.a.createElement(h.CardContent,{noTopPadding:!0},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No credits associated to this course."))):n.a.createElement(h.Grid,{item:!0,xs:12,md:12},n.a.createElement(h.Column,{crossAxisAlignment:"stretch",flex:1,size:"max"},n.a.createElement(h.Expanded,{mb:3,flex:1},n.a.createElement(h.Card,null,n.a.createElement(h.CardHeader,{title:"Credits"}),n.a.createElement(h.CardContent,{noTopPadding:!0},X?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):V&&n.a.createElement(fo,{session:V})))))))}],centered:!0}))))})))),No=function(){return n.a.createElement("div",null)},ko=function(){return n.a.createElement(h.Box,{ml:1,mr:1,height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},n.a.createElement(h.Box,null,n.a.createElement(h.Alert,{variant:"standard",type:"info"},n.a.createElement(h.Typography,{variant:"body1"},"You may now close this window."))))},Do=(i(520),i(254)),Lo=function(e){return{type:Do.a,payload:e}},Jo=function(e){return{type:Do.b,payload:e}},Fo=Lo,Bo=function(e){return function(t){var i=q.r.getAllByLicense(void 0,new p.Fc(e));return t(Fo(null)),i.then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}},Ro=function(e){var t=new p.yc({page:1,pageSize:-1,userId:e});return function(e){return q.s.getAllUserUkLicenses(void 0,p.yc.fromJS(t)).then((function(e){return e})).catch((function(t){return e(Object(bn.b)(t)),null}))}},Uo=function(e){return function(t){return q.s.getAllDevelopmentRecords(void 0,p.fc.fromJS(e)).then((function(e){return e})).catch((function(e){return t(Object(bn.b)(e)),null}))}},Go=function(e){return function(t){return q.q.get(void 0,p.Ec.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}},qo=function(e){var t=e.maxWidth,i=e.message,r=e.open,a=e.title,o=e.onCancel,s=e.onClose,l=e.OnConfirm;return n.a.createElement(hn.a,{"aria-labelledby":"confirmation-dialog-title",open:r,onClose:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return s()})),maxWidth:t},n.a.createElement(un.DialogHeader,{id:"confirmation-dialog-title",colorMode:"light",titleBar:{title:a}}),n.a.createElement(un.DialogBody,{maxWidth:!1},i),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Button,{onClick:function(){return o()},color:"default",variant:"outlined",fullWidth:!0},"No"),n.a.createElement(h.Button,{onClick:function(){return l()},color:"primary",variant:"contained",autoFocus:!0,fullWidth:!0},"Yes")))},Mo=Object(s.b)((function(e){var t;return{authenticatedUser:e.users.authenticatedUser,userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{addDevelopmentPlans:function(t,i){return e(function(e,t){return function(i){var r=t?q.r.update(void 0,p.Ae.fromJS(e)):q.r.create(void 0,p.T.fromJS(e));return i(Fo(null)),r.then((function(e){return i(Object(bn.a)({message:"Development plan".concat(e>1?"s were":" was"," successfully ").concat(t?"updated":"saved","."),variant:"success"})),e})).catch((function(e){return i(Object(bn.b)(e)),new Array}))}}(t,i))}}}))((function(e){var t,i=e.close,a=e.showConfirm,o=e.userId,s=e.addDevelopmentPlans,l=e.setShowConfirm,d=e.setDirty,u=e.setClose,v=rs(),p=v.devPlans,f=v.frameworkId,m=v.setDevPlans,y=v.setSaving,g=v.setScreen,b=v.onClose,S=v.periodFrom,E=v.periodTo,I=v.isEditMode,O=Object(r.useState)(!1),C=Object(c.a)(O,2),x=C[0],j=C[1],w=Object(r.useState)(),P=Object(c.a)(w,2),T=P[0],A=P[1],k={devPlans:p,validationSchema:Object(yn.object)().shape({devPlanState:Object(yn.array)().nullable().of(Object(yn.object)().shape({categoryName:Object(yn.string)().nullable(),developmentPlans:Object(yn.array)().nullable().of(Object(yn.object)().shape({category:Object(yn.string)().nullable().trim(),customNeed:Object(yn.string)().nullable().trim(),plan:Object(yn.string)().trim().nullable(),achieve:Object(yn.string)().trim().nullable(),isIncluded:Object(yn.boolean)(),targetCompletionDate:Object(yn.date)().nullable().when("isIncluded",{is:!0,then:Object(yn.date)().nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")).min(S,"Target completion date must be within the reporting period.").max(E,"Target completion date must be within the reporting period.")}),status:Object(yn.number)().nullable()}))}))}),onSubmit:function(e){var t=e.devPlanState,r=new Array;y(!0),l(!1),t.forEach((function(e){return e.developmentPlans.forEach((function(e){var t,i,n,a;r.push({developmentPlanId:I?e.developmentPlanId:void 0,userId:o,developmentPlanCompetencyFrameworkId:f,customNeed:0===(null!==(t=e.developmentPlanCategoryId)&&void 0!==t?t:0)?e.customNeed:null,developmentPlanCategoryId:0===(null!==(i=e.developmentPlanCategoryId)&&void 0!==i?i:0)?null:e.developmentPlanCategoryId,plan:e.plan,developmentPlanSubCategoryId:0===(null!==(n=e.developmentPlanSubCategoryId)&&void 0!==n?n:0)?null:e.developmentPlanSubCategoryId,achieve:e.achieve,startDate:Object(N.e)(S),endDate:Object(N.e)(E),targetCompletionDate:0===(null!==(a=e.targetCompletionDate)&&void 0!==a?a:0)?null:Object(N.e)(new Date(e.targetCompletionDate)),status:e.status,isIncluded:e.isIncluded})}))})),s({userId:o,developmentPlans:r},I).then((function(){y(!1),j(!1)})).then((function(){a&&!i?(e.devPlanState.filter((function(e){return e.isCustomNeed})).forEach((function(e){return e.developmentPlans.forEach((function(e){e.isEditMode=!1,e.hasPreviousValues=e.isIncluded}))})),m(e),g(0)):b()}))}};return n.a.createElement(h.Grid,{container:!0,spacing:"form"},I&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ToggleButtonGroup,{formikContext:!1,exclusive:!0,size:"small",color:"primary",options:[{label:"In Progress",value:1},{label:"Complete",value:2}],value:T,onChange:function(e,t){return function(e){j(!0),A(e),j(!1)}(t)}})),n.a.createElement(h.Grid,{item:!0,xs:12},x?n.a.createElement(Ia,{type:"filter-drawer"}):0===(null===p||void 0===p||null===(t=p.devPlanState)||void 0===t?void 0:t.length)?n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12},n.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No learning and development needs found.")))):n.a.createElement(mn.Formik,{initialValues:k.devPlans,validationSchema:k.validationSchema,onSubmit:k.onSubmit,enableReinitialize:!0},(function(e){return d(null===e||void 0===e?void 0:e.dirty),n.a.createElement(h.Form,{id:"devPlanValues",formikContext:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},p.devPlanState.map((function(e,t){var i;return null===(i=e.developmentPlans)||void 0===i?void 0:i.map((function(i,r){return i.isIncluded&&(0===(null!==T&&void 0!==T?T:0)||T===i.status)&&n.a.createElement(Ho,{key:"development-plan-".concat(t,"-tile-").concat(r),isCustomNeed:e.isCustomNeed,outerIndex:t,innerIndex:r,isUnauthorized:!1})}))}))),n.a.createElement(qo,{open:a,title:"Confirm",message:"Do you want to save changes first?",maxWidth:"sm",OnConfirm:function(){return e.handleSubmit()},onClose:function(){u(!1),l(!1)},onCancel:function(){l(!1),i?b():g(0)}}))}))))})),zo=function(e){var t=e.isUnauthorized,i=rs(),a=i.setDevPlans,o=i.setScreen,s=i.devPlans,l=i.frameworkId,c=i.setHasChanges,d={devPlans:s,validationSchema:Object(yn.object)().shape({devPlanState:Object(yn.array)().nullable().of(Object(yn.object)().shape({categoryName:Object(yn.string)().nullable(),developmentPlans:Object(yn.array)().nullable().of(Object(yn.object)().shape({category:Object(yn.string)().nullable().trim(),customNeed:Object(yn.string)().nullable().trim().when("isCustomNeed",{is:!0,then:Object(yn.string)().required("Required")}),plan:Object(yn.string)().trim().nullable(),isIncluded:Object(yn.boolean)()}))}))}),onSubmit:function(e){e.devPlanState.filter((function(e){return e.isCustomNeed})).forEach((function(e){return e.developmentPlans.forEach((function(e){e.isEditMode=!1,e.hasPreviousValues=e.isIncluded}))})),a(e),o(1)}};return n.a.createElement(mn.Formik,{initialValues:d.devPlans,validationSchema:d.validationSchema,onSubmit:d.onSubmit,enableReinitialize:!0},(function(e){var i=e.values.devPlanState;return n.a.createElement(h.Form,{id:"devPlanFramework",formikContext:!0},n.a.createElement(h.Grid,{container:!0,spacing:"card"},null===i||void 0===i?void 0:i.map((function(e,i){var a,o;return n.a.createElement(r.Fragment,{key:"grid-framework-cat-".concat(i)},e.hasSubCat&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary",style:{whiteSpace:"pre-wrap"}},e.categoryName)),null===(a=e.developmentPlans)||void 0===a?void 0:a.map((function(e,r){return n.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-".concat(i,"-sub-category-field-").concat(r)},n.a.createElement(h.FormControlLabel,{control:n.a.createElement(Vo,{outerIndex:i,innerIndex:r,readOnly:e.hasLearningNeeds||t}),label:n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.plan),labelPlacement:"end"}))})))))),!e.hasSubCat&&!e.isCustomNeed&&(null===(o=e.developmentPlans)||void 0===o?void 0:o.map((function(e,r){return n.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-framework-cat-".concat(i,"-subCat-").concat(r)},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,sm:12},n.a.createElement(h.FormControlLabel,{control:n.a.createElement(Vo,{outerIndex:i,innerIndex:r,readOnly:e.hasLearningNeeds||t}),label:n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary",style:{whiteSpace:"pre-wrap"}},e.category),labelPlacement:"end"}))))))}))),!e.hasSubCat&&e.isCustomNeed&&n.a.createElement(mn.FieldArray,{name:"devPlanState.".concat(i,".developmentPlans"),render:function(r){var a,o=r.push,s=r.remove;return n.a.createElement(n.a.Fragment,null,null===(a=e.developmentPlans)||void 0===a?void 0:a.map((function(e,r){return n.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-framework-cat-".concat(i,"-subCat-").concat(r)},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(es,{key:"custom-need-".concat(i,"-key-").concat(r),outerIndex:i,innerIndex:r,remove:s,readOnly:e.hasLearningNeeds||t}))))})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Button,{variant:"text",color:"primary",disabled:t,startIcon:n.a.createElement(h.SystemIcon,{icon:"Add",size:"sm"}),"aria-label":"Add custom need",onClick:function(){c(!0),o({developmentPlanCompetencyFrameworkId:l,developmentPlanCategoryId:null,customNeed:"",category:null,plan:"",developmentPlanSubCategoryId:null,achieve:"",isCustomNeed:!0,status:1,isIncluded:!0,targetCompletionDate:null,hasSubCat:!1,hasLearningNeeds:!1,isEditMode:!0,hasPreviousValues:!1})}},"Add a Custom Need")))}}))}))))}))},Wo=Object(V.makeStyles)((function(e){var t=e.palette;e.spacing;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},pagebreak:{"@media print":{pageBreakInside:"avoid",pageBreakBefore:"auto"}},headerTable:{textAlign:"center"},label:{fontSize:"15pt",textAlign:"center",fontFamily:"Arial"},label1:{textAlign:"left",fontWeight:"bold",fontFamily:"Arial"},label2:{textAlign:"left",fontFamily:"Arial"},box:{"@media print":{height:"75px",pageBreakInside:"avoid",pageBreakBefore:"auto"}},columnHeader:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.grey[500],width:"240px"},columnHeader2:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.grey[500],width:"330px"},columnHeader3:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.grey[500],width:"100px"},subCategory:{"@media print":{pageBreakInside:"avoid",pageBreakBefore:"auto"},fontSize:"10pt",fontFamily:"Arial",border:"1px solid",overflowWrap:"break-word"}})})),Vo=function(e){var t=e.outerIndex,i=e.innerIndex,a=e.readOnly,o=rs().setHasChanges,s=Object(h.UseFormikContext)(!0),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)(null===s||void 0===s?void 0:s.getFieldProps("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded")).value),f=Object(c.a)(p,2),m=f[0],y=f[1],g=function(){null===s||void 0===s||s.setFieldValue("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),!0),v(!1)};return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Switch,{id:"devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),disabled:a,color:"primary",checked:m,onChange:function(){return o(!0),void((null===s||void 0===s?void 0:s.getFieldProps("devPlanState.".concat(t,".developmentPlans.").concat(i,".hasPreviousValues")).value)?v(!0):(y(!m),null===s||void 0===s||s.setFieldValue("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),!m)))}}),n.a.createElement(qo,{open:u,title:"Confirm",message:"This action will remove the learning need from your development plan. Would you like to continue?",maxWidth:"sm",OnConfirm:function(){null===s||void 0===s||s.setFieldValue("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),!1),null===s||void 0===s||s.setFieldValue("devPlanState.".concat(t,".developmentPlans.").concat(i,".hasPreviousValues"),!1),y(!1),v(!1)},onClose:function(){return g()},onCancel:function(){return g()}}))},_o=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing;return Object(V.createStyles)({headerTable:{textAlign:"center"},name:{textAlign:"center",fontFamily:"Arial"},label1:{textAlign:"right",fontWeight:"bold",fontFamily:"Arial"},label2:{textAlign:"left",fontFamily:"Arial"},columnHeader:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"400px"},columnHeader1:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"500px"},columnHeader2:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"100px"},category:{fontSize:"10pt",fontFamily:"Arial",border:"1px solid",fontWeight:"bold",fontStyle:"italic",backgroundColor:t.grey[200]},subCategory:{fontSize:"10pt",fontFamily:"Arial",border:"1px solid"},overallReflection:{border:"1px solid",minHeight:i(10)},printButton:{"@media print":{display:"none !important"}},pageBreak:{"@media print":{pageBreakInside:"avoid",pageBreakAfter:"auto"}},body:{width:"100%","@media print":{zoom:"70%",size:"landscape"}},box:{"@media print":{height:"75px"}},devRecordColumnHeader:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"100px"},devRecordColumnHeader1:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"250px"},devRecordColumnHeader2:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"200px"},devRecordColumnHeader3:{textAlign:"center",fontSize:"10pt",fontFamily:"Arial",fontWeight:"bold",border:"1px solid",borderStyle:"solid",backgroundColor:t.primary.light,width:"375px"}})})),Yo=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser,printRequestBody:e.developmentPlan.printRequestBody}}),(function(e){return{getDevelopmentRecords:function(t){return e(function(e){return function(t){return q.s.getAllDevelopmentRecordByLicenseIdList(void 0,p.Gc.fromJS(e)).then((function(e){return e})).catch((function(e){return t(Object(bn.b)(e)),null}))}}(t))},getDevelopmentOverallReflection:function(t){return e(Go(t))},getDevelopmentPlans:function(t){return e(Bo(t))}}})),$o=Object(d.o)(Yo((function(e){var t,i=e.getDevelopmentOverallReflection,a=e.getDevelopmentPlans,o=e.getDevelopmentRecords,s=e.printRequestBody,l=e.match,d=e.loggedUser,u=l.params.isConfirmed,v=Object(r.useState)(),f=Object(c.a)(v,2),m=f[0],y=f[1],g=Object(r.useState)(),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useRef)(d),w=_o();Object(r.useEffect)((function(){var e;((null===s||void 0===s?void 0:s.frameworkId)||0)>0?a(new p.Fc({userId:null===(e=j.current)||void 0===e?void 0:e.userId,competencyFrameworkId:(null===s||void 0===s?void 0:s.frameworkId)||0,periodFrom:Object(N.e)(new Date(null===s||void 0===s?void 0:s.periodStartDate)),periodTo:Object(N.e)(new Date(null===s||void 0===s?void 0:s.periodEndDate)),isIncludedOnly:!0})).then((function(e){var t=new Array;e.forEach((function(e){var i,r=(e[0].developmentPlanSubCategoryId||0)>0,n={developmentPlanCategoryId:e[0].developmentPlanCategoryId||0,isCustomNeed:null!==(i=e[0].isCustomNeed)&&void 0!==i&&i,categoryName:e[0].isCustomNeed?"Additional Need":e[0].category,hasSubCat:r,isIncluded:null!==r&&void 0!==r?r:e[0].isIncluded,developmentPlans:new Array};e.forEach((function(e){n.developmentPlans.push(e)})),t.push(n)})),y(t)})):y([])}),[a,s]),Object(r.useEffect)((function(){var e;o(new p.Gc({userId:null===(e=j.current)||void 0===e?void 0:e.userId,competencyFrameworkId:(null===s||void 0===s?void 0:s.frameworkId)||0,licenseIds:null===s||void 0===s?void 0:s.licenseIdList,periodStartDate:Object(N.e)(new Date(null===s||void 0===s?void 0:s.periodStartDate)),periodEndDate:Object(N.e)(new Date(null===s||void 0===s?void 0:s.periodEndDate))})).then((function(e){E(e)}))}),[o,s]),Object(r.useEffect)((function(){var e;((null===s||void 0===s?void 0:s.frameworkId)||0)>0?i(new p.Ec({userId:null===(e=j.current)||void 0===e?void 0:e.userId,developmentOverallReflectionCompetencyFrameworkId:(null===s||void 0===s?void 0:s.frameworkId)||0,startDate:Object(N.e)(new Date(null===s||void 0===s?void 0:s.periodStartDate)),endDate:Object(N.e)(new Date(null===s||void 0===s?void 0:s.periodEndDate))})).then((function(e){var t;x(null!==(t=null===e||void 0===e?void 0:e.reflection)&&void 0!==t?t:"")})):x("")}),[i,s]);return n.a.createElement(h.Box,{m:1.5,maxWidth:"1100px"},n.a.createElement(h.Grid,{container:!0,spacing:"card",className:w.printButton},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end"},n.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),void 0===m||void 0===S||void 0===C?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement("table",{className:w.headerTable},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{colSpan:2,className:w.name},n.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"".concat(null===d||void 0===d?void 0:d.firstName," ").concat(null===d||void 0===d?void 0:d.lastName," - Development Plan")))),n.a.createElement("tr",null,n.a.createElement("td",{className:w.label1},"Time Period:"),n.a.createElement("td",{className:w.label2},"".concat(Object(N.c)(null===s||void 0===s?void 0:s.periodStartDate,"MMMM DD, YYYY")," - ").concat(Object(N.c)(null===s||void 0===s?void 0:s.periodEndDate,"MMMM DD, YYYY"))))))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"LEARNING AND DEVELOPMENT NEEDS")),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement("table",{className:w.box},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",{className:w.columnHeader},"Learning Need Addressed"),n.a.createElement("th",{className:w.columnHeader1},"Plans to Address this Need"),n.a.createElement("th",{className:w.columnHeader2},"Target Date"),n.a.createElement("th",{className:w.columnHeader2},"Status"))),n.a.createElement("tbody",null,null===m||void 0===m?void 0:m.map((function(e,t){return n.a.createElement(n.a.Fragment,{key:"dev-plan-tr-".concat(t)},n.a.createElement("tr",null,n.a.createElement("td",{colSpan:5,className:w.category},e.categoryName)),e.developmentPlans.map((function(e,i){return n.a.createElement("tr",{key:"dev-plan-tr-".concat(t,"-subCat-").concat(i),className:w.pageBreak},n.a.createElement("td",{className:w.subCategory},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.isCustomNeed?e.customNeed:e.plan)),n.a.createElement("td",{className:w.subCategory},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.achieve)),n.a.createElement("td",{className:w.subCategory},Object(N.c)(e.targetCompletionDate)),n.a.createElement("td",{className:w.subCategory},function(e){switch(e){case 1:return"In Progress";case 2:return"Complete";default:return"In Progress"}}(e.status)))})))}))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Box,{className:w.pageBreak},n.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"COURSES AND ACTIVITIES ADDRESSING MY LEARNING AND DEVELOPMENT NEEDS"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement("table",{className:w.box},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",{className:w.devRecordColumnHeader},"Date"),n.a.createElement("th",{className:w.devRecordColumnHeader},"Hours"),n.a.createElement("th",{className:w.devRecordColumnHeader1},"Activity"),n.a.createElement("th",{className:w.devRecordColumnHeader2},"Learning Need Addressed"),n.a.createElement("th",{className:w.devRecordColumnHeader3},"Activity Reflection"))),n.a.createElement("tbody",null,null===S||void 0===S||null===(t=S.developmentRecord)||void 0===t?void 0:t.map((function(e,t){var i;return n.a.createElement("tr",{key:"dev-record-tr-".concat(t),className:w.pageBreak},n.a.createElement("td",{className:w.subCategory},Object(N.c)(e.courseActivityDate)),n.a.createElement("td",{className:w.subCategory},e.hours),n.a.createElement("td",{className:w.subCategory},e.courseActivityTitle),n.a.createElement("td",{className:w.subCategory},null===(i=e.learningNeeds)||void 0===i?void 0:i.map((function(e,i){return n.a.createElement("tr",{key:"dev-record-tr-".concat(t,"-learning-need-").concat(i)},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.subCategoryId?e.subCategoryName:e.competencyName))}))),n.a.createElement("td",{className:w.subCategory},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.reflection)))}))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Box,{className:w.pageBreak},n.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"OVERALL REFLECTION"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Box,{className:w.overallReflection},n.a.createElement(h.TextEditorView,{model:L(C)}))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Box,{className:w.pageBreak},n.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"DECLARATION OF COMPETENCE"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.FormControlLabel,{control:n.a.createElement(h.Checkbox,{size:"small",color:"primary",formikContext:!1,checked:"1"===u}),label:n.a.createElement(h.Typography,{variant:"caption",color:"textPrimary"},"When selecting this box, I declare that I have reflected on my practice and addressed any identified learning and development needs for the year."),labelPlacement:"end"}))))}))),Ho=function(e){var t=e.isCustomNeed,i=e.outerIndex,r=e.innerIndex,a=e.isUnauthorized,o=Object(h.UseFormikContext)(!0),s=function(e){switch(e){case 1:return{cardStatus:"info",icon:"Repeat",color:"info"};case 2:return{cardStatus:"success",icon:"Success",color:"success"};default:return{cardStatus:"default",icon:"Loading",color:"primary"}}};return n.a.createElement(h.Grid,{item:!0,sm:12},n.a.createElement(h.Card,{status:s(null===o||void 0===o?void 0:o.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(r,".status")).value).cardStatus,variant:"outlined"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Categorize the area in which you need/want to improve")),n.a.createElement(h.Grid,{item:!0,xs:12},t?null===o||void 0===o?void 0:o.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(r,".customNeed")).value:null===o||void 0===o?void 0:o.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(r,".category")).value),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{label:"What do I want/need to learn or improve?",id:"devPlanState.".concat(i,".developmentPlans.").concat(r,".plan"),fullWidth:!0,multiline:!0,maxRows:4,readOnly:0!==((null===o||void 0===o?void 0:o.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(r,".developmentPlanSubCategoryId")).value)||0),disabled:a})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{label:"What will I do to achieve this?",id:"devPlanState.".concat(i,".developmentPlans.").concat(r,".achieve"),fullWidth:!0,multiline:!0,maxRows:4,disabled:a})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:6},n.a.createElement(h.DateTimeField,{label:"Target date for completion (".concat(Object(N.h)(),")"),id:"devPlanState.".concat(i,".developmentPlans.").concat(r,".targetCompletionDate"),format:Object(N.h)(),fullWidth:!0,type:"date",disabled:a})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:6},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:10,sm:11,md:10},n.a.createElement(h.SelectField,{id:"devPlanState.".concat(i,".developmentPlans.").concat(r,".status"),fullWidth:!0,label:"Status",disabled:a},n.a.createElement(h.MenuItem,{value:1},"In Progress"),n.a.createElement(h.MenuItem,{value:2},"Complete"))),n.a.createElement(h.Grid,{item:!0,xs:2,sm:1,md:2,alignment:"center-left"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.SystemIcon,{icon:s(null===o||void 0===o?void 0:o.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(r,".status")).value).icon,size:"md",type:"light",color:s(null===o||void 0===o?void 0:o.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(r,".status")).value).color})))))))))},Ko=Object(s.b)((function(e){return{devPlanState:e.developmentPlan.devPlanState,loggedUser:e.users.loggedUser,printRequestBody:e.developmentPlan.printRequestBody}}),(function(){return{}}))((function(e){var t=e.devPlanState,i=e.loggedUser,r=e.printRequestBody,a=Wo();return n.a.createElement(h.Box,{m:1,maxWidth:"1100px",alignSelf:"center"},n.a.createElement(h.Grid,{container:!0,spacing:"card",className:a.printButton},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end"},n.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),n.a.createElement("br",null),t?0===t.length?n.a.createElement(h.Box,null,n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found.")))):n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement("h1",{className:a.label},"DEVELOPMENT PLAN")),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement("span",{className:a.label1},"Name:")),n.a.createElement(h.Column,null,n.a.createElement("span",{className:a.label2}," ".concat(null===i||void 0===i?void 0:i.firstName," ").concat(null===i||void 0===i?void 0:i.lastName)))),n.a.createElement(h.Row,null,n.a.createElement(h.Column,null,n.a.createElement("span",{className:a.label1},"Time Period:")),n.a.createElement(h.Column,null,n.a.createElement("span",{className:a.label2}," ".concat(Object(N.c)(null===r||void 0===r?void 0:r.periodStartDate,"MMMM DD, YYYY")," to ").concat(Object(N.c)(null===r||void 0===r?void 0:r.periodEndDate,"MMMM DD, YYYY")))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextEditorView,{model:L(null===r||void 0===r?void 0:r.competencyFrameworkUserInstruction)})),n.a.createElement(h.Grid,{item:!0,stretchContent:!0,xs:12},n.a.createElement("table",{className:a.box},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",{className:a.columnHeader},"Categorize the area in which you need/want to improve"),n.a.createElement("th",{className:a.columnHeader2},"What do I want/need to learn or improve?"),n.a.createElement("th",{className:a.columnHeader2},"What will I do to achieve this?"),n.a.createElement("th",{className:a.columnHeader3},"Target date for completion"),n.a.createElement("th",{className:a.columnHeader3},"Status"))),n.a.createElement("tbody",null,t.map((function(e){return null===e||void 0===e?void 0:e.developmentPlans.filter((function(e){return e.isIncluded})).map((function(e,t){return n.a.createElement("tr",{key:"dev-plan-print-tr-".concat(t)},n.a.createElement("td",{className:a.subCategory},e.isCustomNeed?e.customNeed:e.category),n.a.createElement("td",{className:a.subCategory},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.plan)),n.a.createElement("td",{className:a.subCategory},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.achieve)),n.a.createElement("td",{className:a.subCategory},Object(N.c)(e.targetCompletionDate)),n.a.createElement("td",{className:a.subCategory},function(e){switch(e){case 1:return"In Progress";case 2:return"Completed";default:return"In Progress"}}(e.status)))}))})))))):n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})))})),Qo=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{getDevelopmentPlans:function(t){return e(Bo(t))},getDevPlanFramework:function(t){return e(function(e){return function(t){var i=q.r.getDevelopmentPlanFramework(void 0,new p.Pc(e));return t(Fo(null)),i.then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}}(t))},setDevelopmentPlans:function(t){return e(Lo(t))},setRequestBody:function(t){return e(Jo(t))}}}))((function(e){var t=e.competencyFrameworkId,i=e.userId,a=e.open,o=e.periodFrom,s=e.periodTo,l=e.competencyFrameworkUserInstruction,d=e.getDevelopmentPlans,u=e.getDevPlanFramework,v=e.onClose,f=e.setDevelopmentPlans,m=e.setRequestBody,y=Object(r.useState)(!1),g=Object(c.a)(y,2),b=g[0],S=g[1],E=Object(r.useState)(!1),I=Object(c.a)(E,2),O=I[0],C=I[1],x=Object(r.useState)(!1),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(!1),A=Object(c.a)(T,2),k=A[0],D=A[1],L=Object(r.useState)(!1),J=Object(c.a)(L,2),F=J[0],B=J[1],R=Object(r.useState)(!1),U=Object(c.a)(R,2),G=U[0],q=U[1],M=Object(r.useState)(!1),z=Object(c.a)(M,2),W=z[0],V=z[1],_=Object(r.useState)(!1),Y=Object(c.a)(_,2),$=Y[0],H=Y[1],K=Object(r.useState)(!1),Q=Object(c.a)(K,2),Z=Q[0],X=Q[1],ee=Object(r.useState)(0),te=Object(c.a)(ee,2),ie=te[0],re=te[1],ne=Object(r.useState)(),ae=Object(c.a)(ne,2),oe=ae[0],se=ae[1],le={frameworkId:t||0,devPlans:oe,isEditMode:w,setDevPlans:se,loading:b,setLoading:S,screen:ie,setScreen:re,setSaving:C,periodFrom:o,periodTo:s,onClose:v,hasChanges:Z,setHasChanges:X},ce=Object(r.useRef)(t),de=Object(r.useRef)(o),ue=Object(r.useRef)(s),he=Object(r.useRef)(i);Object(r.useEffect)((function(){t&&a&&(re(0),H(!1),X(!1),C(!1),S(!0),d(new p.Fc({userId:he.current,competencyFrameworkId:t,periodFrom:Object(N.e)(de.current),periodTo:Object(N.e)(ue.current)})).then((function(e){var t=new Array,i=!1;if(null===e||void 0===e||e.forEach((function(e){var r,n=(e[0].developmentPlanSubCategoryId||0)>0,a={developmentPlanCategoryId:e[0].developmentPlanCategoryId||0,isCustomNeed:null!==(r=e[0].isCustomNeed)&&void 0!==r&&r,categoryName:e[0].isCustomNeed?"":e[0].category,hasSubCat:n,isIncluded:null!==n&&void 0!==n?n:e[0].isIncluded,developmentPlans:new Array};e[0].isCustomNeed&&(i=!0),e.forEach((function(e){a.developmentPlans.push(e)})),t.push(a)})),(null===e||void 0===e?void 0:e.length)>0&&!i){t.push({developmentPlanCategoryId:0,isCustomNeed:!0,categoryName:"",hasSubCat:!1,isIncluded:!1,developmentPlans:[]})}return se({devPlanState:t}),null===e||void 0===e?void 0:e.length})).then((function(e){e>0?(P(!0),re(1),S(!1)):D(!0)})))}),[d,t,a]);Object(r.useEffect)((function(){k&&u(new p.Pc({userId:he.current,competencyFrameworkId:ce.current,periodFrom:Object(N.e)(de.current),periodTo:Object(N.e)(ue.current)})).then((function(e){var t;0===(null!==(t=null===e||void 0===e?void 0:e.length)&&void 0!==t?t:0)&&B(!0),function(e){var t=new Array;null===e||void 0===e||e.forEach((function(e){var i,r,n,a,o,s={developmentPlanCategoryId:e.categoryId||0,isCustomNeed:null!==(i=e.isCustomNeed)&&void 0!==i&&i,categoryName:e.categoryName,hasSubCat:null!==(r=e.hasSubCat)&&void 0!==r&&r,isIncluded:null!==(n=e.hasSubCat)&&void 0!==n&&n,developmentPlans:null!==(a=null===(o=e.subCategories)||void 0===o?void 0:o.map((function(t){var i;return{developmentPlanCompetencyFrameworkId:t.competencyFrameworkId,developmentPlanCategoryId:e.categoryId||0,customNeed:"",category:e.categoryName,plan:t.subCategoryDescription,developmentPlanSubCategoryId:t.subCategoryId,achieve:"",isCustomNeed:!1,status:1,isIncluded:!1,targetCompletionDate:null,hasSubCat:null!==(i=e.hasSubCat)&&void 0!==i&&i,hasLearningNeeds:!1,hasPreviousValues:!1}})))&&void 0!==a?a:[]};t.push(s)}));t.push({developmentPlanCategoryId:0,isCustomNeed:!0,categoryName:"",hasSubCat:!1,isIncluded:!1,developmentPlans:[]}),se({devPlanState:t})}(e)})).then((function(){S(!1),D(!1)}))}),[u,k]);var ve=function(){var e;return b||O||0===(null===oe||void 0===oe||null===(e=oe.devPlanState)||void 0===e?void 0:e.length)||0===(t||0)},pe=function(){var e,t=!1;null===oe||void 0===oe||null===(e=oe.devPlanState)||void 0===e||e.forEach((function(e){return e.developmentPlans.forEach((function(e){e.isIncluded&&(t=!0)}))})),1===ie&&t&&(W||Z)?(H(!0),q(!0)):v()};return n.a.createElement(is.Provider,{value:le},n.a.createElement(h.SideDrawer,{size:"md",open:a,onClose:function(){return pe()}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h5"},"Development Plan"))),subtitle:n.a.createElement(h.Box,null,n.a.createElement(h.Box,null,b?n.a.createElement(h.Skeleton,{width:"100%"}):n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},0===ie?"Plan your learning and development for the year. Select your learning needs from the list below or add a custom need.":"Address, record, and evaluate your learning and development needs.")),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(o,"MMMM DD, YYYY")," - ").concat(Object(N.c)(s,"MMMM DD, YYYY"))))),actionRow:n.a.createElement(h.Tooltip,{title:ve()?"":"Print",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(h.IconButton,{type:"submit",color:"default",id:"printButton",disabled:ve(),onClick:function(){return f(null===oe||void 0===oe?void 0:oe.devPlanState),m({licenseId:0,frameworkId:t,periodStartDate:o,periodEndDate:s,competencyFrameworkUserInstruction:l}),void window.open("/developmentPlan/print","developmentPlan_".concat(t),"width=977px height=1006px")}},n.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}))))}}),n.a.createElement(sn.SideDrawerBody,null,b?n.a.createElement(Ia,{type:"filter-drawer"}):0===ie?t?n.a.createElement(zo,{isUnauthorized:!1}):n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12},n.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No associated framework.")))):n.a.createElement(Mo,{showConfirm:G,setShowConfirm:q,setDirty:V,close:$,setClose:H})),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,justifyContent:"center",spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{fullWidth:!0,disabled:b||O,color:"default",variant:"outlined",onClick:function(){0===ie?v():W?q(!0):re(0)}},0===ie?"Cancel":"Edit Needs")),n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{fullWidth:!0,form:0===ie?"devPlanFramework":"devPlanValues",disabled:b||O||F||0===(t||0)||1===ie&&function(){var e,t,i=!1;return null===oe||void 0===oe||null===(e=oe.devPlanState)||void 0===e||e.forEach((function(e){return e.developmentPlans.forEach((function(e){e.isIncluded&&(i=!0)}))})),0===((null===oe||void 0===oe||null===(t=oe.devPlanState)||void 0===t?void 0:t.length)||0)||!i}(),loading:O,color:"primary",variant:"contained",type:"submit"},0===ie?"Next":"Save"))))))})),Zo=Object(V.makeStyles)((function(e){var t=e.palette,i=(e.spacing,e.typography);return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},i.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},i.subtitle2),cardContent:Object(J.a)(Object(J.a)({},i.subtitle2),{},{color:t.grey[500],borderColor:"#E2E2E2"})})})),Xo=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{confirmPeriodDeclaration:function(t){return e((i=t,function(e){var t=q.r.confirm(void 0,p.C.fromJS(i));return e(Fo(null)),t.then((function(e){return e})).catch((function(t){e(Object(bn.b)(t))}))}));var i},setRequestBody:function(t){return e(Jo(t))}}}))((function(e){var t,i=e.index,a=e.reportingPeriod,o=e.confirmPeriodDeclaration,s=e.setRequestBody,l=e.userId,d=Object(r.useState)(!0),u=Object(c.a)(d,2),v=u[0],f=u[1],m=Object(r.useState)(a.isConfirmed),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(!1),I=Object(c.a)(S,2),O=I[0],C=I[1],x=Object(r.useState)(!1),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(!1),A=Object(c.a)(T,2),k=A[0],D=A[1],L=Object(r.useState)(!1),J=Object(c.a)(L,2),F=J[0],B=J[1],R=Object(r.useState)(!1),U=Object(c.a)(R,2),G=U[0],q=U[1],M=Object(r.useState)(!1),z=Object(c.a)(M,2),W=z[0],V=z[1],_=Object(r.useState)(!1),Y=Object(c.a)(_,2),$=Y[0],H=Y[1],K=Object(r.useState)(0),Q=Object(c.a)(K,2),Z=Q[0],X=Q[1],ee=Object(r.useState)(),te=Object(c.a)(ee,2),ie=te[0],re=te[1],ne=Object(r.useState)(),ae=Object(c.a)(ne,2),oe=ae[0],se=ae[1],le=Object(r.useState)(),ce=Object(c.a)(le,2),de=ce[0],ue=ce[1],he=E(p.Kd.ViewPortalDevelopmentOverallReflections),ve=E(p.Kd.ViewPortalDevelopmentRecords),pe=Zo();Object(r.useEffect)((function(){var e=Object(N.b)(Object(N.a)(a.periodTo,1),-3);new Date>=e&&f(!1)}),[a.periodTo]);var fe=function(e){D(!0),B(!1),q(!1),V(!1),e>0&&X(e)};return n.a.createElement(h.Grid,{container:!0,spacing:"card",key:"grid-container-".concat(i)},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,{classes:{root:pe.cardContent}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,id:"reporting-period-label",stretchContent:!0},n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},"".concat(Object(N.c)(a.periodFrom,"MMM DD, YYYY")," - ").concat(Object(N.c)(a.periodTo,"MMM DD, YYYY")))),n.a.createElement(h.Grid,{item:!0,xs:12,id:"license-list-development-record-button-tile"},null===(t=a.licenses)||void 0===t?void 0:t.map((function(e,t){var i,r;return n.a.createElement(h.Grid,{container:!0,spacing:"form",key:"reporting-period-license-".concat(t,"-").concat(e.membershipNumber)},n.a.createElement(h.Grid,{item:!0,xs:12,md:6,alignment:"center",id:"license-list-tile"},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"subtitle1",color:"textPrimary"},e.licenseName)),null!==e.membershipNumberLabel&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"".concat(e.membershipNumberLabel,": ").concat(null!==(i=e.membershipNumber)&&void 0!==i?i:"-"))))),n.a.createElement(h.Grid,{item:!0,xs:12,md:6,alignment:"center",id:"development-plan-button"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:4},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",size:"small",variant:"outlined",onClick:function(){return P(!0)}},n.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Development Plan"))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:4},n.a.createElement(h.Button,{color:"primary",size:"small",variant:"outlined",fullWidth:!0,onClick:function(){return fe(void 0===e.licenseId?0:e.licenseId)},disabled:!ve},n.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Development Record"))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:4},n.a.createElement(h.Button,{color:"primary",size:"small",variant:"outlined",fullWidth:!0,onClick:function(){return H(!0)},disabled:!he},n.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Overall Reflection"))))),t!==((null===(r=a.licenses)||void 0===r?void 0:r.length)||0)-1&&n.a.createElement(h.Grid,{item:!0,sm:12},n.a.createElement(h.Divider,null)))}))))),n.a.createElement(h.CardActions,{style:{backgroundColor:"#E5F3FA",borderColor:"#E2E2E2"}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,md:10},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,md:12},n.a.createElement(h.Typography,{variant:"subtitle1",color:"textPrimary"},"ANNUAL DECLARATION OF COMPETENCE")),n.a.createElement(h.Grid,{item:!0,md:12},n.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"I declare that I have reflected on my practice and addressed any identified learning and development needs for the year.")),n.a.createElement(h.Grid,{item:!0,md:12},n.a.createElement(h.FormControlLabel,{control:n.a.createElement(h.Tooltip,{title:v?"The Annual Declaration may not be made more than 3 months prior to the end of the compliance period.":g?"Unconfirm":"Confirm"},n.a.createElement("span",null,n.a.createElement(h.Switch,{formikContext:!1,disabled:O||v,checked:g,onChange:function(e,t){return function(e){C(!0),b(e),o(new p.C({userId:l,endDate:Object(N.e)(a.periodTo),isConfirmed:e})).then((function(){return C(!1)}))}(t)},color:"primary"}))),label:n.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},g?"CONFIRMED":"NOT CONFIRMED"),labelPlacement:"end"})))),n.a.createElement(h.Grid,{item:!0,md:2,alignment:"center-right"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",size:"small",variant:"outlined",onClick:function(){return function(){var e,t=new Array;null===(e=a.licenses)||void 0===e||e.forEach((function(e){return t.push(e.licenseId)})),s({licenseId:0,licenseIdList:t,frameworkId:a.competencyFrameworkId,periodStartDate:a.periodFrom,periodEndDate:a.periodTo,competencyFrameworkUserInstruction:a.competencyFrameworkUserInstruction}),window.open("/developmentPlan/developmentLearningRecord/print/".concat(g?1:0),"developmentPlan_learningRecord_".concat(a.competencyFrameworkId),"width=977px height=1006px")}()}},n.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Print Learning Record"))))),n.a.createElement(Qo,{competencyFrameworkId:a.competencyFrameworkId||0,periodFrom:a.periodFrom,periodTo:a.periodTo,competencyFrameworkUserInstruction:a.competencyFrameworkUserInstruction||"",open:w,onClose:function(){return P(!1)}}),n.a.createElement(gs,{competencyFrameworkId:a.competencyFrameworkId||0,periodStartDate:Object(N.e)(a.periodFrom),periodEndDate:Object(N.e)(a.periodTo),open:$,onClose:function(){return H(!1)}}),n.a.createElement(ps,{open:k,onClose:function(){return D(!1)},onShowAddCourse:function(){D(!1),B(!0),q(!1),V(!1)},onShowAddActivity:function(){D(!1),B(!1),q(!0),V(!1)},onShowSelectLearningNeed:function(e,t,i){D(!1),B(!1),q(!1),V(!0),re(e),se(t),ue(i)},licenseId:Z,competencyFrameworkId:a.competencyFrameworkId||0,periodStartDate:a.periodFrom,periodEndDate:a.periodTo}),n.a.createElement(us,{open:F,onClose:function(){return B(!1)},onShowDevelopmentRecordDrawer:fe,licenseId:Z}),n.a.createElement(as,{open:G,onClose:function(){return q(!1)},onShowDevelopmentRecordDrawer:fe,licenseId:Z}),n.a.createElement(ys,{open:W,onClose:function(){return V(!1)},onShowDevelopmentRecordDrawer:fe,licenseId:Z,periodStartDate:a.periodFrom,periodEndDate:a.periodTo,developmentRecordId:ie,sessionParticipantId:oe,activityParticipantId:de,competencyFrameworkId:a.competencyFrameworkId||0}))))})),es=function(e){var t,i=e.outerIndex,a=e.innerIndex,o=e.readOnly,s=e.remove,l=Object(h.UseFormikContext)(!0),d=rs().setHasChanges,u=Object(r.useState)(null===l||void 0===l?void 0:l.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(a,".isEditMode")).value),v=Object(c.a)(u,2),p=v[0],f=v[1],m=Object(r.useState)(!1),y=Object(c.a)(m,2),g=y[0],b=y[1];return n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:p?11:6,sm:p?11:8,md:p?11:10,stretchContent:!0},p&&!o?n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Column,null,n.a.createElement(Vo,{outerIndex:i,innerIndex:a,readOnly:o})),n.a.createElement(h.Expanded,{flex:1},n.a.createElement(h.Column,null,n.a.createElement(h.TextField,{fullWidth:!0,required:!0,label:"Enter your Custom Need",id:"devPlanState.".concat(i,".developmentPlans.").concat(a,".customNeed")})))):n.a.createElement(h.FormControlLabel,{control:n.a.createElement(Vo,{outerIndex:i,innerIndex:a,readOnly:o}),label:n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary",style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},null!==(t=null===l||void 0===l?void 0:l.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(a,".customNeed")).value)&&void 0!==t?t:""),labelPlacement:"end"})),n.a.createElement(h.Grid,{item:!0,xs:p?1:6,sm:p?1:4,md:p?1:2,alignment:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle"},!p&&n.a.createElement(h.Column,null,n.a.createElement(h.Button,{variant:"text",color:"primary","aria-label":"Edit custom need",disabled:""===(null===l||void 0===l?void 0:l.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(a,".customNeed")).value)||o,onClick:function(){f(!0),d(!0)}},"Edit Custom Need")),n.a.createElement(h.Column,null,n.a.createElement(h.Tooltip,{title:"Remove custom need",placement:"top"},n.a.createElement(h.IconButton,{color:"primary",disabled:o,onClick:function(){(null===l||void 0===l?void 0:l.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(a,".hasPreviousValues")).value)?b(!0):s(a)},"aria-label":"Remove custom need"},n.a.createElement(h.SystemIcon,{icon:"Delete",size:"xs"})))),n.a.createElement(qo,{open:g,title:"Confirm",message:"This action will remove the learning need from your development plan. Would you like to continue?",maxWidth:"sm",OnConfirm:function(){s(a),b(!1)},onClose:function(){return b(!1)},onCancel:function(){return b(!1)}}))))))},ts={frameworkId:0,devPlans:new Array,setDevPlans:function(){},loading:!1,isEditMode:!1,setLoading:function(){},setSaving:function(){},screen:0,setScreen:function(){},periodFrom:new Date,periodTo:new Date,onClose:function(){},hasChanges:!1,setHasChanges:function(){}},is=Object(r.createContext)(ts),rs=function(){return Object(r.useContext)(is)};function ns(){ns=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var as=Object(s.b)((function(e){var t,i;return{userId:null!==(t=null===(i=e.users.loggedUser)||void 0===i?void 0:i.userId)&&void 0!==t?t:0}}),(function(e){return{getUserUkLicenseList:function(t){return e(Ro(t))},addActivity:function(t){return e(function(e){return function(t){return q.s.createActivityDevelopmentRecord(void 0,p.K.fromJS(e)).then((function(e){return t(Object(bn.a)({message:"Activity successfully saved.",variant:"success"})),e})).catch((function(e){throw t(Object(bn.b)(e)),e}))}}(t))},validateActivityTitle:function(t){return e(function(e){return function(t){return q.b.validateActivityTitle(0,e,void 0).then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}}(t))}}}))((function(e){var t=e.open,i=e.getUserUkLicenseList,a=e.onShowDevelopmentRecordDrawer,o=e.userId,s=e.addActivity,d=e.licenseId,u=e.validateActivityTitle,v=Object(r.useState)(void 0),p=Object(c.a)(v,2),f=p[0],m=p[1],y=Object(r.useState)(),g=Object(c.a)(y,2),b=g[0],S=g[1],E=Object(r.useRef)(),I=Object(r.useState)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1],j=[{label:"Interactive Learning",value:"1"},{label:"Other Activities",value:"2"}],w={activityDescription:"",activityDate:null,hours:void 0},P={};Object(r.useEffect)((function(){t&&i(o).then((function(e){m(e.filter((function(e){return 578===e.licenseId}))||[])}))}),[i,t,o]),t&&(f&&f.forEach((function(e){P=Object(J.a)(Object(J.a)({},P),{},Object(Sa.a)({},"credit_type_".concat(e.licenseId),"".concat(e.creditId)))})),w=Object(J.a)(Object(J.a)({},w),P));var T={initialValues:w,validationSchema:Object(yn.object)().shape({activityDescription:Object(yn.string)().required("Required").test("check-duplicate-title","This Description of Activity is already taken.",function(){var e=Object(l.a)(ns().mark((function e(t){return ns().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u(t).then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).max(1e3,"Description of Activity must not exceed 1000 characters."),activityDate:Object(yn.date)().nullable().required("Date of Activity is required").max(new Date,"Date must be on or before ".concat(Object(N.c)(Object(N.e)()))).typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),hours:Object(yn.number)().nullable().required("Hours is a required field")}),onSubmit:function(e,t){var i=e.activityDescription,r=e.activityDate,n=e.hours,l=e.credit_type_578,c=[];if(l){var u={licenseId:578,licenseCreditId:Number(l)};c.push(u)}var h={activityDescription:i.trim(),activityDate:Object(N.e)(r),hours:Number(n),userId:o,licenses:c};s(h).then((function(e){t.setSubmitting(!1),e>0&&(S(void 0),a(d))})).catch((function(){t.setSubmitting(!1)}))}},A=function(e){return 0===e.getFieldProps("activityDescription").value.length&&void 0===e.getFieldProps("activityDate").value&&void 0===e.getFieldProps("hours").value},k=function(){S(void 0),x(!1),a(d)},D=function(){E.current&&E.current.dirty?x(!0):k()};return n.a.createElement(h.SideDrawer,{size:"md",open:t,onClose:D},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:n.a.createElement(h.SystemIcon,{size:"md",icon:"Back"}),onClick:D}),n.a.createElement(h.Typography,{variant:"h5"},"Add Activity"))),subtitle:n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Please note that if you sign an internal register at a programme offered by the firm it will automatically be added to your Development Record.",n.a.createElement("span",{style:{color:"red"}}," ","Only add learning activites that are in addition to these programmes.")))}}),n.a.createElement(mn.Formik,{initialValues:T.initialValues,validationSchema:T.validationSchema,onSubmit:T.onSubmit,innerRef:E,enableReinitialize:!0,key:"add-activity"},(function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(h.Form,{id:"add-course",formikContext:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:10,sm:5,md:4,stretchContent:!0},n.a.createElement(h.DateTimeField,{id:"activityDate",label:"Date of Activity (".concat(Object(N.h)(),")"),type:"date",formikContext:!0,fullWidth:!0,required:!0,format:Object(N.h)()}))),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.TextField,{required:!0,id:"activityDescription",label:"Description of Activity",formikContext:!0,fullWidth:!0}))),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.TextField,{required:!0,id:"hours",label:"Hours",type:"number",formikContext:!0,fullWidth:!0,onChange:function(t){return i=t.target.value,void(Number(i)>0?(S(Number(i)),e.setFieldValue("hours",i)):(S(void 0),e.setFieldValue("hours",void 0)));var i}}))),f&&f.length>0&&void 0!==b&&b>0&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",background:"default"},n.a.createElement(h.CardContent,null,f&&f.map((function(e){return n.a.createElement(n.a.Fragment,{key:e.licenseId},e.licenseName&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,e.licenseName)))),n.a.createElement(h.Box,{ml:3},n.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"",options:j,id:"credit_type_".concat(e.licenseId),orientation:"horizontal"}))))})))))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3}),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:k},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!!A(e)||!e.dirty,loading:e.isSubmitting,onClick:function(){return E.current&&E.current.handleSubmit()}},"Add Activity")),n.a.createElement(h.Grid,{item:!0,xs:3}))))})),n.a.createElement(qo,{open:C,title:"Confirm",message:"Do you want to save changes first?",OnConfirm:function(){E.current&&E.current.handleSubmit(),x(!1)},onClose:k,onCancel:k}))})),os=i(674),ss=i.n(os),ls=function(e){var t=e.isAddMode,i=e.formik,r=e.isLoading;return n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Provider Name",loading:r})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"code",label:"Code",loading:r})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{fullWidth:!0,formikContext:!0,id:"url",label:"URL",loading:r})),!t&&(r?n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Skeleton,{width:215,height:16,variant:"rect"})):n.a.createElement(h.Grid,{item:!0,xs:12,spacing:"card",key:"isActive"},n.a.createElement(h.Card,{background:"default",variant:"outlined",style:{height:60,width:120}},n.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},n.a.createElement(h.Expanded,{ml:1,mt:.5},n.a.createElement(h.Typography,{color:"textSecondary",variant:"body1"},"Status")),n.a.createElement(h.Expanded,{ml:1},n.a.createElement(h.FormControlLabel,{control:n.a.createElement(h.Switch,{formikContext:!0,id:"isActive",color:"primary",onChange:function(){i.setFieldValue("isActive",!i.getFieldProps("isActive").value)}}),label:n.a.createElement(h.Typography,{variant:"body1"},i.getFieldProps("isActive").value?"Active":"Inactive"),labelPlacement:"end"})))))))};function cs(){cs=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var ds=Object(s.b)(null,(function(e){return{saveProvider:function(t){return e(function(e){return function(t){return q.M.create("v1",p.W.fromJS(e)).then((function(e){return t(Object(M.a)({message:"Save successful",variant:"success"})),t(Da()),e})).catch((function(e){t(Object(M.b)(e))}))}}(t))},validateProviderName:function(t,i){return e(function(e,t){return function(i){return q.M.validateProviderName(void 0,p.Ze.fromJS(new p.Ze({providerIds:e,name:t}))).then((function(e){return e})).catch((function(e){i(Object(M.b)(e))}))}}(t,i))},validateProviderCode:function(t,i){return e(function(e,t){return function(i){return q.M.validateProviderCode(void 0,p.Ye.fromJS(new p.Ye({providerIds:e,code:t}))).then((function(e){return e})).catch((function(e){i(Object(M.b)(e))}))}}(t,i))}}}))((function(e){var t=e.isAddMode,i=e.open,a=e.onClose,o=e.saveProvider,s=e.validateProviderName,d=e.validateProviderCode,u=e.onAddNewProvider,v=e.providerName,p=e.isInHouseProvider,f=Object(r.useState)(!1),m=Object(c.a)(f,2),y=m[0],g=m[1],b={initialValues:{name:null!==v&&void 0!==v?v:"",code:"",url:"",isActive:!0,isInHouse:p?"0":"1"},validationSchema:Object(yn.object)().shape({name:Object(yn.string)().required("Required").max(500,"Too long!").test("check-duplicate-name","This Provider name is already taken.",function(){var e=Object(l.a)(cs().mark((function e(t){return cs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s([0],t).then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).trim(),code:Object(yn.string)().required("Required").max(15,"15 characters only!").test("check-duplicate-code","This Provider code is already taken.",function(){var e=Object(l.a)(cs().mark((function e(t){return cs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",d([0],t).then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).trim(),url:Object(yn.string)().url("Please specify a valid url.").max(100,"100 characters only!").nullable()}),onSubmit:function(e,t){var i=e.name,r=e.code,n=e.isActive,s=e.url,l=e.isInHouse;g(!0);var c={name:i.trim(),code:r.trim(),url:s,isActive:n,isInHouse:"1"!==l};o(c).then((function(e){g(!1),t.setSubmitting(!1),u&&u(e),a()})).catch((function(){g(!1),t.setSubmitting(!1)}))}};return n.a.createElement(ss.a,{open:i,onClose:a,maxWidth:"md",color:"default"},n.a.createElement(mn.Formik,{initialValues:b.initialValues,validationSchema:b.validationSchema,onSubmit:b.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{id:"edit-provider",formikContext:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:t?"Add ".concat(p?"Firm as":"Third Party"," Provider"):"Edit ".concat(p?"Firm as":"Third Party"," Provider")}}),n.a.createElement(un.DialogBody,{maxWidth:!1},n.a.createElement(ls,{isAddMode:t,formik:e})),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:a},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{loading:y,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty},"Save")))))})))})),us=Object(s.b)((function(e){var t,i;return{userId:null!==(t=null===(i=e.users.loggedUser)||void 0===i?void 0:i.userId)&&void 0!==t?t:0}}),(function(e){return{getProviderList:function(){return e(Da(void 0,!1))},getCourseFormatList:function(){return e(Ta())},addCourse:function(t){return e(function(e){return function(t){return q.s.createCourseDevelopmentRecord(void 0,p.P.fromJS(e)).then((function(e){return t(Object(bn.a)({message:"Course successfully saved.",variant:"success"})),e})).catch((function(e){throw t(Object(bn.b)(e)),e}))}}(t))},getUserUkLicenseList:function(t){return e(Ro(t))},validateCourse:function(t,i){return e(function(e,t){return function(i){if(void 0===t||0===t||void 0===e||""===e)return Promise.resolve(!1);var r=new p.We({courseTitle:e,providerId:t});return q.s.validateCourseDevelopmentRecord(void 0,r).then((function(e){return e})).catch((function(e){i(Object(bn.b)(e))}))}}(t,i))},addNotification:function(t){return e(M.a({message:t,variant:"error"}))}}}))((function(e){var t=e.open,i=e.onShowDevelopmentRecordDrawer,a=e.getProviderList,o=e.getCourseFormatList,s=e.addCourse,l=e.userId,d=e.getUserUkLicenseList,u=e.licenseId,v=e.validateCourse,f=e.addNotification,m=[{label:"Interactive Learning",value:"1"},{label:"Other Activities",value:"2"}],y=Object(r.useState)(void 0),g=Object(c.a)(y,2),b=g[0],S=g[1],I=Object(r.useState)(void 0),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(),k=Object(c.a)(A,2),D=k[0],L=k[1],F=Object(r.useState)(void 0),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(),q=Object(c.a)(G,2),M=q[0],z=q[1],W=E(p.Kd.ManageDataManagement),V=Object(r.useRef)(),_=Object(r.useState)(!1),Y=Object(c.a)(_,2),$=Y[0],H=Y[1],K="",Q={title:"",providerId:[],courseDate:null,courseFormat:[],hours:void 0},Z={};Object(r.useEffect)((function(){t&&a().then((function(e){S(null===e||void 0===e?void 0:e.providers)}))}),[a,t]),Object(r.useEffect)((function(){t&&o().then((function(e){x(e||[])}))}),[o,t]),Object(r.useEffect)((function(){t&&d(l).then((function(e){U(e.filter((function(e){return 578===e.licenseId}))||[])}))}),[d,t,l]),t&&(R&&R.forEach((function(e){Z=Object(J.a)(Object(J.a)({},Z),{},Object(Sa.a)({},"credit_type_".concat(e.licenseId),"".concat(e.creditId)))})),Q=Object(J.a)(Object(J.a)({},Q),Z));var X={initialValues:Q,validationSchema:Object(yn.object)().shape({title:Object(yn.string)().required("Title is a required field.").max(1e3,"Title must not exceed 1000 characters."),providerId:Object(yn.string)().nullable().required("Provider is required"),courseDate:Object(yn.date)().nullable().required("Date of Course is required").max(new Date,"Date must be on or before ".concat(Object(N.c)(Object(N.e)()))).typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),courseFormat:Object(yn.object)().required("Format is required").nullable(),hours:Object(yn.number)().nullable().required("Hours is a required field")}),onSubmit:function(e,t){var r=e.title,n=e.providerId,a=e.courseDate,o=e.courseFormat,c=e.hours,d=e.credit_type_578,h=[];if(d){var p={licenseId:578,licenseCreditId:Number(d)};h.push(p)}var m={courseTitle:r.trim(),providerId:n.providerId,courseDate:Object(N.e)(a),courseFormatId:o.courseFormatId,hours:Number(c),userId:l,licenses:h};v(r.trim(),n.providerId).then((function(e){e.error?(e.validationMessage&&f(e.validationMessage),t.setSubmitting(!1)):s(m).then((function(e){t.setSubmitting(!1),e>0&&(z(void 0),i(u))})).catch((function(){t.setSubmitting(!1)}))}))}},ee=function(e){return 0===e.getFieldProps("title").value.length&&void 0===e.getFieldProps("providerId").value&&void 0===e.getFieldProps("courseDate").value&&0===e.getFieldProps("courseFormat").value.length&&void 0===e.getFieldProps("hours").value},te=function(){z(void 0),H(!1),i(u)},ie=function(){V.current&&V.current.dirty?H(!0):te()};return n.a.createElement(h.SideDrawer,{size:"md",open:t,onClose:ie},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:n.a.createElement(h.SystemIcon,{size:"md",icon:"Back"}),onClick:ie}),n.a.createElement(h.Typography,{variant:"h5"},"Add Course"))),subtitle:n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Please note that if you sign an internal register at a programme offered by the firm it will automatically be added to your Development Record.",n.a.createElement("span",{style:{color:"red"}}," ","Only add learning activities that are in addition to these programmes.")))}}),n.a.createElement(mn.Formik,{initialValues:X.initialValues,validationSchema:X.validationSchema,onSubmit:X.onSubmit,innerRef:V,enableReinitialize:!0,key:"add-course"},(function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(h.Form,{id:"add-course",formikContext:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:10,sm:5,md:4,stretchContent:!0},n.a.createElement(h.DateTimeField,{id:"courseDate",label:"Date of Course (".concat(Object(N.h)(),")"),type:"date",formikContext:!0,fullWidth:!0,required:!0,format:Object(N.h)(),loading:void 0===C||void 0===b}))),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.TextField,{required:!0,id:"title",label:"Course Title",formikContext:!0,fullWidth:!0,loading:void 0===C||void 0===b}))),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-left"},n.a.createElement(h.TextField,{required:!0,id:"hours",label:"Hours",type:"number",formikContext:!0,fullWidth:!0,loading:void 0===C||void 0===b,onChange:function(t){return i=t.target.value,void(Number(i)>0?(z(Number(i)),e.setFieldValue("hours",i)):(z(void 0),e.setFieldValue("hours",void 0)));var i}}))),R&&R.length>0&&void 0!==M&&M>0&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},n.a.createElement(h.Card,{variant:"outlined",background:"default"},n.a.createElement(h.CardContent,null,R&&R.map((function(e){return n.a.createElement(n.a.Fragment,{key:e.licenseId},e.licenseName&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,e.licenseName)))),n.a.createElement(h.Box,{ml:3},n.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"",options:m,id:"credit_type_".concat(e.licenseId),orientation:"horizontal"}))))})))))),n.a.createElement(n.a.Fragment,null),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},n.a.createElement(h.ComboBox,{disableCloseOnSelect:!1,addOption:W?{icon:"Add",label:"Add options",onClick:function(){L(K),T(!0)}}:void 0,onInputChange:function(e,t){K=null!==t&&void 0!==t?t:""},required:!0,formikContext:!0,id:"providerId",fullWidth:!0,label:"Provider",options:b||[],loading:void 0===C||void 0===b}))),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-left"},n.a.createElement(h.ComboBox,{label:"Format",fullWidth:!0,id:"courseFormat",variant:"outlined",formikContext:!0,loading:void 0===C||void 0===b,required:!0,options:C||[],groupBy:function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"}}))),P&&n.a.createElement(ds,{isAddMode:!0,open:P,onClose:function(){return T(!1)},onAddNewProvider:function(t){return function(t){e.setFieldTouched("providerId",!0),e.setFieldValue("providerId",t)}(t)},providerName:D,isInHouseProvider:!1}))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3}),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:te},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!!ee(e)||!e.dirty,loading:e.isSubmitting,onClick:function(){return V.current&&V.current.handleSubmit()}},"Add Course")),n.a.createElement(h.Grid,{item:!0,xs:3}))))})),n.a.createElement(qo,{open:$,title:"Confirm",message:"Do you want to save changes first?",OnConfirm:function(){V.current&&V.current.handleSubmit(),H(!1)},onClose:te,onCancel:te}))}));var hs=function(e,t){var i=t.id,r=t.validationType,n=t.validations,a=void 0===n?[]:n;if(!yn[r])return e;var o=yn[r]();return a.forEach((function(e){var t,i=e.params,r=e.type;o[r]&&(o=(t=o)[r].apply(t,Object(Oi.a)(i)))})),e[i]=o,e},vs=Object(V.makeStyles)((function(e){var t=e.palette;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},pagebreak:{"@media print":{pageBreakInside:"avoid",pageBreakBefore:"auto"}},boxBorder:{border:"2px solid",borderRadius:"5px"},boxBorderPrint:{border:"1px solid ".concat(t.grey[200]),borderRadius:"5px",overflowWrap:"break-word"},selectButtonLabel:{whiteSpace:"pre-wrap"}})})),ps=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,isImpersonated:e.users.isImpersonated}}),(function(e){return{getAllDevelopmentRecord:function(t){return e(Uo(t))},createDevelopmentRecordReflection:function(t){return e((i=t,function(e){return q.s.createDevelopmentRecordReflection(void 0,p.U.fromJS(i)).then((function(e){return e})).catch((function(t){return e(Object(bn.b)(t)),null}))}));var i},confirmDialog:function(t){return e(Object($n.b)(t))},deleteCourseDevelopmentRecord:function(t){return e(function(e){var t=new p.rb({sessionParticipantId:e});return function(e){return q.s.deleteCourseDevelopmentRecord(void 0,p.rb.fromJS(t)).then((function(t){return e(Object(bn.a)({message:"Course successfully deleted.",variant:"success"})),t})).catch((function(t){throw e(Object(bn.b)(t)),t}))}}(t))},deleteActivityDevelopmentRecord:function(t){return e(function(e){var t=new p.ob({activityParticipantId:e});return function(e){return q.s.deleteActivityDevelopmentRecord(void 0,p.ob.fromJS(t)).then((function(t){return e(Object(bn.a)({message:"Activity successfully deleted.",variant:"success"})),t})).catch((function(t){throw e(Object(bn.b)(t)),t}))}}(t))},deleteLearningNeedDevelopmentRecord:function(t){return e(function(e){var t=new p.ub({developmentRecordLearningNeedId:e});return function(e){return q.s.deleteLearningNeedDevelopmentRecord(void 0,p.ub.fromJS(t)).then((function(t){return e(Object(bn.a)({message:"Learning need successfully deleted.",variant:"success"})),t})).catch((function(t){throw e(Object(bn.b)(t)),t}))}}(t))},setRequestBody:function(t){return e(Jo(t))},addNotification:function(t){return e(M.a({message:t,variant:"success"}))}}}))((function(e){var t,i,a=e.open,o=e.onClose,s=e.onShowAddCourse,l=e.onShowAddActivity,d=e.licenseId,u=e.competencyFrameworkId,v=e.periodStartDate,f=e.periodEndDate,m=e.getAllDevelopmentRecord,y=e.userId,g=e.createDevelopmentRecordReflection,b=e.confirmDialog,S=e.deleteCourseDevelopmentRecord,I=e.deleteActivityDevelopmentRecord,O=e.onShowSelectLearningNeed,C=e.deleteLearningNeedDevelopmentRecord,x=e.setRequestBody,j=e.addNotification,w=Object(V.useTheme)(),P=Object(V.useMediaQuery)(w.breakpoints.down("xs")),T=Object(V.useMediaQuery)(w.breakpoints.down("sm")),A=Object(r.useState)(),k=Object(c.a)(A,2),D=k[0],L=k[1],J=Object(r.useRef)(),F=Object(r.useState)(!1),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(!1),q=Object(c.a)(G,2),M=q[0],z=q[1],W=E(p.Kd.ViewPortalDevelopmentRecordLearningNeeds),_=E(p.Kd.DeletePortalDevelopmentRecordLearningNeeds),Y=E(p.Kd.ManagePortalDevelopmentRecords),$=vs(),H=function(){var e={userId:y,licenseId:d,competencyFrameworkId:u,periodStartDate:Object(N.e)(v),periodEndDate:Object(N.e)(f)};L(void 0),m(e).then((function(e){return L(e)}))};Object(r.useEffect)((function(){a&&function(){var e={userId:y,licenseId:d,competencyFrameworkId:u,periodStartDate:Object(N.e)(v),periodEndDate:Object(N.e)(f)};L(void 0),m(e).then((function(e){return L(e)}))}()}),[y,d,v,f,a,u,m]);var K=new Array;null===D||void 0===D||null===(t=D.developmentRecord)||void 0===t||t.forEach((function(e){if(e.isCourse){var t={developmentRecordId:e.developmentRecordId,isCourse:e.isCourse,sessionParticipantId:e.sessionActivityParticipantId,reflection:e.reflection||"",action:e.action||""};K.push(t)}else{var i={developmentRecordId:e.developmentRecordId,isCourse:e.isCourse,activityParticipantId:e.sessionActivityParticipantId,reflection:e.reflection||"",action:e.action||""};K.push(i)}}));var Q=function(){var e,t=Array();return null===D||void 0===D||null===(e=D.developmentRecord)||void 0===e||e.forEach((function(e){e.isCourse?t.push({developmentRecordId:Object(yn.number)(),isCourse:Object(yn.boolean)(),sessionParticipantId:Object(yn.number)(),reflection:Object(yn.string)(),action:Object(yn.string)()}):t.push({developmentRecordId:Object(yn.number)(),isCourse:Object(yn.boolean)(),activityParticipantId:Object(yn.number)(),reflection:Object(yn.string)(),action:Object(yn.string)()})})),t}(),Z=Object(yn.object)().shape(null===Q||void 0===Q?void 0:Q.reduce(hs,{})),X={initialValues:{developmentRecordList:K},validationSchema:Object(yn.object)().shape({developmentRecord:Z}),onSubmit:function(e,t){var i=e.developmentRecordList,r=[];i&&(Object.keys(i).forEach((function(e){i[e].isCourse?r.push({developmentRecordId:i[e].developmentRecordId,sessionParticipantId:i[e].sessionParticipantId,activityParticipantId:void 0,reflectionDetails:i[e].reflection,action:i[e].action}):r.push({developmentRecordId:i[e].developmentRecordId,sessionParticipantId:void 0,activityParticipantId:i[e].activityParticipantId,reflectionDetails:i[e].reflection,action:i[e].action})})),g({developmentRecordReflection:r}).then((function(){M||(j("Development record successfully saved."),H()),z(!1),U(!1),t.setSubmitting(!1)})).catch((function(){z(!1),U(!1),t.setSubmitting(!1)})))}},ee=0===(null===D||void 0===D||null===(i=D.developmentRecord)||void 0===i?void 0:i.length),te=n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,md:4,stretchContent:!0},n.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:n.a.createElement(h.SystemIcon,{size:"sm",icon:"Add"}),onClick:l},"Add Activity"),n.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:n.a.createElement(h.SystemIcon,{size:"sm",icon:"Add"}),onClick:s},"Add Course")))),ie=function(e){return D&&D.developmentRecord&&D.developmentRecord.length>0?null===D||void 0===D?void 0:D.developmentRecord[e].action:""},re=function(e){return D&&D.developmentRecord&&D.developmentRecord.length>0?null===D||void 0===D?void 0:D.developmentRecord[e].reflection:""};return n.a.createElement(ln.a,{size:"md",open:a,onClose:ee?o:function(){J.current&&J.current.dirty&&Y?U(!0):o()}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h5"},"Development Record")),subtitle:n.a.createElement(h.Box,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Programs attended internally will be automatically included in your Development Record. Courses and activities completed independently should be added. For each course or activity, select the learning need(s) it addressed.")),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(v,"MMMM DD, YYYY")," - ").concat(Object(N.c)(f,"MMMM DD, YYYY"))))),actionRow:n.a.createElement(h.IconButton,{onClick:function(){x({licenseId:d,frameworkId:u,periodStartDate:Object(N.e)(v),periodEndDate:Object(N.e)(f)}),window.open("/developmentrecord/print","developmentrecord_".concat(d),"width=977px height=1006px")},color:"default",id:"printButton"},n.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}))}}),void 0===D?n.a.createElement(n.a.Fragment,null,n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(Ia,{type:"filter-drawer"})),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3}),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:o},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!0},"Save")),n.a.createElement(h.Grid,{item:!0,xs:3})))):ee?n.a.createElement(n.a.Fragment,null,n.a.createElement(sn.SideDrawerBody,null,te,n.a.createElement(h.Box,null,n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found."))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3}),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:o},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!0},"Save")),n.a.createElement(h.Grid,{item:!0,xs:3})))):n.a.createElement(mn.Formik,{initialValues:X.initialValues,validationSchema:X.validationSchema,validateOnBlur:!1,validateOnChange:!1,onSubmit:X.onSubmit,innerRef:J,key:"development-record"},(function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(h.Form,{id:"development-record",formikContext:!0},te,(null===D||void 0===D?void 0:D.developmentRecord)&&D.developmentRecord.length>0&&D.developmentRecord.map((function(t,i){var r=t.isCourse?t.sessionActivityParticipantId:void 0,a=t.isCourse?void 0:t.sessionActivityParticipantId;return n.a.createElement(h.Box,{key:"".concat(t.sessionActivityParticipantId,"_").concat(i.toString()),mb:1,className:$.boxBorder},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:5,sm:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Date"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},Object(N.c)(t.courseActivityDate))))),n.a.createElement(h.Grid,{item:!0,xs:7,sm:1},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Hours"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},t.hours)))),n.a.createElement(h.Grid,{item:!0,xs:5,sm:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},t.isCourse&&"Format"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},t.isCourse&&t.courseFormat)))),n.a.createElement(h.Grid,{item:!0,xs:5,sm:4,md:5},t.isPending?n.a.createElement(h.Column,null,n.a.createElement(h.Chip,{variant:"outlined",label:"Pending Admin Approval",size:"small",colorMode:"light",color:"warning",width:"auto"})):n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},t.licenseName),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},"".concat(t.hours," ").concat(t.creditName))))),n.a.createElement(h.Grid,{item:!0,xs:2,sm:3,md:2,alignment:"center-right"},n.a.createElement(h.Tooltip,{title:P?"Delete ".concat(t.isCourse?"Course":"Activity"):"",placement:"bottom"},n.a.createElement(h.Button,{color:"primary",variant:"text",endIcon:n.a.createElement(h.SystemIcon,{size:"sm",icon:"Delete"}),disabled:!t.canUpdateDelete,onClick:t.isCourse?function(){return function(e){void 0!==e?b({message:"Are you sure you want to delete this course?",title:"Confirm Delete",OnConfirm:function(){L(void 0),S(e).then((function(){return H()}))}}):Object(bn.b)("The session participant id must be greater than 0.")}(t.sessionActivityParticipantId)}:function(){return function(e){void 0!==e?b({message:"Are you sure you want to delete this activity?",title:"Confirm Delete",OnConfirm:function(){L(void 0),I(e).then((function(){return H()}))}}):Object(bn.b)("The activity participant id must be greater than 0.")}(t.sessionActivityParticipantId)}},!P&&n.a.createElement(h.Typography,{variant:"body2"},"Delete ",t.isCourse?"Course":"Activity"))))),n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},t.isCourse?"Course":"Activity"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary",weight:"bold"},t.courseActivityTitle))))),n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.TextField,{id:"developmentRecordList.".concat(i,".reflection"),defaultValue:re(i),label:"Reflection on Development. What have I learnt? How can I use this?",maxLabelLength:T?50:void 0,formikContext:!1,onBlur:function(t){return e.setFieldValue("developmentRecordList.".concat(i,".reflection"),t.target.value)},fullWidth:!0,disabled:!Y,minRows:"4",maxRows:"10",multiline:!0}))),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:8,alignment:"center-left"},n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"What learning need has this activity addressed?")),n.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"},n.a.createElement(h.Button,{color:"primary",variant:"text",onClick:function(){return function(e,t,i){z(!0),void 0===t&&void 0===i||O(e,t,i),J.current&&J.current.dirty&&Y?J.current.handleSubmit():z(!1)}(t.developmentRecordId,r,a)},disabled:!W},n.a.createElement(h.Typography,{variant:"subtitle2",className:$.selectButtonLabel},"Select Learning Need(s)")))),t.learningNeeds&&t.learningNeeds.map((function(e){return n.a.createElement(h.Grid,{container:!0,spacing:0,key:e.developmentRecordLearningNeedId},n.a.createElement(h.Grid,{item:!0,xs:10},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},0===e.subCategoryId?e.competencyName:e.subCategoryName)),n.a.createElement(h.Grid,{item:!0,xs:2,alignment:"center"},n.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:n.a.createElement(h.SystemIcon,{size:"sm",icon:"Delete"}),onClick:function(){var t;void 0!==(t=e.developmentRecordLearningNeedId)?b({message:"Are you sure you want to delete this learning need?",title:"Confirm Delete",OnConfirm:function(){L(void 0),C(t).then((function(){return H()}))}}):Object(bn.b)("The development record learning need id must be greater than 0.")},disabled:!_})))})),n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.TextField,{id:"developmentRecordList.".concat(i,".action"),defaultValue:ie(i),label:"Do I need to take any further action?",formikContext:!1,onBlur:function(t){return e.setFieldValue("developmentRecordList.".concat(i,".action"),t.target.value)},fullWidth:!0,disabled:!Y,rows:"2",maxRows:"10",multiline:!0})))))})))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3}),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:o,disabled:e.isSubmitting},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(h.Button,{form:"development-record",type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!Y,loading:e.isSubmitting},"Save")),n.a.createElement(h.Grid,{item:!0,xs:3}))))})),n.a.createElement(qo,{open:R,title:"Confirm",message:"Do you want to save changes first?",OnConfirm:function(){U(!1),J.current&&J.current.handleSubmit()},onClose:function(){return U(!1)},onCancel:function(){o(),U(!1)}}))})),fs=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,printRequestBody:e.developmentPlan.printRequestBody}}),(function(e){return{getAllDevelopmentRecord:function(t){return e(Uo(t))}}})),ms=Object(d.o)(fs((function(e){var t,i=e.userId,a=e.getAllDevelopmentRecord,o=e.printRequestBody,s=null===o||void 0===o?void 0:o.licenseId,l=null===o||void 0===o?void 0:o.periodStartDate,d=null===o||void 0===o?void 0:o.periodEndDate,u=null===o||void 0===o?void 0:o.frameworkId,v=Object(r.useState)(),p=Object(c.a)(v,2),f=p[0],m=p[1],y=vs();Object(r.useEffect)((function(){var e={userId:i,licenseId:Number(s),competencyFrameworkId:u,periodStartDate:l,periodEndDate:d};m(void 0),a(e).then((function(e){m(e)}))}),[i,s,l,d,a,u]);return n.a.createElement(h.Box,{m:3,maxWidth:"1100px"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:y.printButton},n.a.createElement(h.Box,{width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print")))),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h5"},"Development Record")),n.a.createElement(h.Box,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Programs attended internally will be automatically included in your Development Record. Courses and activities completed independently should be added. For each course or activity, select the learning need(s) it addressed.")),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(l,"MMMM DD, YYYY")," - ").concat(Object(N.c)(d,"MMMM DD, YYYY"))))),n.a.createElement("br",null),void 0===f?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):0===(null===f||void 0===f||null===(t=f.developmentRecord)||void 0===t?void 0:t.length)?n.a.createElement(h.Box,null,n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found.")))):n.a.createElement(h.Box,null,(null===f||void 0===f?void 0:f.developmentRecord)&&f.developmentRecord.length>0&&f.developmentRecord.map((function(e,t){var i,r,a,o,s;return n.a.createElement(h.Box,{key:"".concat(e.sessionActivityParticipantId,"_").concat(t.toString()),m:1,className:Object(Va.default)(y.pagebreak,y.boxBorder)},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Date"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},Object(N.c)(e.courseActivityDate))))),n.a.createElement(h.Grid,{item:!0,xs:1},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Hours"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.hours)))),n.a.createElement(h.Grid,{item:!0,xs:3},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},e.isCourse&&"Format"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.isCourse&&e.courseFormat)))),n.a.createElement(h.Grid,{item:!0,xs:6},e.isPending?n.a.createElement(h.Column,null,n.a.createElement(h.Chip,{variant:"outlined",label:"Pending Admin Approval",size:"small",colorMode:"light",color:"warning",width:"auto"})):n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},e.licenseName),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},"".concat(e.hours," ").concat(e.creditName))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},e.isCourse?"Course":"Activity"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary",weight:"bold"},""===(null===(i=e.courseActivityTitle)||void 0===i?void 0:i.trim())?n.a.createElement("br",null):e.courseActivityTitle)))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.Box,{className:y.boxBorderPrint,width:"100%"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Reflection on Development. What have I learnt? How can I use this?"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},""===(null===(r=e.reflection)||void 0===r?void 0:r.trim())?n.a.createElement("br",null):e.reflection)))))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.Box,{className:y.boxBorderPrint,width:"100%"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Column,null,n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"What learning need has this activity addressed?")),0===((null===e||void 0===e||null===(a=e.learningNeeds)||void 0===a?void 0:a.length)||0)?n.a.createElement("br",null):null===e||void 0===e||null===(o=e.learningNeeds)||void 0===o?void 0:o.map((function(e){return n.a.createElement(h.Row,{mainAxisAlignment:"center",key:e.developmentRecordLearningNeedId},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},0===e.subCategoryId?e.competencyName:e.subCategoryName))})))))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.Box,{className:y.boxBorderPrint,width:"100%"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Do I need to take any further action?"),n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},""===(null===(s=e.action)||void 0===s?void 0:s.trim())?n.a.createElement("br",null):e.action)))))))))}))))}))),ys=Object(s.b)((function(e){var t,i;return{userId:null!==(t=null===(i=e.users.loggedUser)||void 0===i?void 0:i.userId)&&void 0!==t?t:0}}),(function(e){return{getAllDevelopmentRecordLearningNeed:function(t){return e((i=t,function(e){return q.s.getAllDevelopmentRecordLearningNeeds(void 0,p.ec.fromJS(i)).then((function(e){return e})).catch((function(t){return e(Object(bn.b)(t)),null}))}));var i},createLearningNeedDevelopmentRecord:function(t){return e((i=t,function(e){return q.s.createLearningNeedDevelopmentRecord(void 0,p.V.fromJS(i)).then((function(t){return e(Object(bn.a)({message:"Learning need successfully saved.",variant:"success"})),t})).catch((function(t){return e(Object(bn.b)(t)),null}))}));var i}}}))((function(e){var t,i,a,o=e.open,s=e.onShowDevelopmentRecordDrawer,l=e.userId,d=e.licenseId,u=e.periodStartDate,v=e.periodEndDate,f=e.developmentRecordId,m=e.getAllDevelopmentRecordLearningNeed,y=e.createLearningNeedDevelopmentRecord,g=e.sessionParticipantId,b=e.activityParticipantId,S=e.competencyFrameworkId,I=Object(r.useState)(),O=Object(c.a)(I,2),C=O[0],x=O[1],j=E(p.Kd.ManagePortalDevelopmentRecordLearningNeeds),w=Object(r.useState)(!1),P=Object(c.a)(w,2),T=P[0],A=P[1];Object(r.useEffect)((function(){if(o){var e={userId:l,developmentRecordId:f,competencyFrameworkId:S,licenseId:d,periodStartDate:Object(N.e)(u),periodEndDate:Object(N.e)(v)};x(void 0),m(e).then((function(e){return x(e)}))}}),[m,o,l,f,d,u,v,S]);var k,D={};o&&(null===C||void 0===C||null===(k=C.developmentRecordLearningNeeds)||void 0===k||k.forEach((function(e){var t,i,r;0===(null===(t=e.subCategories)||void 0===t?void 0:t.length)||void 0===(null===(i=e.subCategories)||void 0===i?void 0:i.length)?D=e.isCustomNeed?Object(J.a)(Object(J.a)({},D),{},Object(Sa.a)({},"learning_need_".concat(e.developmentPlanId,"_1"),e.isSelected)):Object(J.a)(Object(J.a)({},D),{},Object(Sa.a)({},"learning_need_".concat(e.competencyId,"_0"),e.isSelected)):null===(r=e.subCategories)||void 0===r||r.forEach((function(t){D=Object(J.a)(Object(J.a)({},D),{},Object(Sa.a)({},"learning_need_".concat(e.competencyId,"_").concat(t.subCategoryId),t.isSelected))}))})));var L={initialValues:{learningNeedList:D},onSubmit:function(e){var t=e.learningNeedList,i=[];A(!0),t&&Object.keys(t).forEach((function(e){var r;null===C||void 0===C||null===(r=C.developmentRecordLearningNeeds)||void 0===r||r.forEach((function(r){var n,a,o;0===(null===(n=r.subCategories)||void 0===n?void 0:n.length)||void 0===(null===(a=r.subCategories)||void 0===a?void 0:a.length)?r.isCustomNeed?e==="learning_need_".concat(r.developmentPlanId,"_1")&&t[e]&&i.push({competencyFrameworkId:r.competencyFrameworkId,developmentPlanId:r.developmentPlanId}):e==="learning_need_".concat(r.competencyId,"_0")&&t[e]&&i.push({competencyFrameworkId:r.competencyFrameworkId,competencyId:r.competencyId,subCategoryId:void 0,developmentPlanId:r.developmentPlanId}):null===(o=r.subCategories)||void 0===o||o.forEach((function(n){e==="learning_need_".concat(r.competencyId,"_").concat(n.subCategoryId)&&t[e]&&i.push({competencyFrameworkId:r.competencyFrameworkId,competencyId:r.competencyId,subCategoryId:n.subCategoryId,developmentPlanId:n.developmentPlanId})}))}))})),y({developmentRecordId:f,competencyFrameworkId:S,sessionParticipantId:g,activityParticipantId:b,developmentRecordLearningNeeds:i}).then((function(){A(!1),s(d)})).catch((function(){return A(!1)}))}};return n.a.createElement(h.SideDrawer,{size:"md",open:o,onClose:function(){return s(d)}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:n.a.createElement(h.SystemIcon,{size:"md",icon:"Back"}),onClick:function(){return s(d)}}),n.a.createElement(h.Typography,{variant:"h5"},"Learning Needs"))),subtitle:n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Select the learning needs that apply to this course or activity.")}}),n.a.createElement(sn.SideDrawerBody,null,void 0===C?n.a.createElement(Ia,{type:"filter-drawer"}):void 0===(null===C||void 0===C?void 0:C.developmentRecordLearningNeeds)?n.a.createElement(h.Box,null,n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No associated framework.")))):0===(null===C||void 0===C||null===(t=C.developmentRecordLearningNeeds)||void 0===t?void 0:t.length)?n.a.createElement(h.Box,null,n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No learning need found.")))):n.a.createElement(mn.Formik,{initialValues:L.initialValues,onSubmit:L.onSubmit,key:"learning-need"},n.a.createElement(h.Form,{id:"learning-need",formikContext:!0},n.a.createElement(h.Grid,{item:!0,md:12},null===C||void 0===C||null===(i=C.developmentRecordLearningNeeds)||void 0===i?void 0:i.map((function(e,t){var i,r,a;return 0===(null===(i=e.subCategories)||void 0===i?void 0:i.length)||void 0===(null===(r=e.subCategories)||void 0===r?void 0:r.length)?n.a.createElement(h.Box,{mb:1,style:{border:"1px solid #E2E2E2",borderRadius:"5px"},key:"learningNeedList.learning_need_".concat(e.competencyId,"_").concat(t)},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:1,alignment:"center-right"},n.a.createElement(h.Checkbox,{color:"primary",id:e.isCustomNeed?"learningNeedList.learning_need_".concat(e.developmentPlanId,"_1"):"learningNeedList.learning_need_".concat(e.competencyId,"_0"),formikContext:!0})),n.a.createElement(h.Grid,{item:!0,xs:11,alignment:"center-left"},n.a.createElement(h.Typography,{variant:"h6"},e.name))))))):n.a.createElement(h.Box,{mb:1,style:{border:"1px solid #E2E2E2",borderRadius:"5px"},key:"learningNeedList.learning_need_".concat(e.competencyId,"_0")},n.a.createElement(h.Box,{m:2},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"h6"},e.name)),n.a.createElement(h.Grid,{item:!0,xs:12},null===(a=e.subCategories)||void 0===a?void 0:a.map((function(e){return n.a.createElement(h.Grid,{container:!0,spacing:"form",key:"learningNeedList.learning_need_".concat(e.competencyId,"_").concat(e.subCategoryId)},n.a.createElement(h.Grid,{item:!0,xs:1,alignment:"center-right"},n.a.createElement(h.Checkbox,{color:"primary",id:"learningNeedList.learning_need_".concat(e.competencyId,"_").concat(e.subCategoryId),formikContext:!0})),n.a.createElement(h.Grid,{item:!0,xs:11,alignment:"center-left"},n.a.createElement(h.Typography,{variant:"body1",style:{fontSize:"16px"}},e.description)))}))))))})))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,justify:"center",spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{variant:"outlined",color:"default",disabled:T,fullWidth:!0,onClick:function(){return s(d)}},"Cancel")),n.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{type:"submit",form:"learning-need",variant:"contained",color:"primary",fullWidth:!0,loading:T,disabled:!j||void 0===C||0===(null===C||void 0===C||null===(a=C.developmentRecordLearningNeeds)||void 0===a?void 0:a.length)},"Add Learning Needs")))))})),gs=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,isImpersonated:e.users.isImpersonated}}),(function(e){return{confirmDialog:function(t){return e(Object($n.b)(t))},createDevelopmentOverallReflection:function(t){return e(function(e){return function(t){return q.q.create(void 0,p.S.fromJS(e)).then((function(e){return t(Object(bn.a)({message:"Overall reflection successfully saved.",variant:"success"})),e})).catch((function(e){return t(Object(bn.b)(e)),null}))}}(t))},getDevelopmentOverallReflection:function(t){return e(Go(t))},setRequestBody:function(t){return e(Jo(t))},updateDevelopmentOverallReflection:function(t){return e(function(e){return function(t){return q.q.update(void 0,p.ze.fromJS(e)).then((function(e){return t(Object(bn.a)({message:"Overall reflection successfully saved.",variant:"success"})),e})).catch((function(e){return t(Object(bn.b)(e)),null}))}}(t))}}}))((function(e){var t,i=e.open,a=e.onClose,o=e.competencyFrameworkId,s=e.periodStartDate,l=e.periodEndDate,d=e.userId,u=e.confirmDialog,v=e.createDevelopmentOverallReflection,f=e.getDevelopmentOverallReflection,m=e.updateDevelopmentOverallReflection,y=e.setRequestBody,g={toolbarSticky:!1,useClasses:!1,placeholderText:"",charCounterMax:8e3,toolbarButtons:{moreText:{buttons:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle","clearFormatting"]},moreParagraph:{buttons:["alignLeft","alignCenter","formatOLSimple","alignRight","alignJustify","formatOL","formatUL","paragraphFormat","paragraphStyle","lineHeight","outdent","indent","quote"]},moreMisc:{buttons:["undo","redo"],align:"right",buttonsVisible:2}}},b=E(p.Kd.ManagePortalDevelopmentOverallReflections),S=Object(r.useState)(),I=Object(c.a)(S,2),O=I[0],C=I[1],x=Object(r.useState)(!1),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useRef)(),A=Object(r.useRef)(d),k=Object(r.useRef)(o),D=Object(r.useRef)(s),L=Object(r.useRef)(l);Object(r.useEffect)((function(){if(i)if(C(void 0),k.current>0){var e={userId:A.current,developmentOverallReflectionCompetencyFrameworkId:k.current,startDate:D.current,endDate:L.current};f(e).then((function(e){C(e)}))}else C(null)}),[f,i]);var J={initialValues:{reflection:null!==(t=null===O||void 0===O?void 0:O.reflection)&&void 0!==t?t:""},validationSchema:Object(yn.object)().shape({reflection:Object(yn.string)()}),onSubmit:function(e,t){var i,r,n=e.reflection,c=null!==(i=null===O||void 0===O?void 0:O.userId)&&void 0!==i?i:0,h=null!==(r=null===O||void 0===O?void 0:O.developmentOverallReflectionCompetencyFrameworkId)&&void 0!==r?r:0,p=function(){0===c&&0===h?v({userId:null!==d&&void 0!==d?d:0,developmentOverallReflectionCompetencyFrameworkId:o,startDate:s,endDate:l,reflection:n}).then((function(){t.setSubmitting(!1),a()})):m({userId:null!==d&&void 0!==d?d:0,developmentOverallReflectionCompetencyFrameworkId:o,startDate:s,endDate:l,reflection:n}).then((function(){t.setSubmitting(!1),a()}))};w?p():T.current&&T.current.dirty?u({message:"Do you want to save changes first?",title:"Confirm",OnConfirm:function(){p()},onCancel:function(){a()},onClose:function(){a()}}):a()}};return n.a.createElement(ln.a,{size:"md",open:i,onClose:0===o&&null===O||void 0===O?a:function(){P(!1),T.current&&T.current.handleSubmit()}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"h5"},"Overall Reflection")),subtitle:n.a.createElement(h.Box,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Add an overall reflection of your learning and development for the year.")),n.a.createElement(h.Box,null,n.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(s,"MMMM DD, YYYY")," - ").concat(Object(N.c)(l,"MMMM DD, YYYY"))))),actionRow:n.a.createElement(h.IconButton,{type:"submit",color:"default",id:"printButton",disabled:0===o&&null===O||void 0===O||!b,onClick:function(){y({licenseId:0,frameworkId:o,periodStartDate:s,periodEndDate:l}),window.open("/developmentoverallreflection/print","developmentoverallreflection_".concat(o),"width=977px height=1006px")}},n.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}))}}),void 0===O?n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(Ia,{type:"filter-drawer"})):n.a.createElement(n.a.Fragment,null,0===o&&null===O?n.a.createElement(sn.SideDrawerBody,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",justifyContent:"center"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12},n.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto",pb:2},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold",align:"center"},"No associated framework.")))))):n.a.createElement(mn.Formik,{initialValues:J.initialValues,onSubmit:J.onSubmit,validationSchema:J.validationSchema,innerRef:T,key:"overall-reflection"},(function(e){return n.a.createElement(h.Form,{id:"overall-reflection",formikContext:!0},n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:"form",justifyContent:"center"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextEditor,{fullWidth:!0,id:"reflection",config:g,formikContext:!0,disabled:!b})))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,justifyContent:"center",spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{fullWidth:!0,color:"default",variant:"outlined",onClick:0===o&&null===O||void 0===O?a:function(){P(!1),T.current&&T.current.handleSubmit()}},"Cancel")),n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty,loading:e.isSubmitting&&w,onClick:function(){P(!0),T.current&&T.current.handleSubmit()}},"Save")))))}))))})),bs=Object(V.makeStyles)((function(e){var t=e.spacing;return Object(V.createStyles)({printButton:{"@media print":{display:"none !important"}},pagebreak:{"@media print":{pageBreakInside:"avoid",pageBreakBefore:"auto"}},containerBorder:{minHeight:t(87.5)}})})),Ss=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,printRequestBody:e.developmentPlan.printRequestBody}}),(function(e){return{getDevelopmentOverallReflection:function(t){return e(Go(t))}}})),Es=Object(d.o)(Ss((function(e){var t=e.userId,i=e.getDevelopmentOverallReflection,a=e.printRequestBody,o=Object(r.useState)(),s=Object(c.a)(o,2),l=s[0],d=s[1],u=bs();Object(r.useEffect)((function(){var e;d(void 0);var r={userId:t,developmentOverallReflectionCompetencyFrameworkId:null!==(e=null===a||void 0===a?void 0:a.frameworkId)&&void 0!==e?e:0,startDate:null===a||void 0===a?void 0:a.periodStartDate,endDate:null===a||void 0===a?void 0:a.periodEndDate};i(r).then((function(e){d(e)}))}),[i,t,a]);return n.a.createElement(h.Box,{margin:"20px auto",maxWidth:"1100px"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:u.printButton},n.a.createElement(h.Box,{width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"h5"},"Overall Reflection"),n.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Overall reflection of your learning and development for the year."),n.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(null===a||void 0===a?void 0:a.periodStartDate,"MMMM DD, YYYY")," - ").concat(Object(N.c)(null===a||void 0===a?void 0:a.periodEndDate,"MMMM DD, YYYY")))))),n.a.createElement("br",null),void 0===l?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,{className:u.containerBorder},n.a.createElement(h.TextEditorView,{model:L(null===l||void 0===l?void 0:l.reflection)}))))}))),Is=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(Vr.c)(t))},getDevelopmentPlans:function(t){return e(function(e){return function(t){var i=q.r.getUserLicenseComplianceProfile(void 0,new p.vc(e));return t(Fo(null)),i.then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}}(t))}}})),Os=Object($a.a)(Is((function(e){var t,i=e.loggedUser,a=e.getDevelopmentPlans,o=e.getScreenDescription,s=i&&i.userRole,l={userId:(null===i||void 0===i?void 0:i.userId)||0,includePriorPeriods:!1},d=Object(r.useState)(!1),u=Object(c.a)(d,2),v=u[0],f=u[1],m=Object(r.useState)(!1),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(Object(J.a)({},l)),E=Object(c.a)(S,2),I=E[0],O=E[1],C=Object(r.useState)(),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Zo();Object(r.useEffect)((function(){s&&o(p.Md.LearningPlans).then((function(e){return w(e)}))}),[o,s]),Object(r.useEffect)((function(){var e;(null===i||void 0===i?void 0:i.userId)!==I.userId&&O(Object(J.a)(Object(J.a)({},I),{},{userId:null!==(e=null===i||void 0===i?void 0:i.userId)&&void 0!==e?e:0}))}),[I,i]),Object(r.useEffect)((function(){I.userId&&(null===I||void 0===I?void 0:I.userId)>0&&(f(!0),a(I).then((function(e){return N(e)})).then((function(){return f(!1)})))}),[a,I]);return n.a.createElement(h.Screen,{bgColor:"default",maxWidth:"xl",titleBar:{title:(j&&""!==j.title?j.title:"Development Plans")||"Development Plans",description:j?n.a.createElement(h.Column,null,null!==j.shortDescription&&""!==j.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(null!==(t=j.shortDescription)&&void 0!==t?t:"")}),null!==j.text&&""!==j.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return b(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},v?n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4,key:"Period"},n.a.createElement(h.Skeleton,{height:32,variant:"rect"})),[1,2,3].map((function(e){return n.a.createElement(h.Grid,{key:"loading-state-".concat(e),item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,{classes:{root:k.cardContent},noTopPadding:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:10,md:8,lg:6,id:"reporting-period-label",stretchContent:!0},n.a.createElement(h.Skeleton,{height:40})),n.a.createElement(h.Grid,{item:!0,xs:12,id:"license-list-button-tile"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,sm:12,md:6,alignment:"center",id:"license-list-tile"},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:8},n.a.createElement(h.Skeleton,{height:40})),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Skeleton,{height:40})))),n.a.createElement(h.Grid,{item:!0,sm:12,md:6,alignment:"center",id:"button-set"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:4},n.a.createElement(h.Skeleton,{height:40})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:4},n.a.createElement(h.Skeleton,{height:40})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:4},n.a.createElement(h.Skeleton,{height:40})))))))),n.a.createElement(h.CardActions,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:8,stretchContent:!0},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Skeleton,null)),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Skeleton,null)))),n.a.createElement(h.Hidden,{smDown:!0},n.a.createElement(h.Grid,{item:!0,md:2})),n.a.createElement(h.Grid,{item:!0,xs:4,md:2,alignment:"center-right",stretchContent:!0},n.a.createElement(h.Skeleton,{height:40}))))))}))):n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.ToggleButtonGroup,{formikContext:!1,exclusive:!0,size:"small",color:"primary",options:[{label:"Current Period",value:!1},{label:"Prior Periods",value:!0}],value:I.includePriorPeriods,onChange:function(e,t){null!==t&&O(Object(J.a)(Object(J.a)({},I),{},{includePriorPeriods:t}))}})),n.a.createElement(h.Grid,{item:!0,xs:12},((null===A||void 0===A?void 0:A.length)||0)>0?null===A||void 0===A?void 0:A.map((function(e,t){return n.a.createElement(Xo,{key:"reporting-period-".concat(t),index:t,reportingPeriod:e})})):n.a.createElement(h.Alert,{type:"info",variant:"standard"},n.a.createElement(h.Typography,null,"No UK Licenses found.")))),n.a.createElement(dn,{open:g,onClose:function(){return b(!1)},title:(j&&""!==j.title?j.title:"Development Plans")||"Development Plans",description:null===j||void 0===j?void 0:j.text}))}))),Cs=Object(V.makeStyles)((function(e){var t=e.breakpoints,i=e.spacing;return Object(V.createStyles)({cardContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center","& img":{height:i(16),maxWidth:"100%"}},userCard:Object(Sa.a)({width:"100%"},t.up("md"),{width:i(40)}),userAvatar:{width:i(15),height:i(15)},firmAvatar:{width:i(10),height:i(10)}})})),xs=Object(s.b)((function(e){var t,i;return{firmName:null===(t=e.generalSettings.firm)||void 0===t?void 0:t.name,defaultScreen:null===(i=e.portalSettings.branding)||void 0===i?void 0:i.defaultLandingScreen,isInitialLoad:e.portalSettings.isInitialLoad}}),(function(e){return{getScreenDescription:function(t){return e(Object(Vr.c)(t))},setIsInitialLoad:function(t){return e(Object(Vr.d)(t))}}}))(Object($a.a)((function(e){var t,i,a=e.getScreenDescription,o=e.firmName,l=e.defaultScreen,u=e.isInitialLoad,v=e.setIsInitialLoad,f=Object(s.c)((function(e){return e.users})),m=f.authenticatedUser,y=f.loggedUser,g=f.isImpersonated,b=Object(s.c)((function(e){return e.permissionSets})).userPermissionSets,S=g?y:m,I=E(p.Kd.ViewPortalTeamView)&&S&&S.userRole&&[p.re.AdministrativeAssistant,p.re.Supervisor].includes(null!==(t=S.userRole[0].subRoleId)&&void 0!==t?t:0),O=null===S||void 0===S?void 0:S.hasUKLicense,C=Object(r.useState)(!1),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(r.useState)(),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(d.k)(),D=Cs(),J="true"===(null===(i=Object(s.c)((function(e){var t,i;return null===(t=e.generalSettings.firm)||void 0===t||null===(i=t.firmSettings)||void 0===i?void 0:i.filter((function(e){return"EnableDevelopmentPlanRecord"===e.key}))[0].value})))||void 0===i?void 0:i.toLowerCase());(null===y||void 0===y?void 0:y.userId)!==(null===m||void 0===m?void 0:m.userId)&&(O=null===y||void 0===y?void 0:y.hasUKLicense);var F=Object(r.useRef)(E(p.Kd.ViewPortalCourseCatalog)),B=Object(r.useRef)(E(p.Kd.ViewPortalCourseCalendar)),R=Object(r.useRef)(E(p.Kd.ViewPortalUserCourses)),U=Object(r.useRef)(E(p.Kd.ViewPortalUserCompliance)),G=Object(r.useRef)(E(p.Kd.ViewPortalLearningPlans)),q=Object(r.useRef)(E(p.Kd.ViewPortalDevelopmentPlans)),M=Object(r.useRef)(E(p.Kd.ViewPortalTranscripts)),z=Object(r.useRef)(E(p.Kd.ViewPortalInstructorView)),W=Object(r.useRef)(J&&q.current&&O),V=Object(r.useRef)(!1);V.current=I,Object(r.useEffect)((function(){S&&a(p.Md.Home).then((function(e){N(e)}))}),[S,a]),Object(r.useEffect)((function(){b&&(F.current=b.includes(p.Kd.ViewPortalCourseCatalog),B.current=b.includes(p.Kd.ViewPortalCourseCalendar),R.current=b.includes(p.Kd.ViewPortalUserCourses),U.current=b.includes(p.Kd.ViewPortalUserCompliance),G.current=b.includes(p.Kd.ViewPortalLearningPlans),q.current=b.includes(p.Kd.ViewPortalDevelopmentPlans),M.current=b.includes(p.Kd.ViewPortalTranscripts),z.current=b.includes(p.Kd.ViewPortalInstructorView),W.current=J&&q.current&&O)}),[O,J,b]);return function(){if(l){var e=l.toLowerCase();if("course-catalog"===e&&F.current)return!0;if("course-calendar"===e&&B.current)return!0;if("user-courses"===e&&R.current)return!0;if("learning-plans"===e&&G.current)return!0;if("development-plans"===e&&W.current)return!0;if("compliance"===e&&U.current)return!0;if("transcripts"===e&&M.current)return!0;if("instructor-view"===e&&z.current)return!0;if("team-view"===e&&V.current)return!0}return!1}()&&u?(v(!1),n.a.createElement(d.c,{to:null===l||void 0===l?void 0:l.toLowerCase()})):n.a.createElement(h.Screen,{titleBar:{icon:void 0,title:(A&&void 0!==A.title&&""!==A.title?A.title:o)||"Home",description:A?n.a.createElement(h.Column,null,null!==A.shortDescription&&""!==A.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(A.shortDescription)}),null!==A.text&&""!==A.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return w(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},n.a.createElement(h.Grid,{container:!0,spacing:"card"},F.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/course-catalog")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"Courses",size:"sm"}),"\xa0 Course Catalog"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Search for programs"),n.a.createElement("img",{alt:"Course Catalog",src:"/images/illustrations/course-catalog.svg"}))))),B.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/course-calendar")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"Calendar",size:"sm"}),"\xa0 Course Calendar"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View offered sessions"),n.a.createElement("img",{alt:"Course Calendar",src:"/images/illustrations/course-calendar.svg"}))))),R.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/user-courses")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"MyCourses",size:"sm"}),"\xa0 My Courses"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View registrations and on-demand programs in progress"),n.a.createElement("img",{alt:"My Courses",src:"/images/illustrations/my-courses.svg"}))))),U.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/compliance")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",size:"sm"}),"\xa0 Compliance"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Check status and credits needed"),n.a.createElement("img",{alt:"Compliance",src:"/images/illustrations/compliance.svg"}))))),G.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/learning-plans")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"LearningPlans",size:"sm"}),"\xa0 Learning Plans"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Monitor progress of assigned learning"),n.a.createElement("img",{alt:"Learning Plans",src:"/images/illustrations/learning-plans.svg"}))))),W.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/development-plans")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"DevelopmentPlan",size:"sm"}),"\xa0 Development Plans"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Create and update your SRA required annual development plan and log your practice reflections"),n.a.createElement("img",{alt:"Development Plans",src:"/images/illustrations/development-plans.svg"}))))),M.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/transcripts")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"Transcript",size:"sm"}),"\xa0 Transcripts"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View course history, certificates and evaluations"),n.a.createElement("img",{alt:"Transcripts",src:"/images/illustrations/transcripts.svg"}))))),z.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/instructor-view")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"Instructor",size:"sm"}),"\xa0 Instructor View"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View sessions, approve attendance, and print attendance forms"),n.a.createElement("img",{alt:"Instructor View",src:"/images/illustrations/instructor-view.svg"}))))),V.current&&n.a.createElement(h.Grid,{item:!0,xs:12,md:4},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return k.push("/team-view")}},n.a.createElement(h.CardContent,{classes:{root:D.cardContent}},n.a.createElement(h.Typography,{variant:"h6",align:"center"},n.a.createElement(h.SystemIcon,{icon:"User",size:"sm"}),"\xa0 Team View"),n.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Manage team"),n.a.createElement("img",{alt:"Team View",src:"/images/illustrations/team-view.svg"})))))),n.a.createElement(dn,{open:j,onClose:function(){return w(!1)},title:(A&&void 0!==A.title&&""!==A.title?A.title:o)||"Home",description:null===A||void 0===A?void 0:A.text}))}))),js=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses}}),(function(){return{}}))((function(e){var t,i=e.children,a=e.firmLicenses,o=e.session,s=e.open,l=void 0!==s&&s,d=null!==(t=o&&o.sessionLicenses)&&void 0!==t?t:[],u=Object(r.useState)(null),v=Object(c.a)(u,2),p=v[0],f=v[1],m=Boolean(p),y=m?"user-info":void 0;return n.a.createElement(h.Grid,{spacing:"form",container:!0},n.a.createElement(h.Grid,{item:!0,xs:12,onClick:function(e){f(e.currentTarget)}},i),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Popover,{id:y,open:m||l,anchorEl:p,onClose:function(){f(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},n.a.createElement(h.Box,{m:1,style:{maxWidth:"525px"}},d.map((function(e){var t,i,r=null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.filter((function(t){var i,r,n=null===a||void 0===a||null===(i=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId}));return 5===(null===n||void 0===n?void 0:n.typeId)})),o=null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.filter((function(t){var i,r,n=null===a||void 0===a||null===(i=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId})),o=3===(null===n||void 0===n?void 0:n.typeId)?Object(N.c)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue,s=!0;return 3===(null===n||void 0===n?void 0:n.typeId)&&(s=fn()(t.propertyValue).isValid()),""!==o&&(1===(null===n||void 0===n?void 0:n.typeId)||3===(null===n||void 0===n?void 0:n.typeId))&&s}));return n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{key:e.name,variant:"button",display:"inline"},e.name),2===e.licenseStatus&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),3===e.licenseStatus&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Card,{variant:"outlined"},function(e,t){var i,r;return((null===t||void 0===t?void 0:t.length)||0)>0?0===((null===(i=e.sessionLicenseCredits)||void 0===i?void 0:i.filter((function(e){var t;return(null!==(t=e.creditValue)&&void 0!==t?t:0)>0})).length)||0)?n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"}," - No Credits")):n.a.createElement(h.Box,{pt:1,pl:1,pr:1},null===(r=e.sessionLicenseCredits)||void 0===r?void 0:r.map((function(i,r){var a,o,s,l,c=null!==(a=null===t||void 0===t||null===(o=t.find((function(e){return e.creditId===i.creditId})))||void 0===o?void 0:o.name)&&void 0!==a?a:"";return n.a.createElement(n.a.Fragment,null,i.creditValue>0?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",weight:"bold",display:"inline"},"".concat(i.creditValue," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(null!==(s=i.creditName)&&void 0!==s?s:c)}}),(null===(l=e.sessionLicenseCredits)||void 0===l?void 0:l.length)===r+1?"":"; "),r%2===0?"":n.a.createElement("br",null)):"")}))):n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"}," - No Credits"))}(e,e.sessionLicenseCredits),r&&r.length>0?n.a.createElement(h.Box,{style:{border:"1px solid #c2c2c2",borderRadius:"5px"},display:"inline-block",pt:.5,pb:.5,pl:1,pr:1,m:1},null===r||void 0===r?void 0:r.map((function(t,i){var o,s,l,c=null===a||void 0===a||null===(o=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===o||null===(s=o.licenseProperties)||void 0===s||null===(l=s.find((function(e){return e.propertyId===t.propertyId})))||void 0===l?void 0:l.label;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2"}}," ".concat(c),(null===r||void 0===r?void 0:r.length)===i+1?"":"; "))}))):"",o&&o.length>0?n.a.createElement(h.Divider,null):"",o&&o.length>0?n.a.createElement(h.Box,{p:1,style:{backgroundColor:"#fafafa"}},null===o||void 0===o?void 0:o.map((function(t,i){var r,o,s=null===a||void 0===a||null===(r=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(o=r.licenseProperties)||void 0===o?void 0:o.find((function(e){return e.propertyId===t.propertyId})),l=3===(null===s||void 0===s?void 0:s.typeId)?Object(N.c)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2",fontWeight:"bold"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),i%2===0?"":n.a.createElement("br",null))}))):"")))}))))))})),ws=i(119),Ps=i.n(ws),Ts=i(546),As=i.n(Ts),Ns=Object(B.makeStyles)((function(e){return{arrow:{color:e.palette.common.black},tooltip:{backgroundColor:e.palette.common.white,boxShadow:e.shadows[1],minWidth:"300px"}}})),ks=function(e){var t,i=e.session,r=e.children,a=e.firmLicenses,o=null!==(t=i.sessionLicenses)&&void 0!==t?t:[],s=Ns();return n.a.createElement(h.Tooltip,{title:n.a.createElement(h.Box,{m:1,style:{maxWidth:"525px"}},o.map((function(e){var t,i,r,o,s=null===a||void 0===a?void 0:a.find((function(t){return t.licenseId===e.licenseId})),l=null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.filter((function(t){var i,r,n=null===a||void 0===a||null===(i=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId}));return 5===(null===n||void 0===n?void 0:n.typeId)})),c=null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.filter((function(t){var i,r,n=null===a||void 0===a||null===(i=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId})),o=3===(null===n||void 0===n?void 0:n.typeId)?Object(Zt.e)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue,s=!0;return 3===(null===n||void 0===n?void 0:n.typeId)&&(s=fn()(t.propertyValue).isValid()),""!==o&&(1===(null===n||void 0===n?void 0:n.typeId)||3===(null===n||void 0===n?void 0:n.typeId))&&s}));return n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{key:e.name,variant:"button",display:"inline",color:"textPrimary"},null!==(r=null!==(o=e.name)&&void 0!==o?o:null===s||void 0===s?void 0:s.name)&&void 0!==r?r:""),2===e.licenseStatus&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),3===e.licenseStatus&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Card,{variant:"outlined"},function(e,t){var i,r;return((null===t||void 0===t?void 0:t.length)||0)>0?0===((null===(i=e.sessionLicenseCredits)||void 0===i?void 0:i.filter((function(e){var t;return(null!==(t=e.creditValue)&&void 0!==t?t:0)>0})).length)||0)?n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"}," - No Credits")):n.a.createElement(h.Box,{pt:1,pl:1,pr:1},null===(r=e.sessionLicenseCredits)||void 0===r?void 0:r.map((function(i,r){var a,o,s,l,c=null!==(a=null===t||void 0===t||null===(o=t.find((function(e){return e.creditId===i.creditId})))||void 0===o?void 0:o.name)&&void 0!==a?a:"";return n.a.createElement(n.a.Fragment,null,i.creditValue>0?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",weight:"bold",display:"inline"},"".concat(i.creditValue," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(null!==(s=i.creditName)&&void 0!==s?s:c)}}),(null===(l=e.sessionLicenseCredits)||void 0===l?void 0:l.length)===r+1?"":"; "),r%2===0?"":n.a.createElement("br",null)):"")}))):n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"}," - No Credits"))}(e,e.sessionLicenseCredits),l&&l.length>0?n.a.createElement(h.Box,{style:{border:"1px solid #c2c2c2",borderRadius:"5px"},display:"inline-block",pt:.5,pb:.5,pl:1,pr:1,m:1},null===l||void 0===l?void 0:l.map((function(t,i){var r,o,s,c=null===a||void 0===a||null===(r=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(o=r.licenseProperties)||void 0===o||null===(s=o.find((function(e){return e.propertyId===t.propertyId})))||void 0===s?void 0:s.label;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2"}}," ".concat(c),(null===l||void 0===l?void 0:l.length)===i+1?"":"; "))}))):"",c&&c.length>0?n.a.createElement(h.Divider,null):"",c&&c.length>0?n.a.createElement(h.Box,{p:1,style:{backgroundColor:"#fafafa"}},null===c||void 0===c?void 0:c.map((function(t,i){var r,o,s=null===a||void 0===a||null===(r=a.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(o=r.licenseProperties)||void 0===o?void 0:o.find((function(e){return e.propertyId===t.propertyId})),l=3===(null===s||void 0===s?void 0:s.typeId)?Object(Zt.e)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2",fontWeight:"bold"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),i%2===0?"":n.a.createElement("br",null))}))):"")))}))),classes:s},n.a.createElement("span",null,r))},Ds=(i(511),i(323)),Ls=function(e){return{type:Ds.a,payload:e}},Js=i(210),Fs=function(e){return function(t){var i=ji(e);q.D.downloadFile(void 0,new p.Hb({file:i})).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(e){throw t(Object(M.b)(e)),e}))}},Bs=Object(s.b)((function(e){var t;return{courseFormats:null===(t=e.formats.formats)||void 0===t?void 0:t.filter((function(e){return e.isEnabled})),firmLicenses:e.licenses.firmLicenses}}),(function(e){return{downloadFile:function(t){return e(Fs(t))}}})),Rs=Object(B.makeStyles)((function(e){return{arrow:{color:e.palette.common.black},tooltip:{backgroundColor:e.palette.common.white,boxShadow:e.shadows[1],minWidth:"300px"}}})),Us=function(e){var t=e.title,i=e.children,r=Rs();return n.a.createElement(h.Tooltip,{title:t,classes:r},n.a.createElement("span",null,i))},Gs=function(e){var t,i,r,a,o=e.firmLicenses,s=e.selectedSession,l=e.showHeader,c=e.downloadFile,d=null!==(t=null===s||void 0===s?void 0:s.sessionLicenses)&&void 0!==t?t:[];return n.a.createElement(h.Grid,{container:!0,spacing:"form"},l&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:8,md:8,xs:12,stretchContent:!0},n.a.createElement(h.Row,{size:"max",crossAxisAlignment:"top"},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},null!==(i=s.provider)&&void 0!==i?i:""),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null!==(r=s.courseTitle)&&void 0!==r?r:""),n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},null===s||void 0===s?void 0:s.courseIdLabel)))),n.a.createElement(h.Grid,{lg:4,md:4,xs:12},d.length>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Us,{title:n.a.createElement(h.Box,{m:1,style:{maxWidth:"525px"}},d.length>0&&n.a.createElement(n.a.Fragment,null,d.map((function(e){var t,i,r=null===o||void 0===o?void 0:o.find((function(t){return t.licenseId===e.licenseId})),a=null===r||void 0===r?void 0:r.name,s=null===r||void 0===r?void 0:r.licenseCredits,l=null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.filter((function(t){var i,r,n=null===o||void 0===o||null===(i=o.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId}));return 5===(null===n||void 0===n?void 0:n.typeId)})),c=null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.filter((function(t){var i,r,n=null===o||void 0===o||null===(i=o.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId})),a=3===(null===n||void 0===n?void 0:n.typeId)?fn()(t.propertyValue).format("MM/DD/YYYY"):t.propertyValue,s=!0;return 3===(null===n||void 0===n?void 0:n.typeId)&&(s=fn()(t.propertyValue).isValid()),""!==a&&(1===(null===n||void 0===n?void 0:n.typeId)||3===(null===n||void 0===n?void 0:n.typeId))&&s}));return n.a.createElement(h.Box,{key:e.licenseId},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{key:a,variant:"button",display:"inline",color:"textPrimary"},a),e.licenseStatus===p.Dd.Pending&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),e.licenseStatus===p.Dd.Denied&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Card,{variant:"outlined"},function(e,t){var i,r;return((null===t||void 0===t?void 0:t.length)||0)>0?0===((null===(i=e.sessionLicenseCredits)||void 0===i?void 0:i.filter((function(e){var t;return(null!==(t=e.creditValue)&&void 0!==t?t:0)>0})).length)||0)?n.a.createElement(h.Box,{p:1},n.a.createElement(h.Typography,{variant:"caption"},"- No Credits")):n.a.createElement(h.Box,{pt:1,pl:1,pr:1},null===(r=e.sessionLicenseCredits)||void 0===r?void 0:r.map((function(i,r){var a,o,s,l=null!==(a=null===t||void 0===t||null===(o=t.find((function(e){return e.creditId===i.creditId})))||void 0===o?void 0:o.name)&&void 0!==a?a:"";return n.a.createElement(n.a.Fragment,null,i.creditValue>0?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",weight:"bold",display:"inline"},"".concat(i.creditValue," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(l)}}),(null===(s=e.sessionLicenseCredits)||void 0===s?void 0:s.length)===r+1?"":"; "),r%2===0?"":n.a.createElement("br",null)):"")}))):""}(e,s),l&&l.length>0?n.a.createElement(h.Box,{style:{border:"1px solid #c2c2c2",borderRadius:"10px"},display:"inline-block",pt:.5,pb:.5,pl:1,pr:1,m:1},null===l||void 0===l?void 0:l.map((function(t){var i,r,a,s=null===o||void 0===o||null===(i=o.find((function(t){return t.licenseId===e.licenseId})))||void 0===i||null===(r=i.licenseProperties)||void 0===r||null===(a=r.find((function(e){return e.propertyId===t.propertyId})))||void 0===a?void 0:a.label;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2"}}," ".concat(s,"; ")))}))):"",c&&c.length>0?n.a.createElement(h.Divider,null):"",c&&c.length>0?n.a.createElement(h.Box,{p:1,style:{backgroundColor:"#fafafa"}},null===c||void 0===c?void 0:c.map((function(t,i){var r,a,s=null===o||void 0===o||null===(r=o.find((function(t){return t.licenseId===e.licenseId})))||void 0===r||null===(a=r.licenseProperties)||void 0===a?void 0:a.find((function(e){return e.propertyId===t.propertyId})),l=3===(null===s||void 0===s?void 0:s.typeId)?Object(N.c)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2",fontWeight:"bold"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),n.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),i%2===0?"":n.a.createElement("br",null))}))):"")))}))))},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.Box,{m:2},d.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})).map((function(e,t){var i,r=null===o||void 0===o||null===(i=o.find((function(t){return t.licenseId===e.licenseId})))||void 0===i?void 0:i.name,a=t===d.length-1;return n.a.createElement(h.Typography,{key:e.licenseId,variant:"body1",component:"p",style:{overflowWrap:"break-word"},display:"inline"},"".concat(r).concat(a?"":"; "),void 0!==e.licenseStatus&&e.licenseStatus===p.Dd.Pending&&n.a.createElement(h.Typography,{component:"p",color:"secondary",display:"inline"}," (pending)"))})))))))),n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,stretchContent:!0},function(){var e,t,i,r=function(e,t){return n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},e),null!==t&&void 0!==t?t:n.a.createElement(h.Typography,{variant:"caption"},"-"))},a=!0===(null===s||void 0===s?void 0:s.areQuestionsAllowed)||"true"===String(null===s||void 0===s?void 0:s.areQuestionsAllowed),o=!0===(null===s||void 0===s?void 0:s.isIndividualSessionDateAllowed)||"true"===String(null===s||void 0===s?void 0:s.isIndividualSessionDateAllowed),l=!0===(null===s||void 0===s?void 0:s.isOpenToClient)||"true"===String(null===s||void 0===s?void 0:s.isOpenToClient);return n.a.createElement(h.Card,{variant:"outlined",background:"default"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Published",n.a.createElement(h.Typography,{variant:"caption"},(null===s||void 0===s?void 0:s.isPublished)?"Yes":"No"))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Duration",n.a.createElement(h.Typography,{variant:"caption"},""===(null===s||void 0===s?void 0:s.duration)?"-":null===s||void 0===s?void 0:s.duration))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Waitlist",n.a.createElement(h.Typography,{variant:"caption"},(null===s||void 0===s?void 0:s.isWaitlistingAllowed)?"Yes":"No"))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Registration Limit",n.a.createElement(h.Typography,{variant:"caption"},null!==(e=null===s||void 0===s?void 0:s.registrationLimit)&&void 0!==e?e:0))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Allow Individual Attendance Date",n.a.createElement(h.Typography,{variant:"caption"},o?"Yes":"No"))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Session Approval",n.a.createElement(h.Typography,{variant:"caption"},void 0!==(null===s||void 0===s?void 0:s.sessionApprovers)&&void 0!==(null===s||void 0===s?void 0:s.sessionApprovers[0])?null===s||void 0===s?void 0:s.sessionApprovers[0].name:"-"))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Open to Clients",n.a.createElement(h.Typography,{variant:"caption"},l?"Yes":"No"))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Evaluation",n.a.createElement(h.Typography,{variant:"caption"},"".concat(null!==(t=null===s||void 0===s?void 0:s.evaluation)&&void 0!==t?t:"-")))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Questions Allowed",n.a.createElement(h.Typography,{variant:"caption"},a?"Yes":"No"))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Cost",n.a.createElement(h.Typography,{variant:"caption"},null!==(i=null===s||void 0===s?void 0:s.cost)&&void 0!==i?i:"0"))),n.a.createElement(h.Grid,{item:!0,lg:12,md:12,xs:12},r("URL",n.a.createElement(h.Typography,{variant:"body1"},""===(null===s||void 0===s?void 0:s.url)?"-":null===s||void 0===s?void 0:s.url))))))}()),n.a.createElement(h.Grid,{item:!0,lg:8,md:6,xs:12},n.a.createElement(h.Grid,{container:!0,spacing:1},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",background:"default",style:{height:120,maxHeight:175,overflow:"auto"}},n.a.createElement(h.CardContent,null,n.a.createElement(h.Column,null,n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Private Administrator Notes:")),n.a.createElement(h.Typography,{variant:"body1"},null===s||void 0===s?void 0:s.note))))),(null===s||void 0===s?void 0:s.sessionMaterials)&&n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},(a=(null===s||void 0===s?void 0:s.sessionMaterials)||[])?n.a.createElement(h.Grid,{container:!0,spacing:1},null===a||void 0===a?void 0:a.map((function(e){var t;return n.a.createElement(h.Grid,{key:e.fileId,item:!0,lg:3,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",background:"default"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.SystemIcon,{icon:"Materials",color:"primary",size:"md",type:"duotone"})),n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1",color:"primary"},n.a.createElement(h.Link,{onClick:function(){var t;if("link"===(null===(t=e.libraryFile)||void 0===t?void 0:t.type)){var i,r,n=null===(i=e.libraryFile)||void 0===i?void 0:i.url;(null===(r=n)||void 0===r?void 0:r.match(/^https?:\/\//i))||(n="http://"+n),window.open(n,"_blank")}else c("".concat((null===e||void 0===e?void 0:e.fileId)||0))}},null===(t=e.libraryFile)||void 0===t?void 0:t.title)),n.a.createElement(h.Typography,{variant:"caption"},e.isPublic?"Public":"Private"))))))}))):null),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined",background:"default",style:{height:200,maxHeight:400,overflow:"auto"}},n.a.createElement(h.CardContent,null,n.a.createElement(h.Column,null,n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Description:")),n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.TextEditorView,{model:L(null===s||void 0===s?void 0:s.detail)})))))))))};Gs.defaultProps={showHeader:!0};var qs=Bs(Gs),Ms=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses}}),(function(){return{}}))((function(e){var t,i,r,a,o,s,l,c,d,u,v,f,m,y=e.session,g=e.selected,b=void 0!==g&&g,S=e.onClick,E=e.firmLicenses,I=(null===y||void 0===y?void 0:y.startDate)?Object(N.c)(null===y||void 0===y?void 0:y.startDate,"MMM DD, YYYY"):"",O=(null===y||void 0===y?void 0:y.endDate)?Object(N.c)(null===y||void 0===y?void 0:y.endDate,"MMM DD, YYYY"):"",C=(null===y||void 0===y?void 0:y.startTime)?null===y||void 0===y?void 0:y.startTime:"",x=(null===y||void 0===y?void 0:y.endTime)&&(null===y||void 0===y?void 0:y.endTime)!==(null===y||void 0===y?void 0:y.startTime)?" - ".concat(null===y||void 0===y?void 0:y.endTime):"",j=null!==(t=null===y||void 0===y?void 0:y.timeZone)&&void 0!==t?t:"",w=null!==(i=null===y||void 0===y?void 0:y.location)&&void 0!==i?i:"",P=(null===y||void 0===y?void 0:y.room)?"; ".concat(null===y||void 0===y?void 0:y.room):"",T=null!==(r=null===y||void 0===y?void 0:y.courseFormatPortalCategory)&&void 0!==r?r:"",A=null===y||void 0===y||null===(a=y.sessionInstructors)||void 0===a?void 0:a.join(", "),k=null!==(o=null===y||void 0===y?void 0:y.validatedCount)&&void 0!==o?o:0,D=null!==(s=null===y||void 0===y?void 0:y.tentativeCount)&&void 0!==s?s:0,L=null!==(l=null===y||void 0===y?void 0:y.registeredCount)&&void 0!==l?l:0,J=null!==(c=null===y||void 0===y?void 0:y.pendingCount)&&void 0!==c?c:0,F=null!==(d=null===y||void 0===y?void 0:y.inProgressCount)&&void 0!==d?d:0,B=null!==(u=null===y||void 0===y?void 0:y.disqualifiedCount)&&void 0!==u?u:0,R=Object(V.useTheme)(),U=Object(V.useMediaQuery)(R.breakpoints.down("sm")),G=Object(V.useMediaQuery)(R.breakpoints.down("xs")),q=null!==(v=null===y||void 0===y||null===(f=y.sessionLicenses)||void 0===f?void 0:f.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==v?v:[],M=function(e){return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{mb:.1,mr:.5,textAlign:"center",style:{width:"20px"}},e.icon),e.label)};return n.a.createElement(h.Box,{onClick:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return S&&S()}))},n.a.createElement(h.Widget,{color:b?"warning":"default"},n.a.createElement(h.ExpandableCard,{dense:!0,disableGutters:!0,variant:"none",summary:n.a.createElement(h.Row,{crossAxisAlignment:"stretch"},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"space-between",alignItems:"center",alignContent:"center"},n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"center"},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{ml:4,mt:2,mb:2,mr:2,minWidth:60},y&&n.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(m=null===y||void 0===y?void 0:y.startDate)&&void 0!==m?m:new Date})),n.a.createElement(As.a,{mainAxisAlignment:"top",size:"max"},y.title!==y.courseTitle&&n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"body1"},y.title),n.a.createElement(h.Box,{m:1},(null===y||void 0===y?void 0:y.cancelledDate)?n.a.createElement(Ps.a,{color:"error",label:"Canceled",variant:"outlined",size:"small"}):!1===(null===y||void 0===y?void 0:y.isPublished)&&n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(Ps.a,{color:"warning",label:"Not Published",size:"small",variant:"outlined"})))),M({icon:n.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"}),label:n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"body1",color:"default"},C?"".concat(C):"",x?"".concat(x):""," ",C||x?" ".concat(null===j?"":j,"; "):"",I||"",O&&O!==I&&" - ".concat(O||"")),y.title===y.courseTitle&&n.a.createElement(h.Box,{ml:1},(null===y||void 0===y?void 0:y.cancelledDate)?n.a.createElement(Ps.a,{color:"error",label:"Canceled",variant:"outlined",size:"small"}):!1===(null===y||void 0===y?void 0:y.isPublished)&&n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(Ps.a,{color:"warning",label:"Not Published",size:"small",variant:"outlined"}))))}),w&&M({icon:n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"}),label:n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},w," ",P)})))),n.a.createElement(h.Grid,{item:!0,lg:4,md:4,sm:6,xs:12},n.a.createElement(h.Box,{ml:U?4:0,mr:G?4:0},n.a.createElement(As.a,{flex:1},M({icon:n.a.createElement(kn,{type:"duotone",color:"primary",format:null!==T&&void 0!==T?T:""}),label:n.a.createElement(h.Typography,{variant:"body1"},y.courseFormat)}),A&&A.length>0&&M({icon:n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:n.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",A)})))),n.a.createElement(h.Grid,{item:!0,lg:1,md:2,sm:6,xs:12,alignment:"center"},n.a.createElement(h.Box,{width:"100%",ml:G?4:0,mr:G?4:0,display:"flex",flexDirection:"column",alignItems:G?"flex-start":U?"center":"flex-start"},n.a.createElement(h.Row,{flex:1,mb:.75},n.a.createElement(h.Expanded,{mr:1,flex:0},L&&L>99?n.a.createElement(h.Tooltip,{title:"Registered Count: ".concat(L&&L)},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"primary",colorMode:"dark",avatar:"R",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Registered Count"},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"primary",colorMode:"dark",avatar:"R",label:L&&L,size:"small",width:"xs"})))),n.a.createElement(h.Expanded,{flex:0},y.isOnlineLearning&&y.isOnlineLearning?n.a.createElement(n.a.Fragment,null,B&&B>99?n.a.createElement(h.Tooltip,{title:"Disqualified Count: ".concat(B&&B)},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"error",colorMode:"dark",avatar:"D",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Disqualified Count"},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"error",colorMode:"dark",avatar:"D",label:B&&B,size:"small",width:"xs"})))):n.a.createElement(n.a.Fragment,null,D&&D>99?n.a.createElement(h.Tooltip,{title:"Tentative Count: ".concat(D&&D)},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"default",colorMode:"dark",avatar:"T",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Tentative Count"},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"default",colorMode:"dark",avatar:"T",label:D&&D,size:"small",width:"xs"})))))),n.a.createElement(h.Row,{flex:1,mb:.75},n.a.createElement(h.Expanded,{mr:1,flex:0},k&&k>99?n.a.createElement(h.Tooltip,{title:"Validated Count: ".concat(k&&k)},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"success",colorMode:"dark",avatar:"V",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Validated Count"},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"success",colorMode:"dark",avatar:"V",label:k&&k,size:"small",width:"xs"})))),n.a.createElement(h.Expanded,{flex:0},y.isOnlineLearning&&y.isOnlineLearning?n.a.createElement(n.a.Fragment,null,F&&F>99?n.a.createElement(h.Tooltip,{title:"In Progress Count: ".concat(F&&F)},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"warning",colorMode:"dark",avatar:"IP",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"In Progress Count"},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"warning",colorMode:"dark",avatar:"IP",label:F&&F,size:"small",width:"xs"})))):n.a.createElement(n.a.Fragment,null,J&&J>99?n.a.createElement(h.Tooltip,{title:"Pending Count: ".concat(J&&J)},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"warning",colorMode:"dark",avatar:"P",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Pending Count"},n.a.createElement("span",null,n.a.createElement(Ps.a,{color:"warning",colorMode:"dark",avatar:"P",label:J&&J,size:"small",width:"xs"})))))))),n.a.createElement(h.Grid,{item:!0,lg:2,md:6,xs:12,stretchContent:!0,alignment:"center"},(null===y||void 0===y?void 0:y.sessionLicenses)&&(null===y||void 0===y?void 0:y.sessionLicenses.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Card,{color:"default",variant:"outlined",style:{textAlign:"left",paddingLeft:"0",minHeight:60,maxHeight:"70px",borderColor:"white"}},n.a.createElement(ks,{firmLicenses:null!==E&&void 0!==E?E:[],session:y},n.a.createElement(h.Wrap,{flex:1,runSpacing:1,spacing:10,wrap:"wrap"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",style:{color:"gray"}},"Credits"))),n.a.createElement(h.Expanded,{flex:1},q.length>0&&q.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})).map((function(e,t){var i=t===q.length-1;return n.a.createElement(n.a.Fragment,null,e.name&&n.a.createElement(h.Typography,{variant:"body1",component:"p",style:{overflowWrap:"break-word"},display:"inline"}," ".concat(e.name),e.licenseStatus===p.Dd.Pending&&n.a.createElement(h.Typography,{component:"p",color:"secondary",display:"inline"}," (pending)"),e.licenseStatus===p.Dd.Denied&&n.a.createElement(h.Typography,{component:"p",color:"secondary",display:"inline"}," (denied)"),"".concat(i?"":"; ")))})))))))))),details:n.a.createElement(qs,{selectedSession:y,showHeader:!1})})))})),zs=function(e){return function(t){return q.S.getInstructorSessions(void 0,p.pc.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}},Ws=(i(176),i(195)),Vs=i.n(Ws),_s=function(e){return function(t){var i=t.children;return n.a.createElement(Vs.a,null,n.a.createElement(e,t,i))}},Ys=i(519),$s=function(e){var t=[];return Object.keys(e).map((function(i){return t.push({id:i,selected:e[i]}),i})),{exemptedIds:t.filter((function(e){return!1===e.selected})).map((function(e){return+e.id})),exemptedIdsString:t.filter((function(e){return!1===e.selected})).map((function(e){return"".concat(e.id)})),selectedIds:t.filter((function(e){return!0===e.selected})).map((function(e){return+e.id})),selectedIdsString:t.filter((function(e){return!0===e.selected})).map((function(e){return"".concat(e.id)})),total:t.length}},Hs=i(115),Ks=i.n(Hs),Qs=i(1044),Zs=i(227),Xs=i.n(Zs),el=i(504),tl=i.n(el),il=Object(V.makeStyles)((function(e){return{root:{},dropZone:{border:"1px dashed ".concat(e.palette.divider),padding:e.spacing(6),outline:"none",display:"flex",justifyContent:"center",flexWrap:"wrap",alignItems:"center","&:hover":{backgroundColor:"#eceff1",opacity:.5,cursor:"pointer"}},dragActive:{backgroundColor:"#eceff1",opacity:.5},image:{width:100},info:{marginTop:e.spacing(1)},list:{maxHeight:350}}})),rl=Object(s.b)(null,(function(e){return{uploadFile:function(t){return e(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i){var r={data:e,fileName:e.name};return q.c.attachFile(t,void 0,r).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t))},setFilesToUpload:function(t){return e(Ls(t))}}}))((function(e){var t,i=e.onClose,a=e.uploadFile,o=e.setFilesToUpload,s=Object(Hs.useWizardDialogContext)().goNext,l=Object(r.useState)([]),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)([]),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)([]),b=Object(c.a)(g,2),S=b[0],E=b[1],I=il(),O=Object(h.useSnackbar)(),C=Object(V.useTheme)(),x=Object(V.useMediaQuery)(C.breakpoints.down("xs"),{noSsr:!0}),j=Object(r.useCallback)((function(e){v(e),e.map((function(e){return y((function(t){return Object(Oi.a)(t).concat([{name:e.name,status:"uploading"}])})),a(e).then((function(t){var i={name:e.name,status:"uploaded"};y((function(t){return Object(Oi.a)(t.filter((function(t){return t.name!==e.name}))).concat([i])})),E((function(e){return Object(Oi.a)(e).concat(t)}))})).catch((function(){var t={name:e.name,status:"failed"};y((function(i){return Object(Oi.a)(i.filter((function(t){return t.name!==e.name}))).concat([t])}))})),e}))}),[a]),w=Object(r.useCallback)((function(e){j(Object(Oi.a)(u).concat(e))}),[u,j]),P=m.filter((function(e){return"uploading"===e.status})).length>0,T=function(e){var t=m.filter((function(t){return t.name===e}))[0];if(!t)return n.a.createElement(tl.a,{title:"Delete"},n.a.createElement(h.IconButton,{edge:"end",onClick:function(){!function(e){v((function(t){return t.filter((function(t){return t.name!==e}))})),y((function(t){return t.filter((function(t){return t.name!==e}))}))}(e)}},n.a.createElement(Xs.a,{icon:"Delete",size:"sm"})));switch(t.status){case"uploading":return n.a.createElement(Xs.a,{icon:"Loading",size:"sm",spin:!0,color:"primary"});case"failed":return n.a.createElement(Xs.a,{icon:"Warning",size:"sm",color:"error"});case"uploaded":return n.a.createElement(Xs.a,{icon:"Success",size:"sm",color:"success"});default:return n.a.createElement(Xs.a,{icon:"",size:"sm"})}},A=Object(r.useCallback)((function(e){(null===e||void 0===e?void 0:e.length)>10?O("Too many files. Please select ".concat(10," at a time"),"error"):O("Invalid files","error")}),[O]),k=Object(Qs.a)({onDrop:w,accept:[".pdf",".doc",".docx",".ppt",".pptx",".xls",".txt",".csv",".xlsx",".gif",".jpeg",".png",".zip",".jpg"],maxFiles:10,onDropRejected:A}),D=k.getRootProps,L=k.getInputProps,J=k.isDragActive;return n.a.createElement(n.a.Fragment,null,n.a.createElement(Hs.WizardDialogBody,null,n.a.createElement(h.Container,{maxWidth:"md"},n.a.createElement(h.List,null,n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Typography,{variant:"h3",color:"primary",align:"center"},"Upload File(s)")),n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Alert,{variant:"standard",type:"info"},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Files (including images)"),n.a.createElement(h.Typography,{variant:"caption"},"Acceptable file formats include: PDF, DOC, XLS, TXT, CSV, JPG, PNG, GIF,"))))),n.a.createElement(n.a.Fragment,null,n.a.createElement("div",Object.assign({className:Object(Va.default)((t={},Object(Sa.a)(t,I.dropZone,!0),Object(Sa.a)(t,I.dragActive,J),t))},D()),n.a.createElement("input",L()),n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{xs:12,item:!0,sm:4,hidden:x},n.a.createElement(h.Box,null,n.a.createElement("img",{alt:"Select file",className:I.image,src:"/images/undraw_add_file2_gvbb.svg"}))),n.a.createElement(h.Grid,{xs:12,item:!0,sm:8},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{gutterBottom:!0,variant:"h5"},"Upload Files"),n.a.createElement(h.Typography,{className:I.info,color:"textSecondary",variant:"subtitle1",weight:"regular"},"Drop files here or click ",n.a.createElement(h.Link,null,"browse")," thorough your machine"))))),u.length>0&&n.a.createElement(h.List,{className:I.list},u.map((function(e,t){return n.a.createElement(h.ListItem,{divider:t=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var fl=Object(s.b)((function(){return{}}),(function(e){return{addNotification:function(t){return e(M.a({message:t,variant:"warning"}))},getParticipants:function(t){return e(function(e){return function(t){return q.R.getAll(void 0,p.oc.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}}(t))},approveParticipants:function(t,i){return e(function(e,t){return function(i){var r={sessionParticipantIds:e,sessionParticipantStatusId:p.ke.Registered,isParticipantUnvalidated:!1,sessionId:t,isApproval:!0,sendEmailConfirmation:!0};return q.R.update(void 0,p.Ee.fromJS(r)).then((function(e){return i(Object(bn.a)({message:"Approved successful.",variant:"success"})),e})).catch((function(e){i(Object(bn.b)(e))}))}}(t,i))},showConfirmation:function(t){return e(Object($n.b)(t))},updateFiles:function(t){return e(function(e){return function(t){return q.D.updateFiles(void 0,new p.Be({files:e.map((function(e){return p.yd.fromJS(e)}))})).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},addSessionMaterials:function(t,i){return e(function(e,t){return function(i){var r={sessionId:e,fileIdList:t};return q.S.addInstructorSessionMaterials(void 0,p.g.fromJS(r)).then((function(){i(Object(bn.a)({message:"Uploading of material(s) successful.",variant:"success"}))})).catch((function(e){i(Object(bn.b)(e))}))}}(t,i))}}})),ml={sessionId:0,filterBy:[],searchCriteria:["AllUsers"],sortBy:"lastName",page:1,pageSize:10},yl=Object(d.o)(_s(fl((function(e){var t,i,a,o,d,u=e.session,v=e.getParticipants,f=e.addNotification,m=e.showConfirmation,y=e.approveParticipants,g=e.updateFiles,b=e.addSessionMaterials,S=e.onSessionUpdate,E=Object(s.c)((function(e){var t;return null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId})),I=Object(r.useState)("AllUsers"),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)("AllStatus"),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(r.useState)(Object(J.a)(Object(J.a)({},ml),{},{sessionId:null!==(t=null===u||void 0===u?void 0:u.sessionId)&&void 0!==t?t:0})),F=Object(c.a)(L,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),q=G[0],M=G[1],z=Object(Ws.useDataGridContext)(),W=z.selectedIdList,V=z.setSelectedIdList,_=$s(W),Y=k&&(null===(i=k.sessionParticipants)||void 0===i?void 0:i.every((function(e){return e.isInstructor})));Object(r.useEffect)((function(){D(void 0),v(B).then((function(e){D(e)}))}),[v,B,D]);var $=Object(Ha.a)((function(e){R(""!==e?Object(J.a)(Object(J.a)({},B),{},{page:1,filterBy:["lastName[contains]:".concat(e)]}):Object(J.a)(Object(J.a)({},B),{},{page:1,filterBy:[]}))}),500),H=function(){T("AllStatus");var e=Array();e.push("AllStatus"),e.push(C),R(Object(J.a)(Object(J.a)({},B),{},{searchCriteria:e,page:1}))},K=function(){var e=Object(l.a)(pl().mark((function e(t){var i;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v({includeIds:null!==t&&void 0!==t?t:_.selectedIdsString,pageSize:-1,sessionId:null!==(i=null===u||void 0===u?void 0:u.sessionId)&&void 0!==i?i:0}).then((function(e){if(void 0!==e&&e.sessionParticipants&&e.sessionParticipants.length>0){var t=e.sessionParticipants.filter((function(e){return!e.isInstructor&&e.sessionParticipantStatusId===p.ke.Pending})).map((function(e){return e.sessionParticipantId}));t.length>0?m({message:"Are you sure you want to approve the selected participant".concat(t.length>1?"s?":"?"),title:"Confirm Approval",OnConfirm:function(){var e;y(t,null!==(e=null===u||void 0===u?void 0:u.sessionId)&&void 0!==e?e:0).then((function(){V({}),H()}))}}):(f("Unable to approve, the selected participant".concat(e.sessionParticipants.length>1?"s are instructors":" is an instructor"," or not in Pending status.")),V({}))}}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Q=[{Header:"Name",accessor:"lastName",showOnMobile:!0,Cell:function(e){var t,i=e.row.original;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.DetailList,{avatarText:"".concat(i.firstName&&i.firstName[0]).concat(i.lastName&&i.lastName[0]),name:"".concat(i.lastName,", ").concat(i.firstName," ").concat(null!==(t=i.middleName)&&void 0!==t?t:""),avatarImg:i.avatar,description:n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Typography,{variant:"body1",style:{display:"inline-block",marginRight:3}},i.location),i.isInstructor?n.a.createElement(h.Box,null,i.userTypeId!==p.Re.Client&&i.location&&" | ",n.a.createElement(h.Typography,{variant:"body1",color:"secondary",style:{display:"inline-block"}},"Instructor")):""),badge:{badgeContent:Object(Ys.a)(i.userType),anchorOrigin:{horizontal:"right",vertical:"bottom"},overlap:"circle",color:i.userTypeId===p.Re.Administrator?"success":"warning",invisible:i.userTypeId===p.Re.Employee}}))},disableSortBy:!1},{Header:"",accessor:"participantId",showOnMobile:!0,Cell:function(e){var t=e.row.original;return t.sessionParticipantStatusId===p.ke.Pending||t.isInstructor&&t.userId===E?n.a.createElement(h.Button,{onClick:function(){var e;t.isInstructor?M(!0):K(["".concat(null!==(e=t.sessionParticipantId)&&void 0!==e?e:0)])},variant:"outlined",color:"primary",size:"small"},"".concat(t.isInstructor?"Upload Material":"Approve")):n.a.createElement(n.a.Fragment,null)},disableSortBy:!0},{Header:n.a.createElement(h.Box,{display:"flex",justifyContent:"center"},"Status"),accessor:"participantStatus",showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Box,{display:"flex",justifyContent:"center"},n.a.createElement(vl,{sessionParticipantStatus:t.sessionParticipantStatusId}))},disableSortBy:!0}],Z=[{name:"All Users",key:"AllUsers"},{name:"Employees",key:"EmployeeOnly"},{name:"Clients",key:"ClientOnly"},{name:"Administrators",key:"AdminOnly"}],X=[{name:"All Status",key:"AllStatus"},{name:"Validated",key:"Validated"},{name:"Registered",key:"Registered"},{name:"Tentative",key:"Tentative"},{name:"Excused",key:"Excused"},{name:"Unexcused",key:"Unexcused"},{name:"Pending",key:"Pending"},{name:"In Progress",key:"InProgress"},{name:"Disqualified",key:"Disqualified"}];return n.a.createElement(n.a.Fragment,null,n.a.createElement(Nn.a,{onSelectAll:function(){return v(Object(J.a)(Object(J.a)({},B),{},{pageSize:-1})).then((function(e){var t;return null===e||void 0===e||null===(t=e.sessionParticipants)||void 0===t?void 0:t.map((function(e){return e.sessionParticipantId}))}))},advanced:!0,id:"sessionParticipantId",key:"sessionParticipantDataGrid",columns:Q,data:null===k||void 0===k?void 0:k.sessionParticipants,withRowSelection:!0,loading:void 0===k||null===k,totalRecords:null!==(a=null===k||void 0===k?void 0:k.recordCount)&&void 0!==a?a:0,pageIndex:null!==(o=null===B||void 0===B?void 0:B.page)&&void 0!==o?o:1,onNavigate:function(e,t){R((function(i){return Object(J.a)(Object(J.a)({},i),{},{page:e,pageSize:t})}))},onSortBy:function(e,t){var i=e;void 0!==i&&(t||(i="-".concat(i)),R((function(e){return Object(J.a)(Object(J.a)({},e),{},{page:1,sortBy:i})})))},tableActions:n.a.createElement(h.Grid,{container:!0,spacing:1,key:"participantTableActions"},n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,key:"participants"},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"primary"},null===k||void 0===k?void 0:k.recordCount," participants")))),n.a.createElement(h.Grid,{item:!0,lg:2,md:3,sm:6,xs:12,key:"userTypes"},n.a.createElement(h.SelectField,{fullWidth:!0,startAdornment:"User Type:",id:"userTypes",value:C,onChange:function(e){x(e.target.value);var t=Array();t.push(e.target.value),t.push(P),R(Object(J.a)(Object(J.a)({},B),{},{searchCriteria:t,page:1}))},formikContext:!1,dense:!0},Z&&Z.map((function(e){return n.a.createElement(h.MenuItem,{key:e.key,value:e.key},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"body1"},e.name))))})))),n.a.createElement(h.Grid,{item:!0,lg:2,md:3,sm:6,xs:12,key:"userStatuses"},n.a.createElement(h.SelectField,{fullWidth:!0,startAdornment:"Status:",id:"userStatus",value:P,onChange:function(e){T(e.target.value);var t=Array();t.push(e.target.value),t.push(C),R(Object(J.a)(Object(J.a)({},B),{},{searchCriteria:t,page:1}))},formikContext:!1,dense:!0},X&&X.map((function(e){return n.a.createElement(h.MenuItem,{key:e.key,value:e.key},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"body1"},e.name))))})))),n.a.createElement(h.Grid,{item:!0,lg:4,md:12,xs:12,key:"quickSearchField"},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.TextField,{fullWidth:!0,placeholder:"Search",type:"text",startAdornment:n.a.createElement(h.InputAdornment,{position:"start"},n.a.createElement(h.SystemIcon,{icon:"Search"})),formikContext:!1,onChange:function(e){return $(e.target.value)},size:"small"}),n.a.createElement(h.Box,{mr:.5},n.a.createElement(Ea,{icon:n.a.createElement(h.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),title:"Actions",menu:[{label:"Approve",disable:null===(d=!(_.selectedIds.length>0)||Y)||void 0===d||d,icon:n.a.createElement(h.SystemIcon,{icon:"RegisterParticipants"}),onClick:function(){return K()}}]})))))},q&&n.a.createElement(hl,{open:q,onClose:function(){return M(!1)},onSave:function(e){return function(e){S(0),g(e||[]).then((function(e){if(e.length>0){var t,i,r=e.map((function(e){var t;return null!==(t=e.fileId)&&void 0!==t?t:0}));M(!1),b(null!==(t=null===u||void 0===u?void 0:u.sessionId)&&void 0!==t?t:0,r),R((function(e){return Object(J.a)({},e)})),V({}),S(null!==(i=null===u||void 0===u?void 0:u.sessionId)&&void 0!==i?i:0)}}))}(e)}})))})))),gl=function(){return n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(P.a,{dense:!0},n.a.createElement(h.Box,{width:"100%",alignItems:"center",display:"flex",justifyContent:"center"},n.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"center"},n.a.createElement(h.Skeleton,{width:"320px",height:"95px"}),n.a.createElement(h.Skeleton,{width:"300px",height:"55px"}),n.a.createElement(h.Skeleton,{width:"162px",height:"45px"})))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Widget,null,n.a.createElement(P.a,{dense:!0},n.a.createElement(h.Box,{ml:2,mr:2},n.a.createElement(h.Table,{size:"medium"},n.a.createElement(h.TableBody,null,["col1","col2","col3"].map((function(e){return n.a.createElement(h.TableRow,{key:"".concat(e,"_exmpl_row")},[1,2,3,4].map((function(t){return n.a.createElement(h.TableCell,{height:18,key:"".concat(e,"_").concat(t)},n.a.createElement(h.Skeleton,{width:"100%",height:"34px"}))})))})))))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Table,{size:"medium"},n.a.createElement(h.TableHead,{style:{border:"1px solid #BDBDBD"}},n.a.createElement(h.TableRow,{style:{border:"1px solid #BDBDBD"}},[1,2,3].map((function(e){return n.a.createElement(h.TableCell,{key:"".concat(e,"_header"),style:{border:"1px solid #BDBDBD"}},n.a.createElement(h.Skeleton,{width:"100%",height:"20px"}))})))),n.a.createElement(h.TableBody,null,[1,2,3,4].map((function(e){return n.a.createElement(h.TableRow,{key:"".concat(e,"_exmpl_row"),style:{border:"1px solid #BDBDBD"}},[1,2,3].map((function(e){return n.a.createElement(h.TableCell,{height:18,key:"".concat(e,"_exmpl_row_cell"),style:{border:"1px solid #BDBDBD"}},n.a.createElement(h.Skeleton,{width:"100%",height:"20px"}))})))}))))))},bl=Object(s.b)((function(){return{}}),(function(e){return{getAttendanceForms:function(t){return e(function(e){return function(t){var i=new p.Yb({filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:10});return q.d.getAll(void 0,e?p.Yb.fromJS(e):i).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getAttendanceForm:function(t){return e(z(t))},getSessionDetails:function(t){return e(W(t))}}})),Sl={filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:-1},El=bl((function(e){var t,i,a,o,l,d,u,v,f,m,y,g,b,S,E,I,O=e.getAttendanceForm,C=e.getAttendanceForms,j=e.getSessionDetails,w=e.onClose,T=e.open,k=e.sessionId,D=Object(s.c)((function(e){return e.generalSettings.firmName})),J=Object(s.c)((function(e){var t;return null===(t=e.generalSettings.firm)||void 0===t?void 0:t.logoUrl})),F=Object(r.useState)(0),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)(),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)([]),X=Object(c.a)(Z,2),ee=X[0],te=X[1];Object(r.useEffect)((function(){Y(void 0),C(Sl).then((function(e){Y(e),j(+k).then((function(t){var i,r,n,a;z(t),te(null!==(i=null===t||void 0===t?void 0:t.sessionParticipants)&&void 0!==i?i:[]),U(null!==(r=null===e||void 0===e||null===(n=e.attendanceForms)||void 0===n||null===(a=n.find((function(e){return e.isDefault})))||void 0===a?void 0:a.attendanceFormId)&&void 0!==r?r:0)}))}))}),[C,j,k]),Object(r.useEffect)((function(){Q(void 0),0!==+R?O(R).then((function(e){if(void 0!==e)if(Q(e),null===e||void 0===e?void 0:e.includeInstructorSignatureOnFirstRow){var t,i,r,n,a=null!==(t=null===M||void 0===M||null===(i=M.sessionInstructors)||void 0===i?void 0:i.map((function(e){var t;return null!==(t=e.userId)&&void 0!==t?t:0})))&&void 0!==t?t:[],o=null===M||void 0===M||null===(r=M.sessionParticipants)||void 0===r?void 0:r.filter((function(e){var t;return!a.includes(null!==(t=e.userId)&&void 0!==t?t:0)}));te((null!==(n=null===M||void 0===M?void 0:M.sessionInstructors)&&void 0!==n?n:[]).concat(null!==o&&void 0!==o?o:[]))}else{var s;te(null!==(s=null===M||void 0===M?void 0:M.sessionParticipants)&&void 0!==s?s:[])}return e.attendanceFormId})):Q(void 0)}),[R,O,M]);var ie,re=null!==(t=(null===K||void 0===K?void 0:K.information)&&(null===K||void 0===K?void 0:K.information.filter((function(e){return 1===e.column&&!0===e.includeForDisplay}))))&&void 0!==t?t:[],ne=null!==(i=(null===K||void 0===K?void 0:K.information)&&(null===K||void 0===K?void 0:K.information.filter((function(e){return 2===e.column&&!0===e.includeForDisplay}))))&&void 0!==i?i:[],ae=null!==(a=(null===K||void 0===K?void 0:K.columns)&&K.columns.filter((function(e){return!0===e.includeForDisplay})))&&void 0!==a?a:[],oe=(null===M||void 0===M||null===(o=M.title)||void 0===o?void 0:o.trim())!==(null===M||void 0===M||null===(l=M.courseTitle)||void 0===l?void 0:l.trim())?"".concat(null===M||void 0===M?void 0:M.courseTitle," ").concat(Object(x.isEmpty)(null===M||void 0===M||null===(d=M.title)||void 0===d?void 0:d.trim())?"":"(".concat(null===M||void 0===M?void 0:M.title,")")):null===M||void 0===M?void 0:M.courseTitle,se=null!==(u=null===M||void 0===M?void 0:M.courseFormat)&&void 0!==u?u:"",le=(null===M||void 0===M?void 0:M.startDate)?Object(N.c)(null===M||void 0===M?void 0:M.startDate,"MMM DD, YYYY"):"",ce=(null===M||void 0===M?void 0:M.endDate)?Object(N.c)(null===M||void 0===M?void 0:M.endDate,"MMM DD, YYYY"):"",de=(null===M||void 0===M?void 0:M.startTime)?null===M||void 0===M?void 0:M.startTime:"",ue=(null===M||void 0===M?void 0:M.endTime)&&(null===M||void 0===M?void 0:M.endTime)!==(null===M||void 0===M?void 0:M.startTime)?" - ".concat(null===M||void 0===M?void 0:M.endTime):"",he=null!==(v=null===M||void 0===M?void 0:M.timeZone)&&void 0!==v?v:"",ve=null!==(f=null===M||void 0===M?void 0:M.location)&&void 0!==f?f:"-",pe=null!==(m=null===M||void 0===M?void 0:M.room)&&void 0!==m?m:"-",fe=ce&&ce!==le?"".concat(le," - ").concat(ce):le,me=""===de&&""===ue?"-":ue?"".concat(de," ").concat(ue," ").concat(null===he?"":he):"".concat(de," ").concat(null===he?"":he),ye=null===(y=null!==(g=null===M||void 0===M?void 0:M.sessionInstructors)&&void 0!==g?g:[])||void 0===y?void 0:y.map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),ge=null!==(b=null===M||void 0===M||null===(S=M.sessionLicenses)||void 0===S?void 0:S.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==b?b:[],be=((null===K||void 0===K?void 0:K.blankSignatureLinesNumber)||0)+(null!==(E=null===ee||void 0===ee?void 0:ee.length)&&void 0!==E?E:0),Se=0;return n.a.createElement(hn.a,{fullScreen:!0,open:T,onClose:w},n.a.createElement(un.DialogHeader,{colorMode:"dark",titleBar:{title:"Attendance Sheet",onClose:w}}),n.a.createElement(un.DialogBody,{bgColor:"white"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left",stretchContent:!0},n.a.createElement(h.Box,{maxWidth:"400px"},n.a.createElement(h.SelectField,{label:"Attendance Forms",fullWidth:!0,id:"headerOptions",formikContext:!1,value:R,loading:void 0===_||0===R,onChange:function(e){var t=e.target.value;U(t)}},_&&(null===(I=_.attendanceForms)||void 0===I?void 0:I.map((function(e){return n.a.createElement(h.MenuItem,{key:e.attendanceFormId,value:e.attendanceFormId},e.name)})))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},void 0===K?n.a.createElement(gl,null):n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},(null===K||void 0===K?void 0:K.headerIncludeFirmLogo)&&!Object(x.isEmpty)(J)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement("img",{src:J,alt:"Logo",width:"320px",height:"80px"})),n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"h3",color:"default",align:"center"},(null===K||void 0===K?void 0:K.isSystem)?D:null===K||void 0===K?void 0:K.headerFirmName)),n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"h6",color:"default",align:"center"},null===K||void 0===K?void 0:K.headerTitle)),!Object(x.isEmpty)(null===K||void 0===K?void 0:K.headerText)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.TextEditorView,{model:L(null===K||void 0===K?void 0:K.headerText)}))))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0,disableGutters:!0},n.a.createElement(h.Box,{ml:2,mr:2},n.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center"},n.a.createElement(h.Hidden,{mdDown:0===re.length||0===ne.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),n.a.createElement(h.Grid,{item:!0,xs:0===ne.length?12:6,lg:0===ne.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:"form"},re.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Title:a=null!==oe&&void 0!==oe?oe:"";break;case p.o.Format:a=se;break;case p.o.Instructor:a=ye.length>0?ye.join(", "):"-";break;case p.o.Credits:a="[No Credits]";break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(n.a.Fragment,null,r===p.o.Credits&&(null===ge||void 0===ge?void 0:ge.length)>0?n.a.createElement(n.a.Fragment,null,ge&&ge.map((function(e){var t,i="",r=e&&e.licenseStatus===p.Dd.Pending,a=e&&e.licenseStatus===p.Dd.Denied;return n.a.createElement(h.Box,{key:"credits_".concat(e.licenseId),maxWidth:"350px"},null===(t=e.sessionLicenseCredits)||void 0===t?void 0:t.map((function(e){if(void 0!==e.creditValue&&e.creditValue>0){var t="".concat(e.creditName," ").concat(e.creditValue);i=i.concat(t,", ")}})),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==i?L(i.slice(0,-2)):"[No Credits]")}}),r&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Pending)")),a&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Denied)")))))}))):n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a)))))})))),n.a.createElement(h.Grid,{item:!0,xs:0===re.length?12:6,lg:0===re.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:"form"},ne.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Date:a=fe;break;case p.o.Location:a=ve;break;case p.o.Time:a=me;break;case p.o.Room:a=pe;break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a))))})))),n.a.createElement(h.Hidden,{mdDown:0===re.length||0===ne.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1})))))))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Table,{size:"medium",style:{tableLayout:"fixed"}},n.a.createElement(h.TableHead,{style:{border:"1px solid #000000"}},n.a.createElement(h.TableRow,{style:{border:"1px solid #000000"}},ae.map((function(e){var t="".concat(100/ae.length);return n.a.createElement(h.TableCell,{key:"".concat(e.type,"_").concat(e.sequence,"_col"),style:{border:"1px solid #000000",whiteSpace:"pre-wrap",overflowWrap:"break-word",padding:"8px",color:"black",width:"".concat(t,"%")}},n.a.createElement(h.Typography,null,n.a.createElement("b",null,e.label)))})))),n.a.createElement(h.TableBody,null,Array.from({length:be},(function(e,t){return t+1})).map((function(e){var t;return Se!==(null!==(t=null===ee||void 0===ee?void 0:ee.length)&&void 0!==t?t:0)?(ie=ee[Se],Se+=1):ie=void 0,n.a.createElement(h.TableRow,{key:"".concat(e,"_data_row"),style:{border:"1px solid #000000"}},ae.map((function(e){var t,i,r,a,o,s,l,c,d,u=e.type,v="";if(void 0!==ie)switch(u){case p.n.Name:v="".concat(null===(t=ie)||void 0===t?void 0:t.lastName,", ").concat(null===(i=ie)||void 0===i?void 0:i.firstName," ").concat((null===K||void 0===K?void 0:K.includeMiddleName)?null===(r=ie)||void 0===r?void 0:r.middleName:"");break;case p.n.Email:v="".concat(null===(a=ie)||void 0===a?void 0:a.email);break;default:v=""}return n.a.createElement(h.TableCell,{height:49,key:"".concat(e.type,"_data_row_cell"),style:{border:"1px solid #000000",whiteSpace:"pre-wrap",overflowWrap:"break-word",padding:"8px",color:"black"}},""!==v&&u===p.n.Name&&(null===(o=ie)||void 0===o?void 0:o.isInstructor)?n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},v," ",n.a.createElement("i",null,"(Instructor)")):n.a.createElement(n.a.Fragment,null,u===p.n.LicenseDetails&&(null===(s=ie)||void 0===s?void 0:s.userLicenseDetails)&&(null===(l=ie)||void 0===l?void 0:l.userLicenseDetails.length)>0?n.a.createElement(n.a.Fragment,null,(null===(c=ie)||void 0===c?void 0:c.userLicenseDetails)&&(null===(d=ie)||void 0===d?void 0:d.userLicenseDetails.map((function(t){return n.a.createElement(h.Column,{key:"".concat(e.type,"_data_row_cell_").concat(t.licenseId)},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(t.licenseName,": ").concat(""!==t.barNumber?L(t.barNumber):"-")}})))})))):n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},v)))})))}))))),!Object(x.isEmpty)(null===K||void 0===K?void 0:K.footerText)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.TextEditorView,{model:L(null===K||void 0===K?void 0:K.footerText)})))))),n.a.createElement(un.DialogFooter,{bgColor:"white"},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"default",size:"small",variant:"outlined",type:"reset",onClick:function(){return w()}},n.a.createElement(h.Typography,{variant:"overline",color:"inherit"},"Back"))),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{disabled:void 0===K,onClick:function(){window.open("/attendanceform/print/".concat(R,"/session/").concat(k),"certificate_".concat(R,"_").concat(k),"width=977px height=1006px")},color:"primary",variant:"contained",size:"small"},n.a.createElement(h.Typography,{variant:"overline",color:"inherit"},"Print"))))))})),Il=function(e){var t=e.open,i=e.evaluation,a=e.onClose,o=e.courseId,s=e.sessionId,l=e.instructors,d=Object(r.useState)(void 0),u=Object(c.a)(d,2),v=u[0],p=u[1],f=Object(r.useState)(void 0),m=Object(c.a)(f,2),y=m[0],g=m[1],b=Object(r.useState)(!0),S=Object(c.a)(b,2),E=S[0],I=S[1],O=Object(r.useState)(!0),C=Object(c.a)(O,2),x=C[0],j=C[1];Object(r.useEffect)((function(){t&&i&&(p((null===i||void 0===i?void 0:i.sections)&&(null===i||void 0===i?void 0:i.sections.length)>0&&(null===i||void 0===i?void 0:i.sections[0].questions)&&(null===i||void 0===i?void 0:i.sections[0].questions.length)>0?null===i||void 0===i?void 0:i.sections[0].questions[0]:void 0),g((null===i||void 0===i?void 0:i.sections)&&(null===i||void 0===i?void 0:i.sections.length)>0?null===i||void 0===i?void 0:i.sections[0].sectionId:void 0),I(!((null===i||void 0===i?void 0:i.sections)&&(null===i||void 0===i?void 0:i.sections.length)>0&&((null===i||void 0===i?void 0:i.sections.length)>1||(null===i||void 0===i?void 0:i.sections[0].questions)&&(null===i||void 0===i?void 0:i.sections[0].questions.length)>1))))}),[t,i]);var w=function(e){return{id:"tab-".concat(e),key:"tab-".concat(e),"aria-controls":"tabpanel-".concat(e)}},P=n.a.createElement(Br,{evaluation:i,currentQuestion:v,currentSectionId:y,instructors:l}),T=n.a.createElement(Fr,{evaluation:i,currentQuestion:v,currentSectionId:y,instructors:l}),A=function(e,t){return n.a.createElement(h.Box,{display:"flex",mt:5},n.a.createElement(h.Box,{mx:"auto"},n.a.createElement(h.Card,null,n.a.createElement(h.Box,{py:6,px:3},n.a.createElement(h.Box,{width:e,height:t},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.Box,{px:2.5,maxHeight:t-56,minHeight:t-56,overflow:"auto"},i&&T),n.a.createElement(h.CardActions,{style:{border:"none",backgroundColor:"#FAFAFA"}},n.a.createElement(h.Box,{py:1,display:"block",width:"100%"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Button,{fullWidth:!0,variant:"contained",color:"default",disabled:x,onClick:function(){return function(){var e,t,r,n,a,o,s,l,c,d,u,h,f=Object(J.a)({},v),m=null===i||void 0===i||null===(e=i.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===y}))[0];(null!==(t=f.sequence)&&void 0!==t?t:0)-1<1?(m=null===i||void 0===i||null===(s=i.sections)||void 0===s?void 0:s.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=m)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0],f=(null===(l=m)||void 0===l||null===(c=l.questions)||void 0===c?void 0:c.filter((function(e){var t,i;return e.sequence===(null===(t=m)||void 0===t||null===(i=t.questions)||void 0===i?void 0:i.length)}))[0])||void 0,g(null===(d=m)||void 0===d?void 0:d.sectionId),p(f)):(f=(null===(u=m)||void 0===u||null===(h=u.questions)||void 0===h?void 0:h.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=f)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0])||void 0,p(f));1!==(null===(r=m)||void 0===r?void 0:r.sequence)||1!==(null===(n=f)||void 0===n?void 0:n.sequence)&&0!==(null===(a=m)||void 0===a||null===(o=a.questions)||void 0===o?void 0:o.length)||j(!0),E&&I(!1)}()}},"Back")),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.Button,{fullWidth:!0,variant:"contained",color:"primary",disabled:E,onClick:function(){return function(){var e,t,r,n,a,o,s,l,c,d,u,h,f,m,b,S=Object(J.a)({},v),E=null===i||void 0===i||null===(e=i.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===y}))[0];E&&E.questions&&(null!==(t=S.sequence)&&void 0!==t?t:0)===E.questions.length?(E=null===i||void 0===i||null===(d=i.sections)||void 0===d?void 0:d.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=E)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)+1}))[0],S=(null===(u=E)||void 0===u||null===(h=u.questions)||void 0===h?void 0:h.filter((function(e){return 1===e.sequence}))[0])||void 0,g(null===(f=E)||void 0===f?void 0:f.sectionId),p(S)):(S=(null===(m=E)||void 0===m||null===(b=m.questions)||void 0===b?void 0:b.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=S)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)+1}))[0])||void 0,p(S));(null===(r=E)||void 0===r?void 0:r.sequence)!==(null===i||void 0===i||null===(n=i.sections)||void 0===n?void 0:n.length)||(null===(a=S)||void 0===a?void 0:a.sequence)!==(null===(o=E)||void 0===o||null===(s=o.questions)||void 0===s?void 0:s.length)&&0!==(null===(l=E)||void 0===l||null===(c=l.questions)||void 0===c?void 0:c.length)||I(!0),x&&j(!1)}()}},E?"Submit":"Next")))))))))))};return n.a.createElement(hn.a,{fullScreen:!0,open:t,onClose:a},n.a.createElement(h.Backdrop,{open:!i},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(un.DialogHeader,{colorMode:"dark",titleBar:{title:"Preview",onClose:a}}),n.a.createElement(un.DialogBody,{bgColor:"white"},n.a.createElement(h.Box,{textAlign:"right"},n.a.createElement(h.Button,{size:"small",key:"add",variant:"contained",color:"primary",onClick:function(){window.open("/evaluationform/print/".concat(null===i||void 0===i?void 0:i.evaluationId,"/").concat(o,"/").concat(s),"evaluationform_".concat(null===i||void 0===i?void 0:i.evaluationId),"width=1100px height=1006px")}},"Print")),n.a.createElement(h.Box,null,n.a.createElement(h.Tabs,{key:"tabs",components:[Object(J.a)(Object(J.a)({},w(0)),{},{label:"Web",render:n.a.createElement(n.a.Fragment,{key:"web"},n.a.createElement(h.Divider,null),i&&P)}),Object(J.a)(Object(J.a)({},w(1)),{},{label:"Tablet",render:n.a.createElement(n.a.Fragment,{key:"mobile"},n.a.createElement(h.Divider,null),A(600,760))}),Object(J.a)(Object(J.a)({},w(2)),{},{label:"Mobile",render:n.a.createElement(n.a.Fragment,{key:"mobile"},n.a.createElement(h.Divider,null),A(360,640))})],centered:!0}))))},Ol=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing;return Object(V.createStyles)({wrapper:{height:"100%",flex:"1 1 auto",display:"flex",flexDirection:"column"},customHeight:{"& > div":{height:"100%"}},whiteBg:{background:t.common.white},viewRegular:{paddingTop:"".concat(i(3),"px"),paddingBottom:"".concat(i(3),"px")},titleBar:{display:"flex",color:t.heading.main,alignItems:"center",padding:"".concat(i(4),"px 0px")},provider:{color:t.heading.light},header:{width:"100%",display:"flex",justifyContent:"space-between"},sessionDetails:{display:"flex",alignItems:"center",flex:1,marginRight:"".concat(i(4),"px")},actions:{flex:"1 1 auto",display:"flex"},buttonVertical:{marginLeft:"".concat(i(0),"px !important")},alignRightButtons:{display:"flex",justifyContent:"flex-end",alignItems:"center"}})})),Cl=Object(s.b)(null,(function(e){return{getSession:function(t){return e(function(e){return function(t){return q.S.getInstructorSessionById(e,void 0).then((function(e){return e})).catch((function(e){t(Object(bn.b)(e))}))}}(t))},getEvaluation:function(t){return e(br([t]))},getAllSessionInstructors:function(t){return e(gr(t))}}})),xl=Cl((function(e){var t=e.open,i=e.onClose,a=e.sessionId,o=e.getSession,s=e.onReload,l=e.getEvaluation,u=e.getAllSessionInstructors,v=Ol(),p=Object(r.useState)(),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)(),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(void 0),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(!1),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(Wr.useMdsAppContext)().routeList,J=Object(d.l)().pathname,F=null===L||void 0===L?void 0:L.find((function(e){return J===e.path||J.startsWith(e.path)})),R=Object(B.useTheme)(),U=Object(B.useMediaQuery)(R.breakpoints.up("sm"),{noSsr:!0}),G=Object(B.useMediaQuery)(R.breakpoints.down("sm"),{noSsr:!0}),q=void 0===m,M=null===m||void 0===m?void 0:m.provider,z=null===m||void 0===m?void 0:m.title,W=function(){var e=Object(r.useState)(null),t=Object(c.a)(e,2),i=t[0],n=t[1];return[i,Object(r.useCallback)((function(e){null!==e&&n(e.getBoundingClientRect())}),[])]}(),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)(!0),H=Object(c.a)($,2),K=H[0],Q=H[1];return Object(r.useEffect)((function(){a>0&&o(a).then((function(e){y(e),null!==e.evaluationId&&(l(e.evaluationId).then((function(e){e.length>0?E(e[0]):E(void 0)})),u(a).then((function(e){x(e)})))}))}),[o,a,y,u,l]),n.a.createElement(h.Dialog,{fullScreen:!0,open:t,onClose:i},n.a.createElement(un.DialogHeader,{titleBar:{title:"Session Details",onClose:i},colorMode:"dark"}),n.a.createElement(un.DialogBody,{maxWidth:!1,className:v.customHeight,disableGutters:!0},n.a.createElement(h.Box,{className:v.wrapper},n.a.createElement(h.Container,{maxWidth:!1},n.a.createElement(h.Box,{className:v.titleBar},n.a.createElement(h.Box,{mr:2},(null===F||void 0===F?void 0:F.icon)&&n.a.createElement(n.a.Fragment,null,q?n.a.createElement(h.Skeleton,{variant:"circle",width:40,height:40}):"branding"===(null===F||void 0===F?void 0:F.icon.source)?n.a.createElement(h.BrandingIcon,{icon:null===F||void 0===F?void 0:F.icon.value,size:"md"}):"system"===(null===F||void 0===F?void 0:F.icon.source)?n.a.createElement(h.SystemIcon,{icon:null===F||void 0===F?void 0:F.icon.value,color:"inherit",size:"lg"}):null===F||void 0===F?void 0:F.icon.value)),n.a.createElement(h.Column,{flex:1},n.a.createElement(h.Typography,{variant:"subtitle1",component:"h1",className:v.provider},q?n.a.createElement(h.Skeleton,{width:U?100:60}):M),n.a.createElement(h.Box,{className:Object(Va.default)(Object(Sa.a)({},v.actions,U)),width:"100%"},n.a.createElement("div",{className:v.sessionDetails,ref:Y},"string"===typeof z?n.a.createElement(h.Typography,{variant:U?"h5":"h6",component:M?"h2":"h1"},K?n.a.createElement(h.Tooltip,{title:z},n.a.createElement(h.Box,null,n.a.createElement(h.TruncatedMarkup,{lines:U?1:2,width:(null===_||void 0===_?void 0:_.width)?(null===_||void 0===_?void 0:_.width)-60:0,ellipsis:"...",onTruncate:function(e){return Q(e)}},z))):z):n.a.createElement(h.Typography,{variant:U?"h5":"h6",component:M?"h2":"h1"},q?n.a.createElement(h.Skeleton,{width:U?400:200}):z),n.a.createElement(h.Box,{ml:1.5},q?n.a.createElement(h.Skeleton,{variant:"circle",width:10,height:10}):n.a.createElement(h.CircleBadge,{size:"xs",type:void 0===m?void 0:(null===m||void 0===m?void 0:m.cancelledDate)?"error":"success",variant:"filled"}))),n.a.createElement(h.Box,{className:Object(Va.default)(Object(Sa.a)({},v.alignRightButtons,!U))},n.a.createElement(h.ButtonGroup,{orientation:G?"vertical":"horizontal",variant:"outlined",color:"primary"},n.a.createElement(h.Button,{variant:"outlined",size:"small",color:"primary",onClick:function(){return D(!0)},disabled:!S},"View Evaluation"),n.a.createElement(h.Button,{variant:"outlined",size:"small",color:"primary",onClick:function(){return T(!0)},className:Object(Va.default)(Object(Sa.a)({},v.buttonVertical,G))},"View Attendance Sheet")))))),n.a.createElement(Ms,{session:null!==m&&void 0!==m?m:{}})),n.a.createElement(h.Box,{m:4}),void 0!==m?n.a.createElement(h.Box,{className:v.whiteBg,height:"100%"},n.a.createElement(h.Container,{className:v.viewRegular,maxWidth:!1},n.a.createElement(yl,{session:m,onSessionUpdate:function(e){return s(e)}}))):n.a.createElement(n.a.Fragment,null))),P&&n.a.createElement(El,{open:P,onClose:function(){return T(!1)},sessionId:+a}),k&&n.a.createElement(Il,{open:k,evaluation:S,courseId:null===m||void 0===m?void 0:m.courseId,sessionId:a,instructors:C,onClose:function(){D(!1)}}))})),jl=Object(s.b)((function(e){var t;return{firmName:null===(t=e.generalSettings.firm)||void 0===t?void 0:t.name,firmLicenses:e.licenses.firmLicenses,loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(Vr.c)(t))},getInstructorSessions:function(t){return e(zs(t))}}})),wl={sortBy:"-startDate",page:1,pageSize:10},Pl=jl(Object($a.a)((function(e){var t,i,a,o=e.getScreenDescription,s=e.getInstructorSessions,l=(e.firmLicenses,e.loggedUser),d=Object(r.useState)(!1),u=Object(c.a)(d,2),v=u[0],f=u[1],m=Object(r.useState)(),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(),E=Object(c.a)(S,2),I=E[0],O=E[1],C=l&&l.userRole,x=Object(r.useState)(Object(J.a)(Object(J.a)({},wl),{},{userId:null!==(t=l&&l.userId)&&void 0!==t?t:0})),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)("AllSessions"),A=Object(c.a)(T,2),k=A[0],D=A[1],F=Object(r.useState)(!1),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(0),q=Object(c.a)(G,2),M=q[0],z=q[1];Object(r.useEffect)((function(){C&&o(p.Md.InstructorView).then((function(e){b(e)}))}),[o,C]),Object(r.useEffect)((function(){l&&(O(void 0),s(Object(J.a)(Object(J.a)({},w),{},{userId:l.userId})).then((function(e){O(e)})))}),[s,O,w,l]);var W=function(e){return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{mb:.1,mr:.5,textAlign:"center",style:{width:"20px"}},e.icon),e.label)},V=function(e){z(e),U(!0)},_=[{Header:"",accessor:"startDate",width:"auto",wrapText:!0,Cell:function(e){var t=e.row.original,i=t.sessionId,r=t.sessionTypeId,a=t.startTime,o=t.endTime,s=t.timezone,l=t.startDate,c=t.endDate,d=t.location,u=t.room,v=t.courseFormat,f=t.courseFormatPortalCategory,m=t.sessionInstructors,y=t.title,g=t.courseTitle,b=t.isPublished,S=t.cancelledDate,E=(r===p.oe.Multipart||r===p.oe.Recurring)&&y!==g;return n.a.createElement(h.Row,null,n.a.createElement(h.Box,{m:.5,flex:0,minWidth:80},n.a.createElement(h.CalendarBadge,{date:null!==l&&void 0!==l?l:new Date})),n.a.createElement(h.Column,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Link,{onClick:function(){return V(null!==i&&void 0!==i?i:0)}},E&&n.a.createElement(n.a.Fragment,null,g),!E&&(y||"Session: ".concat(Object(N.c)(l,"MMM DD, YYYY")))),void 0!==S?n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Chip,{variant:"outlined",color:"error",size:"small",label:"Canceled"})):!b&&n.a.createElement(h.Box,{ml:1},n.a.createElement(h.Chip,{variant:"outlined",color:"secondary",size:"small",label:"Not Published"}))),y!==g&&n.a.createElement(h.Typography,{variant:"caption"}," (",y,")"),W({icon:n.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"}),label:n.a.createElement(h.Typography,{variant:"body1",color:"default"},a?"".concat(a):"",o&&a!==o?" - ".concat(o," "):"",a||o?" ".concat(null===s?"":s,"; "):"",Object(N.c)(l,"MMM DD, YYYY")||"",c&&Object(N.c)(c)!==Object(N.c)(l)&&" - ".concat(Object(N.c)(c,"MMM DD, YYYY")||""))}),d&&W({icon:n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"}),label:n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},d," ",u)}),W({icon:n.a.createElement(kn,{type:"duotone",color:"primary",format:null!==f&&void 0!==f?f:""}),label:n.a.createElement(h.Typography,{variant:"body1"},v)}),m&&m.length>0&&W({icon:n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:n.a.createElement(h.Typography,{variant:"body1"},m.join(", "))})))},disableSortBy:!0},{Header:"",accessor:"Participants",width:"auto",align:"right",Cell:function(e){var t=e.row.original,i=t.registeredParticipantCount,r=t.tentativeParticipantCount,a=t.validatedParticipantCount,o=t.pendingParticipantCount,s=t.disqualifiedParticipantCount,l=t.inProgressParticipantCount,c=t.isOnlineLearning,d=null!==a&&void 0!==a?a:0,u=null!==r&&void 0!==r?r:0,v=null!==i&&void 0!==i?i:0,p=null!==o&&void 0!==o?o:0,f=null!==s&&void 0!==s?s:0,m=null!==l&&void 0!==l?l:0;return n.a.createElement(h.Grid,null,n.a.createElement(h.Column,{crossAxisAlignment:"right"},n.a.createElement(h.Expanded,{mb:.75},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{mr:1},v&&v>99?n.a.createElement(h.Tooltip,{title:"Registered Count: ".concat(v&&v)},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"primary",colorMode:"dark",avatar:"R",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Registered Count"},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"primary",colorMode:"dark",avatar:"R",label:v&&v,size:"small",width:"xs"})))),n.a.createElement(h.Expanded,null,c&&c?n.a.createElement(n.a.Fragment,null,f&&f>99?n.a.createElement(h.Tooltip,{title:"Disqualified Count: ".concat(f&&f)},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"error",colorMode:"dark",avatar:"D",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Disqualified Count"},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"error",colorMode:"dark",avatar:"D",label:f&&f,size:"small",width:"xs"})))):n.a.createElement(n.a.Fragment,null,u&&u>99?n.a.createElement(h.Tooltip,{title:"Tentative Count: ".concat(u&&u)},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"default",colorMode:"dark",avatar:"T",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Tentative Count"},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"default",colorMode:"dark",avatar:"T",label:u&&u,size:"small",width:"xs"}))))))),n.a.createElement(h.Expanded,null,n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{mr:1},d&&d>99?n.a.createElement(h.Tooltip,{title:"Validated Count: ".concat(d&&d)},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"success",colorMode:"dark",avatar:"V",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Validated Count"},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"success",colorMode:"dark",avatar:"V",label:d&&d,size:"small",width:"xs"})))),n.a.createElement(h.Expanded,null,c&&c?n.a.createElement(n.a.Fragment,null,m&&m>99?n.a.createElement(h.Tooltip,{title:"In Progress Count: ".concat(m&&m)},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"IP",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"In Progress Count"},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"IP",label:m&&m,size:"small",width:"xs"})))):n.a.createElement(n.a.Fragment,null,p&&p>99?n.a.createElement(h.Tooltip,{title:"Pending Count: ".concat(p&&p)},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"P",label:"99+",size:"small",width:"xs"}))):n.a.createElement(h.Tooltip,{title:"Pending Count"},n.a.createElement("span",null,n.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"P",label:p&&p,size:"small",width:"xs"})))))))))},disableSortBy:!0},{Header:"",accessor:"Credits",disableSortBy:!0,Cell:function(e){var t=e.row,i=t.original,r=i.sessionLicenses;i.sessionId;return function(e,t,i,r){return n.a.createElement(h.Expanded,{flex:1},n.a.createElement(h.Column,null,(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(n.a.Fragment,null,null===t||void 0===t?void 0:t.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})).map((function(e){return n.a.createElement(h.Row,{key:"".concat(e.licenseId,"_credit_status")},n.a.createElement(h.Typography,{key:e.licenseId,variant:"body1"},e.name),e.licenseStatus===p.Dd.Pending&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary"},"\xa0 Pending Approval"),e.licenseStatus===p.Dd.Denied&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary"},"\xa0 Approval Denied"))})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement(js,{session:r},n.a.createElement(h.Link,null,"CREDIT DETAILS")))))))}(0,r||[],0,t.original)}},{Header:"",accessor:"Actions",disableSortBy:!0,align:"right",Cell:function(e){var t=e.row.original.sessionId;return n.a.createElement(Ea,{menu:[{label:"View",icon:n.a.createElement(h.SystemIcon,{icon:"Visibility"}),disable:!1,onClick:function(){V(null!==t&&void 0!==t?t:0)}}]})}}],Y=[{name:"All",key:"AllSessions"},{name:"Upcoming",key:"UpcomingSessionsOnly"},{name:"Previous",key:"PreviousSessionsOnly"}];return n.a.createElement(h.Screen,{titleBar:{title:(g&&""!==g.title?g.title:"Instructor View")||"Instructor View",description:g?n.a.createElement(h.Column,null,null!==g.shortDescription&&""!==g.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(g.shortDescription)}),null!==g.text&&""!==g.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return f(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:8}),n.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"}),n.a.createElement(h.Grid,{item:!0,lg:12})),n.a.createElement(Nn.a,{advanced:!0,id:"sessionId",key:"courseSessionsGrid",columns:_,data:I&&I.sessions,withRowSelection:!1,loading:void 0===I,onNavigate:function(e,t){P(Object(J.a)(Object(J.a)({},w),{},{page:e,pageSize:t}))},totalRecords:null!==(i=null===I||void 0===I?void 0:I.recordCount)&&void 0!==i?i:0,pageIndex:null!==(a=null===w||void 0===w?void 0:w.page)&&void 0!==a?a:1,tableActions:n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3,key:"savedFilter",stretchContent:!0},n.a.createElement(h.Box,null,n.a.createElement(h.SelectField,{variant:"outlined",value:k||"",startAdornment:"View:",fullWidth:!0,onChange:function(e){!function(e){var t=Array();t.push(e),P(Object(J.a)(Object(J.a)({},w),{},{page:1,searchCriteria:t,sortBy:"UpcomingSessionsOnly"===e?"startDate":"-startDate"}))}(e.target.value),D(e.target.value)},formikContext:!1,dense:!0},Y&&Y.map((function(e){return n.a.createElement(h.MenuItem,{key:e.key,value:e.key},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"body1"},"".concat(e.name," Sessions")))))}))))))}),n.a.createElement(dn,{open:v,onClose:function(){return f(!1)},title:(g&&""!==g.title?g.title:"Instructor View")||"Instructor View",description:null===g||void 0===g?void 0:g.text}),R&&n.a.createElement(xl,{onClose:function(){return U(!1)},open:R,sessionId:M,onReload:function(e){return z(e)}}))}))),Tl=i(327),Al=i(170),Nl=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardHeader:{padding:"".concat(i(2),"px ").concat(i(2),"px ").concat(i(0),"px ").concat(i(2),"px")},cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[800],padding:"".concat(i(0),"px ").concat(i(2),"px ").concat(i(1),"px ").concat(i(2),"px")}),chipDefault:{backgroundColor:t.grey[600]},learningPlanDescription:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":4,"-webkit-box-orient":"vertical",maxHeight:i(11),minWidth:i(7.25)},divider:{height:i(9.375),backgroundColor:t.grey[300],marginRight:8}})})),kl=Object(s.b)((function(){return{}}),(function(e){return{downloadFile:function(t){return e(_i(t))}}}))((function(e){var t,i=e.downloadFile,a=e.materialList,o=Object(r.useState)(!1),s=Object(c.a)(o,2),l=s[0],d=s[1];return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.CardActions,null,n.a.createElement(h.Row,{flex:1,crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:1,mr:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Materials")),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.IconButton,{onClick:function(){return d(!l)}},n.a.createElement(h.SystemIcon,{icon:l?"CollapseVertical":"ExpandVertical",size:"md"}))))),n.a.createElement(h.Collapse,{in:l},n.a.createElement(h.CardContent,null,(t=a||[])?n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===t||void 0===t?void 0:t.map((function(e){var t,r,a;return n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,stretchContent:!0,key:e.learningPlanMaterialId},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1},n.a.createElement(Qn,{fileExtension:null!==(t=null===(r=e.libraryFile)||void 0===r?void 0:r.extension)&&void 0!==t?t:"",color:"primary",type:"duotone",size:"sm"})),n.a.createElement(h.Box,null,n.a.createElement(h.Link,{onClick:function(){var t;if("link"===(null===(t=e.libraryFile)||void 0===t?void 0:t.type)){var r,n,a=null===(r=e.libraryFile)||void 0===r?void 0:r.url;(null===(n=a)||void 0===n?void 0:n.match(/^https?:\/\//i))||(a="http://"+a),window.open(a,"_blank")}else i("".concat(e.fileId))}},null===(a=e.libraryFile)||void 0===a?void 0:a.title))))}))):null)))})),Dl=function(e){var t,i,r,a=e.learningPlan,o=e.onShowDetailDrawer,s=e.onRemovePlan,l=e.hasDeletePermission,c=e.showAllDescription,d=e.isSelfRegistered,u=a&&(null===a||void 0===a||null===(t=a.learningPlanCompetencies)||void 0===t?void 0:t.map((function(e){return e.name}))),v=a&&(null===a||void 0===a||null===(i=a.learningPlanTags)||void 0===i?void 0:i.map((function(e){return e.name}))),f=0===(null===a||void 0===a?void 0:a.status)?"default":1===(null===a||void 0===a?void 0:a.status)?"info":2===(null===a||void 0===a?void 0:a.status)?"success":4===(null===a||void 0===a?void 0:a.status)?"secondary":"error",m=null===a||void 0===a||null===(r=a.learningPlanMaterials)||void 0===r?void 0:r.filter((function(e){return e.isPublic})),y=Nl(),g=function(e){return 100===e?"success":e>0?"info":"default"};return n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",status:f},n.a.createElement(h.CardHeader,{classes:{root:y.cardHeader,title:y.cardTitle},title:n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"bold"},null===a||void 0===a?void 0:a.title)),d&&n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Chip,{label:"Self-Registered",variant:"outlined",avatar:n.a.createElement(h.Avatar,{sizes:"small",customBackgroundColor:"transparent"},n.a.createElement(h.SystemIcon,{icon:"Self-Registered",color:"secondary",size:"sm"})),color:"secondary",colorMode:"dark",size:"small",width:"auto"}))),action:n.a.createElement(h.Wrap,{alignment:"center"},(null===a||void 0===a?void 0:a.status)===p.rd.InProgress?n.a.createElement(h.Expanded,null,n.a.createElement(h.Box,{mr:2},n.a.createElement(h.SystemIcon,{icon:"Repeat",color:"primary",size:"md"}))):(null===a||void 0===a?void 0:a.status)===p.rd.Completed?n.a.createElement(h.Expanded,null,n.a.createElement(h.Box,{mr:2},n.a.createElement(h.SystemIcon,{icon:"Success",color:"success",size:"md"}))):(null===a||void 0===a?void 0:a.status)===p.rd.PastDue?n.a.createElement(h.Expanded,null,n.a.createElement(h.Box,{mr:2},n.a.createElement(h.SystemIcon,{icon:"Error",color:"error",size:"md"}))):""),subheader:""}),n.a.createElement(h.CardContent,{classes:{root:y.cardContent}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:7,lg:9},n.a.createElement(h.Box,{marginRight:1},n.a.createElement(h.Typography,{variant:"subtitle2"},(null===a||void 0===a?void 0:a.startDate)||(null===a||void 0===a?void 0:a.endDate)?"".concat((null===a||void 0===a?void 0:a.startDate)?Object(N.c)(null===a||void 0===a?void 0:a.startDate,"MMM DD, YYYY"):"No Date Specified"," - ").concat((null===a||void 0===a?void 0:a.endDate)?Object(N.c)(null===a||void 0===a?void 0:a.endDate,"MMM DD, YYYY"):"No Date Specified"):void 0!==(null===a||void 0===a?void 0:a.timeframeOfCompletion)?"No Date Specified":"Set Timeframe"),n.a.createElement(h.Box,{marginTop:-2.5,marginBottom:2},n.a.createElement(h.Typography,{variant:"body2",className:Object(Va.default)(Object(Sa.a)({},y.learningPlanDescription,!c))},n.a.createElement(h.TextEditorView,{model:L(null===a||void 0===a?void 0:a.description)}))),a&&n.a.createElement(h.Box,null,n.a.createElement(Kn,{courseCompetencies:u||[],courseTags:v||[]})))),n.a.createElement(h.Grid,{item:!0,xs:5,lg:3,alignment:"top-right"},n.a.createElement(h.Row,{mainAxisAlignment:"end"},n.a.createElement(h.Divider,{orientation:"vertical",variant:"middle",className:y.divider}),n.a.createElement(h.Box,null,["Mandatory Courses","Learner's Choice","Activities"].map((function(e,t){return n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end",key:"".concat(null===a||void 0===a?void 0:a.learningPlanId,"-").concat(e)},n.a.createElement(h.Column,{crossAxisAlignment:"right",mainAxisAlignment:"space-evenly"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body2",color:"default"},e))),n.a.createElement(h.Column,{crossAxisAlignment:"left",mainAxisAlignment:"space-around"},n.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",ml:1},0===t?n.a.createElement(h.Chip,{width:"xs",label:a&&a.mandatoryCount&&0!==a.mandatoryCount&&null!==a.mandatoryStatus?"".concat(null===a||void 0===a?void 0:a.mandatoryStatus,"%"):"N/A",size:"small",colorMode:"dark",className:Object(Va.default)(Object(Sa.a)({},y.chipDefault,"default"===g((null===a||void 0===a?void 0:a.mandatoryStatus)||0))),color:g((null===a||void 0===a?void 0:a.mandatoryStatus)||0)}):1===t?n.a.createElement(h.Chip,{width:"xs",label:a&&a.learnersChoiceCount&&0!==a.learnersChoiceCount&&null!==a.learnersChoiceStatus?"".concat(null===a||void 0===a?void 0:a.learnersChoiceStatus,"%"):"N/A",size:"small",colorMode:"dark",className:Object(Va.default)(Object(Sa.a)({},y.chipDefault,"default"===g((null===a||void 0===a?void 0:a.learnersChoiceStatus)||0))),color:g((null===a||void 0===a?void 0:a.learnersChoiceStatus)||0)}):n.a.createElement(h.Chip,{width:"xs",label:a&&a.activityCount&&0!==a.activityCount&&null!==a.activityStatus?"".concat(null===a||void 0===a?void 0:a.activityStatus,"%"):"N/A",size:"small",colorMode:"dark",className:Object(Va.default)(Object(Sa.a)({},y.chipDefault,"default"===g((null===a||void 0===a?void 0:a.activityStatus)||0))),color:g((null===a||void 0===a?void 0:a.activityStatus)||0)}))))}))))))),m&&m.length>0&&n.a.createElement(kl,{materialList:m}),n.a.createElement(h.CardActions,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,null,n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Column,null,n.a.createElement(h.Box,{mr:1},n.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"Calendar"}))),n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1",align:"left"},function(){var e=new Date;return(null===a||void 0===a?void 0:a.status)===p.rd.Completed?null!==(null===a||void 0===a?void 0:a.completedDate)?"Completed: ".concat(Object(N.c)(null===a||void 0===a?void 0:a.completedDate,"MMM DD, YYYY")):"No Completion Date":(null===a||void 0===a?void 0:a.endDate)0||R&&(null===R||void 0===R?void 0:R.length)>0,G=Jl();Object(r.useEffect)((function(){j(!0),I(void 0),F(null),a&&o?l(a,g).then((function(e){var t,i,r,n=null!==(t=null===e||void 0===e||null===(i=e.activityParticipants)||void 0===i||null===(r=i.filter((function(e){return e.userId===g}))[0])||void 0===r?void 0:r.completionDate)&&void 0!==t?t:null;F(n),I(e),j(!1)})):(I(void 0),j(!1))}),[l,a,g,o]);var q={initialValues:{completionDate:J,downloadedMaterialArr:[]},validationSchema:Object(yn.object)().shape({completionDate:Object(yn.date)().max(new Date,"Completion date may not be a future date.").required("Completion date is required").nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar for completion of the activity"))}),onSubmit:function(e,t){var i=e.completionDate;A(!0),u(g,null!==i?Object(N.e)(i):i,a,(null===f||void 0===f?void 0:f.learningPlanId)||y).then((function(e){A(!1),t.setSubmitting(!1),0===e.length&&s()}))}};return n.a.createElement(h.SideDrawer,{size:"md",open:o,onClose:s,colorMode:"dark"},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:x?n.a.createElement(h.Skeleton,{width:"400px",height:"32px"}):E&&n.a.createElement(h.Box,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"h5"},E.title)))}}),n.a.createElement(sn.SideDrawerBody,null,x?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement("br",null),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):n.a.createElement(mn.Formik,{initialValues:q.initialValues,validationSchema:q.validationSchema,onSubmit:q.onSubmit},(function(e){var t;return n.a.createElement(h.Form,{id:"activityDetails",formikContext:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},E&&E.description&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextEditorView,{model:L(E.description)})),U&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(Kn,{courseCompetencies:B||[],courseTags:R})),E&&E.activityMaterials&&E.activityMaterials.filter((function(e){return e.isPublic})).length>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"body1",className:G.title},"Materials")),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{background:"grey",variant:"outlined",style:{height:175,maxHeight:175,overflow:"auto"}},n.a.createElement(Ll.a,null,n.a.createElement(h.Grid,{container:!0,spacing:1},E.activityMaterials.map((function(t){var i,r;return t.isPublic&&n.a.createElement(h.Grid,{item:!0,lg:3,stretchContent:!0},n.a.createElement(h.Box,{m:.5},n.a.createElement(h.Card,{variant:"outlined",background:"default"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1},n.a.createElement(Qn,{fileExtension:null!==(i=t.fileExtension)&&void 0!==i?i:"",color:"primary",type:"duotone",size:"sm"})),n.a.createElement(h.Column,null,n.a.createElement(h.Link,{onClick:function(){var i=t.fileId||0;d("".concat(i)).then((function(){var t=e.getFieldProps("downloadedMaterialArr").value,r=t;t.includes(i)||(r.push(i),e.setFieldValue("downloadedMaterialArr",r))}))}},n.a.createElement(h.Typography,{variant:"body1",color:"primary"},n.a.createElement(h.Tooltip,{title:null!==(r=t.fileName)&&void 0!==r?r:""},n.a.createElement("div",null,n.a.createElement(h.TruncatedMarkup,{lines:1,width:200,ellipsis:"..."},t.fileName))))),n.a.createElement(h.Typography,{variant:"caption"},Object(N.g)(t.fileSize||0))))))))})))))),E.isSelfValidateAllowed&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"body1"},"Please read the above materials before attesting to completion of the activity."),n.a.createElement(h.Typography,{variant:"body1"},"Submission will not be possible until all documents have been opened."))),E&&E.isSelfValidateAllowed&&g===(null===p||void 0===p?void 0:p.userId)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"start",flex:1},n.a.createElement(h.Typography,{variant:"body1"},"I completed the activity described above on \xa0"),n.a.createElement(h.DateTimeField,{id:"completionDate",type:"date",label:"",required:!0,formikContext:!0,dense:!0,helperText:"",format:Object(N.h)()}),n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"submit",width:"xl",loading:T||x,disabled:!e.dirty||e.getFieldProps("downloadedMaterialArr").value.length!==(null===E||void 0===E||null===(t=E.activityMaterials)||void 0===t?void 0:t.filter((function(e){return e.isPublic})).length)},"Submit")),n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"start",flex:1},n.a.createElement(h.Typography,{color:"error",variant:"caption"},e.errors.completionDate)))))}))))})),Bl=i(658),Rl=i(657),Ul=Object(Bl.a)((function(e){return Object(Rl.a)({listItem:{border:"1px",borderStyle:"solid",borderColor:e.palette.grey[100]}})})),Gl=function(e){var t=e.count,i=e.requirements,a=e.type,o=e.onClick,s=Ul(),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)(void 0),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)(void 0),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(),w=Object(c.a)(j,2),P=w[0],T=w[1];return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.List,{subheader:n.a.createElement(h.Box,{className:s.listItem},n.a.createElement(h.ListSubheader,{disableSticky:!0,colorMode:"main"},n.a.createElement(h.Box,{pt:2,pb:2},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:1,alignment:"center-left"},n.a.createElement(h.Avatar,{customBackgroundColor:"#ffffff"},n.a.createElement(h.SystemIcon,{icon:1===a?"Cem-Mandatory":2===a?"Cem-LearnersChoice":"Activities",size:"md",color:"primary"}))),n.a.createElement(h.Grid,{item:!0,xs:7,alignment:"center-left"},n.a.createElement(h.Typography,{variant:"subtitle1"},1===a?"Mandatory Courses":2===a?"Learner's Choice":"Activities")),n.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"semi-bold",component:"span"},"Complete ".concat(null!==t&&void 0!==t?t:null===i||void 0===i?void 0:i.length," out of ").concat(null===i||void 0===i?void 0:i.length)))))))},null===i||void 0===i?void 0:i.map((function(e,t){return n.a.createElement(h.Box,{className:s.listItem,pt:2,pb:2,key:"list-item-".concat(t.toString())},n.a.createElement(h.ListItem,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Box,null,n.a.createElement(h.Link,{underline:"none",onClick:function(){var t,i;o?o():3!==e.requirementType?(t=e.learningPlanId,i=e.requirementId,y(i),v(!0),T(t)):function(e,t){T(e),E(t),x(!0)}(e.learningPlanId,e.requirementId)}},n.a.createElement(h.Typography,{variant:"body1"},e.name)))),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:9,alignment:"center-right"},n.a.createElement(h.Row,{mainAxisAlignment:"end"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"body1"},e.startDate&&!e.isCompletedWithinRequiredDate&&n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(h.Chip,{label:"Completed Outside of Required Date",size:"small",color:"warning",variant:"outlined"})))))),n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"center-right"},n.a.createElement(h.Row,{mainAxisAlignment:"end"},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"body1"},e.startDate&&e.isCompletedWithinRequiredDate?Object(N.c)(e.startDate,"MMM DD, YYYY"):"Incomplete")),n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"body1"},e.startDate&&e.endDate&&e.isCompletedWithinRequiredDate&&" - ".concat(Object(N.c)(e.endDate,"MMM DD, YYYY")))))))))))}))),n.a.createElement(aa,{courseId:m,categories:[],open:u,onClose:function(){return v(!1)},learningPlanId:P}),n.a.createElement(Fl,{activityId:S,open:C,onClose:function(){return x(!1)},learningPlanId:P}))},ql=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,learningPlan:e.learningPlans.selectedLearningPlan}}),(function(e){return{getLearningPlanParticipantRequirements:function(t,i){return e(Al.c(t,i))}}}))((function(e){var t=e.getLearningPlanParticipantRequirements,i=e.learningPlan,a=e.onClose,o=e.open,s=e.userId,l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)(),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)(),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(),O=Object(c.a)(I,2),C=O[0],x=O[1];return Object(r.useEffect)((function(){o&&(v(!0),s&&(null===i||void 0===i?void 0:i.learningPlanId)&&t(s,null===i||void 0===i?void 0:i.learningPlanId).then((function(e){var t,i,r;y(null===(t=e.learningPlanParticipantRequirements)||void 0===t?void 0:t.filter((function(e){return 1===e.requirementType}))),E(null===(i=e.learningPlanParticipantRequirements)||void 0===i?void 0:i.filter((function(e){return 2===e.requirementType}))),x(null===(r=e.learningPlanParticipantRequirements)||void 0===r?void 0:r.filter((function(e){return 3===e.requirementType})))}),[]).then((function(){return v(!1)})))}),[t,i,s,o]),n.a.createElement(ln.a,{size:"lg",open:o,onClose:function(){return a()}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"LearningPlans"},title:"Learning Plan"}}),n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,bgColor:"white"},u?n.a.createElement(Ia,{type:"filter-drawer"}):n.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},n.a.createElement(Dl,{learningPlan:i,showAllDescription:!0}),2!==(null===i||void 0===i?void 0:i.type)&&((null===m||void 0===m?void 0:m.length)||0)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Gl,{requirements:m,type:1})),1!==(null===i||void 0===i?void 0:i.type)&&((null===S||void 0===S?void 0:S.length)||0)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Gl,{count:null===i||void 0===i?void 0:i.requiredCourses,requirements:S,type:2})),((null===C||void 0===C?void 0:C.length)||0)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Gl,{requirements:C,type:3})),0===((null===m||void 0===m?void 0:m.length)||0)&&0===((null===S||void 0===S?void 0:S.length)||0)&&0===((null===C||void 0===C?void 0:C.length)||0)&&n.a.createElement(h.Expanded,{maxWidth:430,alignSelf:"center",mt:2},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No courses or activities associated with this learning plan.")))))})),Ml=i(101),zl=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardHeader:{padding:"".concat(i(2),"px ").concat(i(3),"px ").concat(i(0),"px ").concat(i(3),"px")},cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{padding:"".concat(i(0),"px ").concat(i(3),"px ").concat(i(1),"px ").concat(i(3),"px"),display:"flex"}),learningPlanDescription:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":4,"-webkit-box-orient":"vertical",maxHeight:i(11),minWidth:i(7.25)},cardActions:{background:t.grey[50]},selfRegisterButton:{background:"#ffffff"}})})),Wl=Object(Bl.a)((function(e){var t=e.spacing,i=e.palette;return Object(Rl.a)({list:{padding:t(0)},listItem:{borderWidth:"".concat(t(0),"px ").concat(t(0),"px ").concat(t(.125),"px ").concat(t(0),"px"),borderStyle:"solid",borderColor:i.grey[100],background:"#ffffff"}})})),Vl=function(e){var t=e.count,i=e.learningPlanId,a=e.requirements,o=e.type,s=Wl(),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)(void 0),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)(void 0),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1];return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.List,{className:s.list,subheader:n.a.createElement(h.Box,{className:s.listItem},n.a.createElement(h.ListSubheader,{disableSticky:!0,colorMode:"main"},n.a.createElement(h.Box,{pt:2,pb:2},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,xs:1},n.a.createElement(h.Avatar,{customBackgroundColor:"#ffffff"},n.a.createElement(h.SystemIcon,{icon:1===o?"Cem-Mandatory":2===o?"Cem-LearnersChoice":"Activities",size:"md",color:"primary"}))),n.a.createElement(h.Grid,{item:!0,xs:7,alignment:"center-left"},n.a.createElement(h.Typography,{variant:"subtitle1"},1===o?"Mandatory Courses":2===o?"Learner's Choice":"Activities")),n.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"semi-bold",component:"span"},"Complete ".concat(null!==t&&void 0!==t?t:null===a||void 0===a?void 0:a.length," out of ").concat(null===a||void 0===a?void 0:a.length)))))))},3!==o?null===a||void 0===a?void 0:a.map((function(e){return n.a.createElement(h.ListItem,{className:s.listItem,key:"list-item-".concat(e.courseId)},n.a.createElement(h.Box,{ml:1.5,pt:.5,pb:.5},n.a.createElement(h.Link,{underline:"none",onClick:function(){var t;t=e.courseId,y(t),v(!0)}},n.a.createElement(h.Typography,{variant:"body1"},e.name))))})):null===a||void 0===a?void 0:a.map((function(e){return n.a.createElement(h.ListItem,{className:s.listItem,key:"list-item-".concat(e.activityId)},n.a.createElement(h.Box,{ml:1.5,pt:.5,pb:.5},n.a.createElement(h.Link,{underline:"none",onClick:function(){var t;t=e.activityId,E(t),x(!0)}},n.a.createElement(h.Typography,{variant:"body1"},e.name))))}))),n.a.createElement(aa,{courseId:m,categories:[],open:u,onClose:function(){return v(!1)},learningPlanId:i}),n.a.createElement(Fl,{activityId:S,open:C,onClose:function(){return x(!1)},learningPlanId:i}))},_l=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,requestBody:e.learningPlans.requestBody,catalogRequestBody:e.learningPlans.catalogRequestBody}}),(function(e){return{getLearningPlanRequirements:function(t){return e(Al.d(t))},addLearningPlanParticipants:function(t,i){return e(Al.a(t,[i]))},setRequestBody:function(t){return e(Ml.d(t))},setCatalogRequestBody:function(t){return e(Ml.a(t))}}}))((function(e){var t=e.getLearningPlanRequirements,i=e.learningPlan,a=e.onClose,o=e.open,s=e.userId,l=e.addLearningPlanParticipants,d=e.requestBody,u=e.setRequestBody,v=e.catalogRequestBody,f=e.setCatalogRequestBody,m=e.hasManagePermission,y=e.hasDeletePermission,g=Object(r.useState)(!1),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],D=N[1];Object(r.useEffect)((function(){o&&(E(!0),(null===i||void 0===i?void 0:i.learningPlanId)&&t(null===i||void 0===i?void 0:i.learningPlanId).then((function(e){var t,i;x(null===e||void 0===e||null===(t=e.learningPlanCourses)||void 0===t?void 0:t.filter((function(e){return 1===e.type}))),T(null===e||void 0===e||null===(i=e.learningPlanCourses)||void 0===i?void 0:i.filter((function(e){return 2===e.type}))),D(null===e||void 0===e?void 0:e.learningPlanActivities),E(!1)})))}),[t,i,o]);return n.a.createElement(ln.a,{size:"lg",open:o,onClose:function(){return a()}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"LearningPlans"},title:"Learning Plan Details"}}),n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,bgColor:"default"},S?n.a.createElement(Ia,{type:"filter-drawer"}):n.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},n.a.createElement(h.Expanded,{mb:2},s&&n.a.createElement(Yl,{learningPlan:i,showAllDescription:!0,onUserRegister:function(){return function(){var e=new p.pd({userId:s,isIncluded:!0,criteriaMet:[],participantCriteriaStatus:p.jb.SelfRegistered});i.learningPlanId&&s&&l(i.learningPlanId,e).then((function(){f(Object(J.a)({},v)),u(Object(J.a)({},d)),a()}))}()},hasManagePermission:m,hasDeletePermission:y,showDetailDrawer:!1,isRegistered:!1,isRegistrationClosed:!1})),2!==(null===i||void 0===i?void 0:i.type)&&((null===C||void 0===C?void 0:C.length)||0)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Vl,{requirements:C,type:1,learningPlanId:i.learningPlanId})),1!==(null===i||void 0===i?void 0:i.type)&&((null===P||void 0===P?void 0:P.length)||0)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Vl,{count:null===i||void 0===i?void 0:i.requiredCourses,requirements:P,type:2,learningPlanId:i.learningPlanId})),((null===k||void 0===k?void 0:k.length)||0)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Vl,{requirements:k,type:3,learningPlanId:i.learningPlanId})),0===((null===C||void 0===C?void 0:C.length)||0)&&0===((null===P||void 0===P?void 0:P.length)||0)&&0===((null===k||void 0===k?void 0:k.length)||0)&&n.a.createElement(h.Expanded,{maxWidth:430,alignSelf:"center"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No courses or activities associated with this learning plan.")))))})),Yl=function(e){var t,i,a=e.learningPlan,o=e.showAllDescription,s=e.onUserRegister,l=e.onUserCancelRegistration,d=e.hasManagePermission,u=e.hasDeletePermission,v=e.showDetailDrawer,f=e.isRegistered,m=e.isRegistrationClosed,y=zl(),g=Object(r.useState)(!1),b=Object(c.a)(g,2),S=b[0],E=b[1],I=void 0===(null===a||void 0===a?void 0:a.status)||null===(null===a||void 0===a?void 0:a.status)?void 0:0===(null===a||void 0===a?void 0:a.status)?"default":1===(null===a||void 0===a?void 0:a.status)?"info":2===(null===a||void 0===a?void 0:a.status)?"success":4===(null===a||void 0===a?void 0:a.status)?"secondary":"error",O=a&&(null===a||void 0===a||null===(t=a.learningPlanCompetencies)||void 0===t?void 0:t.map((function(e){return e.name}))),C=a&&(null===a||void 0===a||null===(i=a.learningPlanTags)||void 0===i?void 0:i.map((function(e){return e.name})));return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Card,{variant:"outlined",status:I},void 0!==a&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.CardHeader,{classes:{root:y.cardHeader,title:y.cardTitle},title:n.a.createElement(h.Typography,{variant:"subtitle1"},null===a||void 0===a?void 0:a.title),subheader:""}),n.a.createElement(h.CardContent,{classes:{root:y.cardContent}},n.a.createElement(h.Box,{width:"100%"},n.a.createElement(h.Typography,{variant:"subtitle2",weight:"bold"},a.timeframeOfCompletion===p.ud.CalendarBased?"".concat(a.startDate?Object(N.c)(a.startDate):"No Date Specified"," - ").concat(a.endDate?Object(N.c)(a.endDate):"No Date Specified"):a.timeframeOfCompletion===p.ud.TimeToComplete?"Complete Within ".concat(null===a||void 0===a?void 0:a.duration," ").concat(a&&a.duration&&a.duration>1?p.Ib[(null===a||void 0===a?void 0:a.durationType)||0]:a&&a.durationType&&1===a.durationType?"Day":a&&a.durationType&&2===a.durationType?"Week":"Month"," From Date Added"):"No Date Specified"),n.a.createElement(h.Spacer,{size:1.5,vertical:!0}),n.a.createElement(h.Box,{marginTop:-2.5},n.a.createElement(h.Typography,{variant:"body2",className:Object(Va.default)(Object(Sa.a)({},y.learningPlanDescription,!o))},n.a.createElement(h.TextEditorView,{model:""!==a.description?L(a.description):"No description available."}))),a&&n.a.createElement(h.Box,null,n.a.createElement(Kn,{courseCompetencies:O||[],courseTags:C||[]}))))),n.a.createElement(h.CardActions,{classes:{root:y.cardActions}},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},v&&n.a.createElement(h.Expanded,{mt:1,mb:1},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Button,{variant:"text",color:"primary",size:"small",onClick:function(){return E(!0)}},n.a.createElement(h.Typography,{variant:"body2"},"Show Learning Plan Details")))),n.a.createElement(h.Expanded,{mt:1,mb:1,textAlign:"right"},m?n.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Button,{className:y.selfRegisterButton,size:"small",variant:"contained",color:"default",disabled:!0,type:"button",width:"xl"},n.a.createElement(h.Typography,{variant:"body2"},"Registration Closed"))),f&&n.a.createElement(h.Expanded,{flex:0,ml:2.5},n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:"Registered"}))):f?n.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:0,mr:2.5},n.a.createElement(h.Button,{variant:"text",color:"primary",size:"small",onClick:function(){l&&l()},disabled:!u},n.a.createElement(h.Typography,{variant:"body2"},"Cancel Registration"))),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:"Registered"}))):n.a.createElement(h.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return s()},disabled:!d},n.a.createElement(h.Typography,{variant:"body2"},"Self-Register"))))),(null===a||void 0===a?void 0:a.learningPlanMaterials)&&(null===a||void 0===a?void 0:a.learningPlanMaterials.length)>0&&n.a.createElement(kl,{materialList:null===a||void 0===a?void 0:a.learningPlanMaterials})),v&&a&&n.a.createElement(_l,{open:S,onClose:function(){return E(!1)},learningPlan:a,hasManagePermission:d,hasDeletePermission:u}))},$l=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,requestBody:e.learningPlans.requestBody,catalogRequestBody:e.learningPlans.catalogRequestBody}}),(function(e){return{getLearningPlanCatalog:function(){return e(Al.b())},addLearningPlanParticipants:function(t,i){return e(Al.a(t,[i]))},setRequestBody:function(t){return e(Ml.d(t))},setCatalogRequestBody:function(t){return e(Ml.a(t))},getTags:function(){return e(La())},getCompetencies:function(){return e(Ca())}}}))((function(e){var t,i,a=e.onClose,o=e.open,s=e.getLearningPlanCatalog,l=e.userId,d=e.addLearningPlanParticipants,u=e.setRequestBody,v=e.requestBody,f=e.catalogRequestBody,m=e.setCatalogRequestBody,y=e.getTags,g=e.getCompetencies,b=Object(r.useState)(),S=Object(c.a)(b,2),I=S[0],O=S[1],C=Object(r.useState)(0),x=Object(c.a)(C,2),j=x[0],w=x[1],P=E(p.Kd.ManagePortalLearningPlans),T=E(p.Kd.DeletePortalLearningPlans),A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(r.useState)(),F=Object(c.a)(L,2),R=F[0],U=F[1],G=Object(r.useState)(""),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(!0),V=Object(c.a)(W,2),_=V[0],Y=V[1];Object(r.useEffect)((function(){var e={participantId:l,filterBy:[],searchCriteria:[],sortBy:"title",page:1,pageSize:10};m(Object(J.a)({},e))}),[l,m]),Object(r.useEffect)((function(){if(o&&_){var e,t=null!==(e=(null===f||void 0===f?void 0:f.filterBy)&&(null===f||void 0===f?void 0:f.filterBy[0]))&&void 0!==e?e:"";t=t.replace("Title[contains]:",""),z(t),Y(!1)}}),[o,f,_]),Object(r.useEffect)((function(){o&&(O(void 0),s().then((function(e){O(e.learningPlanCatalog),w(e.recordCount)})))}),[s,o,f]),Object(r.useEffect)((function(){o&&(D(void 0),y().then((function(e){D(e.tags)})))}),[y,o]),Object(r.useEffect)((function(){o&&(U(void 0),g().then((function(e){U(e.competencies)})))}),[g,o]);var $=Object(B.useDebounce)((function(e){!function(e){var t=Array();""!==e?(t.push("Title[contains]:".concat(e)),m(Object(J.a)(Object(J.a)({},f),{},{filterBy:t}))):m(Object(J.a)(Object(J.a)({},f),{},{filterBy:[]}))}(e)}),500),H=function(e,t,i){var r,n=Array(),a=null===f||void 0===f||null===(r=f.searchCriteria)||void 0===r?void 0:r.find((function(t){return t.includes("".concat(e))}));a&&a.split(": ")[1].split(",").forEach((function(e){i&&i.forEach((function(i){parseInt(e,10)===i["".concat(t)]&&n.push(i)}))}));return n},K={initialValues:{learningPlanType:null!==(t=H("LearningPlanType","id",[{name:"Mandatory",id:1},{name:"Learner's Choice",id:2},{name:"Mandatory + Learner's Choice",id:3}]))&&void 0!==t?t:[],learningPlanCompetencies:R?H("LearningPlanCompetency[or]","competencyId",R):[],learningPlanTags:null!==(i=H("LearningPlanTag[or]","tagId",k))&&void 0!==i?i:[]},validationSchema:Object(yn.object)().shape({learningPlanType:Object(yn.array)().notRequired(),learningPlanCompetencies:Object(yn.array)().notRequired(),learningPlanTags:Object(yn.array)().notRequired()}),onSubmit:function(e,t){var i=e.learningPlanType,r=e.learningPlanCompetencies,n=e.learningPlanTags,a=Array();if(i.length>0){var o="LearningPlanType: ";i.forEach((function(e){var t,i=null!==(t=e.id)&&void 0!==t?t:0;o=o.concat(i.toString(),",")})),a.push(o.slice(0,-1))}if(r.length>0){var s="LearningPlanCompetency[or]: ";r.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;s=s.concat(i.toString(),",")})),a.push(s.slice(0,-1))}if(n.length>0){var l="LearningPlanTag[or]: ";n.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;l=l.concat(i.toString(),",")})),a.push(l.slice(0,-1))}m(Object(J.a)(Object(J.a)({},f),{},{sortBy:"title",searchCriteria:a})),t.setSubmitting(!1)}};return n.a.createElement(ln.a,{size:"lg",open:o,onClose:function(){return a()}},n.a.createElement(sn.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"LearningPlans"},title:"Learning Plan Catalog"}}),n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,bgColor:"default"},void 0!==k&&void 0!==R?n.a.createElement(n.a.Fragment,null,n.a.createElement(mn.Formik,{initialValues:K.initialValues,validationSchema:K.validationSchema,onSubmit:K.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{id:"learningPlanCatalogFilter"},n.a.createElement(h.Grid,{container:!0,spacing:"form",alignment:"center-left"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},n.a.createElement(h.ComboBox,{fullWidth:!0,dense:!0,loadResult:void 0===R,options:null!==R&&void 0!==R?R:[],multiple:!0,label:"Competencies",id:"learningPlanCompetencies",limitTags:1,onChange:e.submitForm})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},n.a.createElement(h.ComboBox,{fullWidth:!0,dense:!0,loadResult:void 0===k,options:null!==k&&void 0!==k?k:[],multiple:!0,label:"Tags",id:"learningPlanTags",limitTags:1,onChange:e.submitForm})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:1},(e.values.learningPlanTags.length>=1||e.values.learningPlanCompetencies.length>=1)&&n.a.createElement(h.IconButton,{color:"secondary",component:"span",onClick:function(){return e.setFieldValue("learningPlanType",[]),e.setFieldValue("learningPlanCompetencies",[]),e.setFieldValue("learningPlanTags",[]),void m(Object(J.a)(Object(J.a)({},f),{},{searchCriteria:[]}))}},n.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"ClearFilters"}))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:3},n.a.createElement(h.TextField,{dense:!0,placeholder:"Search",type:"text",startAdornment:n.a.createElement(h.InputAdornment,{position:"start"},n.a.createElement(h.SystemIcon,{icon:"Search"})),onChange:function(e){z(e.target.value),$(e.target.value)},formikContext:!1,fullWidth:!0,value:M}))))})),n.a.createElement(h.Spacer,{size:2,vertical:!0})):n.a.createElement(h.Grid,{container:!0,spacing:"form",alignment:"center-left"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},n.a.createElement(h.TextField,{dense:!0,type:"text",formikContext:!1,fullWidth:!0,loading:!0})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},n.a.createElement(h.TextField,{dense:!0,type:"text",formikContext:!1,fullWidth:!0,loading:!0})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:1},n.a.createElement(h.IconButton,{color:"default",component:"span"},n.a.createElement(h.SystemIcon,{size:"sm",icon:"ClearFilters"}))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:3},n.a.createElement(h.TextField,{dense:!0,type:"text",formikContext:!1,fullWidth:!0,loading:!0}))),n.a.createElement(h.Grid,{container:!0,spacing:"card"},void 0===I?n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,null,n.a.createElement(Ia,{type:"filter-drawer"}))):0===(null===I||void 0===I?void 0:I.length)?n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{width:300},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found."))):n.a.createElement(n.a.Fragment,null,I.map((function(e){return n.a.createElement(h.Grid,{item:!0,xs:12,key:e.learningPlanId},l&&n.a.createElement(Yl,{learningPlan:e,showAllDescription:!1,onUserRegister:function(){return e.learningPlanId&&function(e){var t=new p.pd({userId:l,isIncluded:!0,criteriaMet:[],participantCriteriaStatus:p.jb.SelfRegistered});l&&d(e,t).then((function(){u(Object(J.a)({},v)),m(Object(J.a)({},f))}))}(e.learningPlanId)},hasManagePermission:P,showDetailDrawer:!0,isRegistered:!1,isRegistrationClosed:!1,hasDeletePermission:T}))})),(null===I||void 0===I?void 0:I.length)>0&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Pagination,{count:Math.ceil((j||0)/((null===f||void 0===f?void 0:f.pageSize)||10)),defaultPage:(null===f||void 0===f?void 0:f.page)||1,onChange:function(e,t){return function(e){m(Object(J.a)(Object(J.a)({},f),{},{page:e}))}(t)}}))))))})),Hl=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500]}),toggleButton:{minWidth:i(37.5)}})})),Kl=i(182),Ql=Object(s.b)((function(e){return{learningPlans:e.learningPlans.learningPlans,loggedUser:e.users.loggedUser,isLoading:e.learningPlans.learningPlanLoading,requestBody:e.learningPlans.requestBody,courseFilters:e.portalSettings.courseFilters}}),(function(e){return{getLearningPlans:function(t){return e(Kl.i(t))},setSelectedLearningPlan:function(t){return e(Ml.e(t))},setRequestBody:function(t){return e(Ml.d(t))},getScreenDescription:function(t){return e(Object(Vr.c)(t))},deleteLearningPlanParticipant:function(t){return e(Kl.b([t]))},showConfirmation:function(t){return e(Object($n.b)(t))},getCourseFilters:function(){return e(Object(Vr.b)())}}})),Zl=Object(Tl.a)(Ql((function(e){var t=e.getLearningPlans,i=e.learningPlans,a=e.loggedUser,o=e.getScreenDescription,s=e.deleteLearningPlanParticipant,l=e.showConfirmation,d=e.setSelectedLearningPlan,u=e.isLoading,v=e.setRequestBody,f=e.requestBody,m=e.getCourseFilters,y=e.courseFilters,g=Hl(),b=a&&a.userRole,S=Object(r.useState)([]),I=Object(c.a)(S,2),O=I[0],C=I[1],x=Object(r.useState)(!1),j=Object(c.a)(x,2),w=j[0],T=j[1],N=Object(r.useState)(!1),k=Object(c.a)(N,2),D=k[0],F=k[1],B=Object(r.useState)("AllStatuses"),R=Object(c.a)(B,2),U=R[0],G=R[1],q=Object(r.useState)([]),M=Object(c.a)(q,2),z=M[0],W=M[1],V=Object(r.useState)(),_=Object(c.a)(V,2),Y=_[0],$=_[1],H=Object(r.useState)(0),K=Object(c.a)(H,2),Q=K[0],Z=K[1],X=Object(r.useState)(!1),ee=Object(c.a)(X,2),te=ee[0],ie=ee[1],re=E(p.Kd.DeletePortalLearningPlans);Object(r.useEffect)((function(){var e={userId:Number(null===a||void 0===a?void 0:a.userId),filterBy:[],searchCriteria:["Active"],sortBy:"-endDate",page:1,pageSize:10};v(e)}),[v,a]),Object(r.useEffect)((function(){(null===a||void 0===a?void 0:a.userId)&&t(Number(null===a||void 0===a?void 0:a.userId)).then((function(e){Z(e)}))}),[t,a,f]),Object(r.useEffect)((function(){b&&o(p.Md.LearningPlans).then((function(e){return $(e)}))}),[o,b]),Object(r.useEffect)((function(){b&&null===y&&m()}),[m,b,y]);var ne=[{name:"All Statuses",key:"AllStatuses"},{name:"Not Started",key:"NotStarted"},{name:"In Progress",key:"InProgress"},{name:"Completed",key:"Completed"},{name:"Past Due",key:"PastDue"},{name:"Excluded",key:"Excluded"}],ae=function(e){var t,i,r=[];e.statusFilter&&(null===(i=Object.entries(p.rd))||void 0===i||i.forEach((function(i){i[0]===e.statusFilter&&(t=i[1])})),G("".concat(e.statusFilter)),void 0!==t&&r.push("Status: ".concat(t)));e.criteriaFilter&&(W(e.criteriaFilter),e.criteriaFilter.forEach((function(e){return r.push(e)}))),v(Object(J.a)(Object(J.a)({},f),{},{page:e.page||1,searchCriteria:r.length?r:["Active"]}))},oe=function(e){ae({statusFilter:"".concat(e.target.value),criteriaFilter:z})};return n.a.createElement(h.Screen,{maxWidth:"lg",titleBar:{title:(Y&&""!==Y.title?Y.title:"Learning Plans")||"Learning Plans",description:Y?n.a.createElement(h.Column,null,null!==Y.shortDescription&&""!==Y.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(Y.shortDescription)}),null!==Y.text&&""!==Y.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return F(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"}))),sideSection:n.a.createElement(h.Box,{alignSelf:"center"},n.a.createElement(h.Button,{color:"primary",variant:"contained",onClick:function(){return ie(!0)}},"Learning Plan Catalog"))}},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:6,lg:6},"Excluded"===U?n.a.createElement(h.Box,{maxWidth:300},n.a.createElement(h.Tooltip,{title:"No longer required to complete",placement:"right-start"},n.a.createElement("span",null,n.a.createElement(h.SelectField,{fullWidth:!0,dense:!0,value:U,variant:"outlined",formikContext:!1,onChange:oe,startAdornment:"Status:"},ne.map((function(e,t){return n.a.createElement(h.MenuItem,{key:"menuItem-".concat(t),value:e.key},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},e.name))))})))))):n.a.createElement(h.Box,{maxWidth:300},n.a.createElement(h.SelectField,{fullWidth:!0,dense:!0,value:U,variant:"outlined",formikContext:!1,onChange:oe,startAdornment:"Status:"},ne.map((function(e,t){return n.a.createElement(h.MenuItem,{key:"menuItem-status-".concat(t),value:e.key},n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},e.name))))}))))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:6,lg:6,alignment:"center-right",justifyContent:"flex-end"},n.a.createElement(h.ToggleButtonGroup,{className:g.toggleButton,stretch:!0,dense:!0,value:O,options:[{label:"Assigned",value:"assigned"},{label:"Self-Registered",value:"selfRegistered"}],formikContext:!1,onChange:function(e,t){0!==t.length&&2!==t.length||ae({statusFilter:U,criteriaFilter:["Active"]}),1===t.length&&"assigned"===t[0]&&ae({statusFilter:U,criteriaFilter:["Active","ExcludeSelfRegistered"]}),1===t.length&&"selfRegistered"===t[0]&&ae({statusFilter:U,criteriaFilter:["Active","SelfRegistered"]}),C(t)}})),u?n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",status:"default"},n.a.createElement(h.CardHeader,{classes:{title:g.cardTitle,subheader:g.cardSubheader},title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{classes:{root:g.cardContent},noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"})),n.a.createElement(h.CardActions,null,n.a.createElement(h.Skeleton,{width:"30%"})))):n.a.createElement(n.a.Fragment,null,0===(null===i||void 0===i?void 0:i.length)&&n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,null,n.a.createElement(h.Box,{width:"100%",minHeight:"64px",bgcolor:"#F1F1F1"},n.a.createElement(h.Box,{ml:1},n.a.createElement(A.a,{title:""}))),n.a.createElement(h.Box,{width:"100%"},n.a.createElement(P.a,null,n.a.createElement(h.Typography,{variant:"body1",align:"center"},"NO LEARNING PLAN RECORDS FOUND")))))),null===i||void 0===i?void 0:i.map((function(e){return n.a.createElement(Dl,{learningPlan:e,onShowDetailDrawer:function(){d(e),T(!0)},onRemovePlan:e.criteriaStatus===p.jb.SelfRegistered?function(){return d(t=e),void l({message:"Remove this plan from your selected plans?",title:"Delete Participant",OnConfirm:function(){t.participantId&&s(t.participantId).then((function(){v(Object(J.a)({},f))}))}});var t}:void 0,isSelfRegistered:e.criteriaStatus===p.jb.SelfRegistered,hasDeletePermission:re,showAllDescription:!1,key:e.learningPlanId})})),i&&(null===i||void 0===i?void 0:i.length)>0&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Pagination,{count:Math.ceil((Q||0)/((null===f||void 0===f?void 0:f.pageSize)||10)),defaultPage:(null===f||void 0===f?void 0:f.page)||1,onChange:function(e,t){return function(e){v(Object(J.a)(Object(J.a)({},f),{},{page:e}))}(t)}})))),n.a.createElement(ql,{open:w,onClose:function(){return T(!1)}}),n.a.createElement(dn,{open:D,onClose:function(){return F(!1)},title:(Y&&""!==Y.title?Y.title:"Learning Plans")||"Learning Plans",description:null===Y||void 0===Y?void 0:Y.text}),n.a.createElement($l,{open:te,onClose:function(){return ie(!1)}}))}))),Xl=Object(r.createContext)({removeFromCollection:!1,setRemoveFromCollection:function(){},updateCollection:!1,setUpdateCollection:function(){}}),ec=function(){return Object(r.useContext)(Xl)};function tc(){tc=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var ic=_s(Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{getCollection:function(t){return e(function(e){return function(t){return q.m.getCollection(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},getUserCourseCollectionByCollectionId:function(t){return e(function(e){return function(t){return q.m.getAllCourseCollectionByCollectionId(void 0,p.hd.fromJS(e)).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},removeCourseFromCollection:function(t,i){return e(hr(t,i))},showNotification:function(t,i){return e(M.a({message:t,variant:i}))},showConfirmation:function(t){return e(Object($n.b)(t))},updateCollection:function(t){return e(function(e){return function(t){return q.m.updateCollection(void 0,p.xe.fromJS(e)).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},validateCollection:function(t,i){return e(function(e,t){return function(i,r){var n=r().users.loggedUser,a=null===n||void 0===n?void 0:n.userId;return q.m.validateCollection(void 0,p.Ue.fromJS(new p.Ue({userId:a,collectionIds:e,title:t}))).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))}}}))((function(e){var t,i,a=e.collectionId,o=e.getCollection,s=e.getUserCourseCollectionByCollectionId,d=e.onClose,u=e.open,v=e.showConfirmation,p=e.showNotification,f=e.removeCourseFromCollection,m=e.updateCollection,y=e.userId,g=e.validateCollection,b=Object(Ws.useDataGridContext)(),S=b.setSelectedIdList,E=b.selectedIdList,I=ec(),O=I.setRemoveFromCollection,C=I.setUpdateCollection,x=$s(E),j=Object(r.useState)({}),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(r.useState)(),F=Object(c.a)(L,2),B=F[0],R=F[1],U=Object(r.useState)(0),G=Object(c.a)(U,2),q=G[0],M=G[1],z=Object(r.useState)(!1),W=Object(c.a)(z,2),V=W[0],_=W[1];Object(r.useEffect)((function(){var e=!1;return D(void 0),e||o(a).then((function(e){D(e)})),function(){e=!0}}),[a,o]),Object(r.useEffect)((function(){if(k){var e={userId:y,collectionId:null===k||void 0===k?void 0:k.collectionId,page:1,pageSize:10,filterBy:[],searchCriteria:[]};T(e)}}),[k,y]),Object(r.useEffect)((function(){R(void 0),M(0),s(P).then((function(e){R((null===e||void 0===e?void 0:e.courses)||[]),M((null===e||void 0===e?void 0:e.recordCount)||0)}))}),[s,P]);var Y=function(e,t){T(Object(J.a)(Object(J.a)({},P),{},{page:e,pageSize:t}))},$=function(){var e=Object(l.a)(tc().mark((function e(){return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x.selectedIds.length>0?v({message:"Are you sure you want to remove the selected course".concat(x.selectedIds.length>1?"s":""," from the collection?"),title:"Remove Course".concat(x.selectedIds.length>1?"s":"","(").concat(x.selectedIds.length,")"),OnConfirm:function(){f(a,x.selectedIds).then((function(){S({}),R(void 0),O&&O(!0),s(P).then((function(e){R((null===e||void 0===e?void 0:e.courses)||[]),M((null===e||void 0===e?void 0:e.recordCount)||0)})),p("The courses selected has been successfully removed from the collection.","success")})),O&&O(!1)}}):p("No valid record(s) to delete.","warning");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){return s(Object(J.a)(Object(J.a)({},P),{},{pageSize:-1})).then((function(e){var t;return null===(t=e.courses)||void 0===t?void 0:t.map((function(e){return e.courseId}))}))},K=[{Header:"Title",accessor:"title",Cell:function(e){var t=e.row,i=e.cell,r=t.original;return n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1"},i.value),n.a.createElement(h.Typography,{variant:"caption"},r.providerName))}},{Header:"Action",accessor:"courseId",disableSortBy:!0,align:"center",Cell:function(e){var t=e.row.original.courseId;return n.a.createElement(h.IconButton,{onClick:function(){return t&&function(e){v({message:"Are you sure you want to remove the course from the collection?",title:"Remove Course",OnConfirm:function(){f(a,[e]).then((function(){R(void 0),O&&O(!0),s(P).then((function(e){R((null===e||void 0===e?void 0:e.courses)||[]),M((null===e||void 0===e?void 0:e.recordCount)||0)})),p("The course has been successfully removed from the collection.","success")}))}}),O&&O(!1)}(t)}},n.a.createElement(h.SystemIcon,{icon:"Delete",color:"primary",type:"duotone"}))}}],Q={initialValues:{collectionTitle:null!==(t=null===k||void 0===k?void 0:k.title)&&void 0!==t?t:"",description:null!==(i=null===k||void 0===k?void 0:k.description)&&void 0!==i?i:""},validationSchema:Object(yn.object)().shape({collectionTitle:Object(yn.string)().required("Collection title is a required field.").max(500,"Collection title must not exceed 500 characters.").test("check-duplicate-name","Collection title is already taken.",function(){var e=Object(l.a)(tc().mark((function e(t){var i;return tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",g([null!==(i=null===k||void 0===k?void 0:k.collectionId)&&void 0!==i?i:0],t).then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).trim(),description:Object(yn.string)().max(500,"Description must not exceed 500 characters.")}),onSubmit:function(e,t){var i=e.collectionTitle,r=e.description,n={userId:y,collectionId:null===k||void 0===k?void 0:k.collectionId,collectionTitle:i,description:r};V||(_(!0),v({message:"Are you sure you want to update the collection?",title:"Update Collection",OnConfirm:function(){m(n).then((function(){C&&C(!0),p("The collection has been successfully updated.","success"),d()})).catch((function(e){throw d(),e})),C&&C(!1)}})),_(!1),t.setSubmitting(!1)}};return n.a.createElement(ln.a,{open:u,onClose:d,size:"md"},n.a.createElement(mn.Formik,{initialValues:Q.initialValues,validationSchema:Q.validationSchema,onSubmit:Q.onSubmit,enableReinitialize:!0},(function(e){var t,i,r=e.dirty,a=[{label:"Details",component:n.a.createElement(n.a.Fragment,{key:1},n.a.createElement(sn.SideDrawerBody,null,k?n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{id:"collectionTitle",required:!0,label:"Collection Title",fullWidth:!0})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{id:"description",label:"Description",fullWidth:!0,multiline:!0,rows:"5",rowsMax:"6"}))):n.a.createElement(Ia,{type:"filter-drawer"})),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6},n.a.createElement(h.Button,{color:"default",variant:"outlined",fullWidth:!0,onClick:function(){return d()}},"Cancel")),n.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6},n.a.createElement(h.Button,{color:"primary",type:"submit",variant:"contained",fullWidth:!0,disabled:!r},"Save")))))},{label:"Courses",component:n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,key:2,bgColor:"white"},n.a.createElement(Nn.a,{id:"courseId",columns:K||[],data:B||[],onSelectAll:H,advanced:!0,withRowSelection:!0,loading:void 0===B,totalRecords:null!==q&&void 0!==q?q:0,pageIndex:null!==(t=null===P||void 0===P?void 0:P.page)&&void 0!==t?t:1,pageSize:null!==(i=null===P||void 0===P?void 0:P.pageSize)&&void 0!==i?i:10,onNavigate:Y,tableActions:n.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(h.Button,{color:"primary",size:"small",onClick:function(){return $()}},"Remove from Collection"))}))}];return n.a.createElement(h.Form,{id:"update-collection"},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:"Edit Collection"},tabs:a}))})))}))),rc=Object(V.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500],display:"flex",alignItems:"flex-end"}),iconEnabled:{color:t.grey[700]},iconDisabled:{color:t.grey[300]},tooltip:{margin:i(0)}})})),nc=Object(s.b)((function(e){var t;return{loggedUserId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{deleteCollection:function(t){return e(function(e){return function(t){return q.m.deleteCollection(void 0,new p.qb({collectionId:e})).then((function(){return!0})).catch((function(e){return t(Object(M.b)(e)),!1}))}}(t))},getUserCourseCollection:function(){return e((function(e,t){var i=t().users.loggedUser,r=null===i||void 0===i?void 0:i.userId;return q.m.getUserCourseCollection(r,void 0).then((function(e){return e})).catch((function(t){throw e(Object(M.b)(t)),t}))}))},showConfirmation:function(t){return e(Object($n.b)(t))},showNotification:function(t,i){return e(M.a({message:t,variant:i}))}}}))((function(e){var t=e.deleteCollection,i=e.getUserCourseCollection,a=e.loggedUserId,o=e.showConfirmation,s=e.showNotification,l=ec(),d=l.removeFromCollection,u=l.updateCollection,v=rc(),p=Object(r.useState)(),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)(!1),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(0),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(!1),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(r.useState)(),J=Object(c.a)(L,2),F=J[0],B=J[1],R=Object(V.useTheme)(),U=Object(V.useMediaQuery)(R.breakpoints.down("xs"));Object(r.useEffect)((function(){y(void 0),i().then((function(e){y(e)}))}),[k,i,d,u,a]);return n.a.createElement(n.a.Fragment,null,void 0===m?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement(h.Skeleton,{width:"20%"}))),n.a.createElement(h.Grid,{container:!0,spacing:"card"},[1,2,3,4,5,6].map((function(e){return n.a.createElement(h.Grid,{key:e,item:!0,xs:12,sm:U?12:6,lg:U?12:4,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",status:"default"},n.a.createElement(h.CardHeader,{classes:{title:v.cardTitle,subheader:v.cardSubheader},title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{classes:{root:v.cardContent},noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"})),n.a.createElement(h.CardActions,null,n.a.createElement(h.Skeleton,{width:"30%"}))))})))):0===m.length?n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,justify:"center"},n.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No collections found."))))):null===m||void 0===m?void 0:m.map((function(e){var i,r,a,l,c=(null===e||void 0===e||null===(i=e.userCourseCollections)||void 0===i?void 0:i.length)||0;return n.a.createElement(h.Box,{mb:6,key:null===e||void 0===e?void 0:e.collectionId},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{mb:1,flex:0},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},""===(null===e||void 0===e?void 0:e.collectionDescription)?n.a.createElement("b",null,null===e||void 0===e?void 0:e.collectionTitle):n.a.createElement(h.Tooltip,{title:n.a.createElement("pre",{className:v.tooltip},null===e||void 0===e?void 0:e.collectionDescription)||""},n.a.createElement("b",null,null===e||void 0===e?void 0:e.collectionTitle)),n.a.createElement(h.Box,{component:"span",ml:.5},"(",c," ",c>1?"items":" item",")"))),n.a.createElement(h.Expanded,{mb:1,flex:0,ml:2},n.a.createElement(h.Typography,{variant:"subtitle2"},n.a.createElement(h.Row,null,n.a.createElement(h.Box,null,n.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){x((null===e||void 0===e?void 0:e.collectionId)||0),E(!0)}},"Edit")),n.a.createElement(h.Box,null,n.a.createElement(h.Button,{variant:"text",color:"primary",disabled:!!((null===(r=e.userCourseCollections)||void 0===r?void 0:r.length)&&(null===(a=e.userCourseCollections)||void 0===a?void 0:a.length)>0),onClick:function(){return i=(null===e||void 0===e?void 0:e.collectionId)||0,void o({message:"Are you sure you want to delete the collection?",title:"Delete Collection",OnConfirm:function(){0!==i&&t(i).then((function(e){e&&(D(!0),s("Collection successfully deleted.","success"))})),D(!1)}});var i}},"Delete")))))),c>0?n.a.createElement(h.Grid,{container:!0,spacing:"card"},null===e||void 0===e||null===(l=e.userCourseCollections)||void 0===l?void 0:l.map((function(e){var t,i,r,a=null===e||void 0===e||null===(t=e.courseFormatPortalCategory)||void 0===t?void 0:t.includes("Classroom"),o=null===e||void 0===e||null===(i=e.courseFormatPortalCategory)||void 0===i?void 0:i.includes("Webcast"),s=null===e||void 0===e||null===(r=e.courseFormatPortalCategory)||void 0===r?void 0:r.includes("On-demand");return n.a.createElement(h.Grid,{item:!0,xs:12,sm:U?12:6,lg:U?12:4,stretchContent:!0,key:null===e||void 0===e?void 0:e.courseId},n.a.createElement(h.Card,{variant:"outlined",status:"primary"},n.a.createElement(h.CardHeader,{classes:{title:v.cardTitle,subheader:v.cardSubheader},title:null===e||void 0===e?void 0:e.title}),n.a.createElement(h.CardContent,{classes:{root:v.cardContent},noTopPadding:!0},n.a.createElement(h.Typography,{variant:"subtitle2"},null===e||void 0===e?void 0:e.providerName)),n.a.createElement(h.CardActions,null,n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Expanded,{flex:1},s?n.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},n.a.createElement("span",{className:s?v.iconEnabled:v.iconDisabled},n.a.createElement(kn,{format:"On-demand",size:"sm",type:s?"duotone":"light"}))):n.a.createElement("span",{className:s?v.iconEnabled:v.iconDisabled},n.a.createElement(kn,{format:"On-demand",size:"sm",type:s?"duotone":"light"})),a?n.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},n.a.createElement("span",{className:a?v.iconEnabled:v.iconDisabled},n.a.createElement(kn,{format:"Classroom",size:"sm",type:a?"duotone":"light"}))):n.a.createElement("span",{className:a?v.iconEnabled:v.iconDisabled},n.a.createElement(kn,{format:"Classroom",size:"sm",type:a?"duotone":"light"})),o?n.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},n.a.createElement("span",{className:o?v.iconEnabled:v.iconDisabled},n.a.createElement(kn,{format:"Webcast",size:"sm",type:o?"duotone":"light"}))):n.a.createElement("span",{className:o?v.iconEnabled:v.iconDisabled},n.a.createElement(kn,{format:"Webcast",size:"sm",type:o?"duotone":"light"}))),n.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){return t=e.courseId,B(t),void T(!0);var t}},"Details")))))}))):n.a.createElement(h.Grid,{item:!0,xs:12,sm:U?12:6,lg:U?12:4,stretchContent:!0},n.a.createElement(h.Alert,{variant:"standard",type:"info"},"No course is assigned to the collection.")))})),n.a.createElement(aa,{hidePastSessions:!1,courseId:F,categories:["On-demand","Classroom","Webcast","Others"],open:P,onClose:function(){return T(!1)}}),S&&n.a.createElement(ic,{open:S,onClose:function(){return E(!1)},collectionId:C}))})),ac=i(76),oc=i.n(ac),sc=Object(B.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(B.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0)})})})),lc=function(){var e=sc();return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement(h.Skeleton,{width:"40%"}))),[1,2,3].map((function(t){return n.a.createElement(h.Box,{mb:3,key:t},n.a.createElement(h.Card,{variant:"outlined",status:"default",className:e.cardContainer},n.a.createElement(h.CardHeader,{classes:{title:e.cardTitle,subheader:e.cardSubheader},title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{classes:{root:e.cardContent},noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"})),n.a.createElement(h.CardActions,null,n.a.createElement(h.Skeleton,{width:"100%"}))))})))},cc=Object(B.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(B.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0),display:"flex",alignItems:"center",justifyContent:"center"}),iconActive:{color:t.grey[700]}})})),dc=function(e){var t=cc(),i=e.isOnDemand;return n.a.createElement(h.Card,{variant:"outlined",status:"default",className:t.cardContainer},n.a.createElement(h.CardContent,{classes:{root:t.cardContent},noTopPadding:!0},n.a.createElement(h.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",flexDirection:"column",textAlign:"center"},n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},i?"You have no on-demand courses in-progress.":"You are not enrolled in any courses.")),n.a.createElement(h.Box,{className:t.iconActive,mt:1},i?n.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"On-demand",size:"sm",type:"duotone"}))):n.a.createElement(h.Row,null,n.a.createElement(h.Box,{mr:1},n.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"Classroom",size:"sm",type:"duotone"})," "))),n.a.createElement(h.Box,null,n.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"Webcast",size:"sm",type:"duotone"})))))))))},uc=Object(B.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(B.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0)}),iconActive:{color:t.grey[700]},iconInActive:{color:t.grey[300]}})})),hc=Object(s.b)((function(e){var t;return{loggedUserId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{getUserCourseSession:function(t,i,r,n){return e(oa(i,t,r,n))}}}))((function(e){var t=e.getUserCourseSession,i=e.loggedUserId,a=uc(),o=Object(r.useState)(),s=Object(c.a)(o,2),l=s[0],d=s[1],u=Object(r.useState)(),v=Object(c.a)(u,2),f=v[0],m=v[1],y=Object(r.useState)(!1),g=Object(c.a)(y,2),b=g[0],S=g[1],E=Object(r.useState)(0),I=Object(c.a)(E,2),O=I[0],C=I[1],x=Object(r.useState)(0),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(0),A=Object(c.a)(T,2),N=A[0],k=A[1],D=Object(V.useTheme)(),L=Object(V.useMediaQuery)(D.breakpoints.down("xs"));Object(r.useEffect)((function(){var e=new Date;e.setHours(12),d(void 0),m(void 0),t(0,!1,e,!0).then((function(e){d(null===e||void 0===e?void 0:e.userCourseSessions),m(null===e||void 0===e?void 0:e.recordCount)}))}),[t,O,i]);var J={sessionParticipantStatus:O,setSessionParticipantStatus:C},F=n.a.useState(0),B=Object(c.a)(F,2),R=B[0],U=B[1],G=null===l||void 0===l?void 0:l.filter((function(e){return e.isInstructor}));return n.a.createElement(ca.Provider,{value:J},void 0===f&&void 0===l?n.a.createElement(lc,null):0===f||0===(null===l||void 0===l?void 0:l.filter((function(e){return!e.isInstructor})).length)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,"Enrolled")," (",null!==f&&void 0!==f?f:0,")")),n.a.createElement(dc,null)):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,"Enrolled")," (",null!==f&&void 0!==f?f:0,")")),null===l||void 0===l?void 0:l.filter((function(e){return!e.isInstructor})).map((function(e,t){var i=((null===e||void 0===e?void 0:e.sessionTypeId)===p.oe.Multipart||(null===e||void 0===e?void 0:e.sessionTypeId)===p.oe.Recurring)&&(null===e||void 0===e?void 0:e.title)!==(null===e||void 0===e?void 0:e.courseTitle),r=fn()().format("MM/DD/YYYY").toString(),o=new Date(r),s=fn()(e.startDate,"MM/DD/YYYY").toString(),l=new Date(s).getTime()-o.getTime();l/=864e5;var c=G&&(null===G||void 0===G?void 0:G.find((function(t){return t.sessionId===e.sessionId})));return n.a.createElement(h.Box,{mb:3,key:t},n.a.createElement(h.Card,{variant:"outlined",status:"primary",elevation:0,className:a.cardContainer},n.a.createElement(h.CardHeader,{classes:{title:a.cardTitle,subheader:a.cardSubheader},title:n.a.createElement(h.Column,null,n.a.createElement(h.Expanded,{mb:.5},n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement("b",null,"Session Date:",e.endDate&&Object(Zt.e)(e.startDate,"MM/DD/YYYY")!==Object(Zt.e)(e.endDate,"MM/DD/YYYY")?" ".concat(Object(Zt.e)(e.startDate,"MM/DD/YYYY")," - ").concat(Object(Zt.e)(e.endDate,"MM/DD/YYYY")):" ".concat(Object(Zt.e)(e.startDate,"MM/DD/YYYY"))),l<=10&&l>=1&&" - In ".concat(l," day(s)"))),n.a.createElement(h.Expanded,null,n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,e.courseTitle)))),subheader:i?n.a.createElement(h.Typography,{variant:"subtitle2"},null===e||void 0===e?void 0:e.title):""}),n.a.createElement(h.CardContent,{classes:{root:a.cardContent}},e.providerName),n.a.createElement(h.CardActions,null,n.a.createElement(h.Grid,{container:!0,spacing:L?1:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:c?4:5,lg:c?5:6,alignment:L?"center-right":"center-left"},n.a.createElement(h.Box,{mt:L?1.5:0},n.a.createElement(h.Row,{size:"min",crossAxisAlignment:"middle",mainAxisAlignment:L?"end":"start"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Box,{component:"span",className:"On-demand"===e.courseFormatPortalCategory?a.iconActive:a.iconInActive},"On-demand"===e.courseFormatPortalCategory?n.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))):n.a.createElement(kn,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))),n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Box,{component:"span",className:"Classroom"===e.courseFormatPortalCategory?a.iconActive:a.iconInActive},"Classroom"===e.courseFormatPortalCategory?n.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))):n.a.createElement(kn,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Box,{component:"span",className:"Webcast"===e.courseFormatPortalCategory?a.iconActive:a.iconInActive},"Webcast"===e.courseFormatPortalCategory?n.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"}))):n.a.createElement(kn,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"})))))),c&&n.a.createElement(h.Grid,{item:!0,xs:12,sm:4,lg:5,alignment:"center-right"},n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,null,"Instructor")),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.SystemIcon,{icon:"SystemUser"})))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:c?4:7,lg:c?2:6,alignment:"center-right"},n.a.createElement(h.Button,{variant:"text",onClick:function(){S(!0),k(e.courseId||0),P(e.sessionId||0)}},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"primary"},n.a.createElement("b",null,"Details"))))))))})),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},f&&f>10&&n.a.createElement(h.TablePagination,{count:f,page:R,rowsPerPage:10,onPageChange:function(e,i){U(i);var r=new Date;r.setHours(12),d(void 0),m(void 0),t(i,!1,r,!0).then((function(e){d(null===e||void 0===e?void 0:e.userCourseSessions),m(null===e||void 0===e?void 0:e.recordCount)}))},component:"div",colSpan:3,rowsPerPageOptions:[]})),b&&n.a.createElement(da,{open:b,sessionId:w,onClose:function(){return S(!1)},courseId:N})))})),vc=Object(B.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(B.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(J.a)(Object(J.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},r.subtitle2),cardContent:Object(J.a)(Object(J.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0)}),iconActive:{color:t.grey[700]},iconInActive:{color:t.grey[300]}})})),pc=Object(s.b)((function(e){var t;return{loggedUserId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,authenticatedUser:e.users.authenticatedUser,isImpersonated:e.users.isImpersonated}}),(function(e){return{getUserCourseSession:function(t,i){return e(oa(i,t))}}}))((function(e){var t,i=e.getUserCourseSession,a=e.loggedUserId,o=e.authenticatedUser,s=e.isImpersonated,l=Object(d.k)(),u=Object(d.l)(),v=vc(),f=Object(r.useState)(),m=Object(c.a)(f,2),y=m[0],g=m[1],b=Object(r.useState)(),S=Object(c.a)(b,2),E=S[0],I=S[1],O=Object(V.useTheme)(),C=Object(V.useMediaQuery)(O.breakpoints.down("xs")),x=null!==(t=o&&o.userRole&&o.userRole[0].subRoleId)&&void 0!==t?t:0,j=x===p.re.AdministrativeAssistant||x===p.re.Supervisor,w=n.a.useState(0),P=Object(c.a)(w,2),T=P[0],A=P[1];Object(r.useEffect)((function(){g(void 0),I(void 0),i(0,!0).then((function(e){g(null===e||void 0===e?void 0:e.userCourseSessions),I(null===e||void 0===e?void 0:e.recordCount)}))}),[i,a]);return void 0===E&&void 0===y?n.a.createElement(lc,null):0===E||0===(null===y||void 0===y?void 0:y.filter((function(e){return!e.isInstructor})).length)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,"On-Demand In Progress")," (",E,")")),n.a.createElement(dc,{isOnDemand:!0})):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,"On-Demand In Progress")," (",E,")")),null===y||void 0===y?void 0:y.map((function(e){var t=((null===e||void 0===e?void 0:e.sessionTypeId)===p.oe.Multipart||(null===e||void 0===e?void 0:e.sessionTypeId)===p.oe.Recurring)&&(null===e||void 0===e?void 0:e.title)!==(null===e||void 0===e?void 0:e.courseTitle);return n.a.createElement(h.Box,{mb:3,key:e.sessionId},n.a.createElement(Xn,{status:e.sessionParticipantStatusId}),n.a.createElement(h.Card,{variant:"outlined",elevation:0,className:v.cardContainer},n.a.createElement(h.CardHeader,{classes:{title:v.cardTitle,subheader:v.cardSubheader},title:n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("b",null,e.courseTitle)),subheader:t?n.a.createElement(h.Typography,{variant:"subtitle2"},null===e||void 0===e?void 0:e.title):""}),n.a.createElement(h.CardContent,{classes:{root:v.cardContent}},e.providerName),n.a.createElement(h.CardActions,null,n.a.createElement(h.Grid,{container:!0,spacing:C?1:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:e.isInstructor?4:5,lg:e.isInstructor?5:6,alignment:C?"center-right":"center-left"},n.a.createElement(h.Box,{mt:C?1.5:0},n.a.createElement(h.Row,{size:"min",crossAxisAlignment:"middle",mainAxisAlignment:C?"end":"start"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Box,{component:"span",className:"On-demand"===e.courseFormatPortalCategory?v.iconActive:v.iconInActive},"On-demand"===e.courseFormatPortalCategory?n.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))):n.a.createElement(kn,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))),n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Box,{component:"span",className:"Classroom"===e.courseFormatPortalCategory?v.iconActive:v.iconInActive},"Classroom"===e.courseFormatPortalCategory?n.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))):n.a.createElement(kn,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Box,{component:"span",className:"Webcast"===e.courseFormatPortalCategory?v.iconActive:v.iconInActive},"Webcast"===e.courseFormatPortalCategory?n.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"}))):n.a.createElement(kn,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"})))))),e.isInstructor&&n.a.createElement(h.Grid,{item:!0,xs:12,sm:4,lg:5,alignment:"center-right"},n.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Typography,null,"Instructor")),n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.SystemIcon,{icon:"SystemUser"})))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:e.isInstructor?4:7,lg:e.isInstructor?2:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"primary",variant:"text",disabled:s&&(o&&(null===o||void 0===o?void 0:o.userId))!==a||j&&(o&&(null===o||void 0===o?void 0:o.userId))!==a||e.sessionParticipantStatusId===p.ke.Pending,onClick:function(){return function(e){var t;e&&l.push("/course-player?sessionId=".concat(e),{prevPath:null!==(t=u.pathname)&&void 0!==t?t:""})}(e.sessionId)}},(e.sessionParticipantStatusId===p.ke.Disqualified||e.sessionParticipantStatusId===p.ke.Validated||e.sessionParticipantStatusId===p.ke.Failed)&&n.a.createElement("b",null,"View Again"),(e.sessionParticipantStatusId===p.ke.Registered||e.sessionParticipantStatusId===p.ke.Unexcused||e.sessionParticipantStatusId===p.ke.Tentative||e.sessionParticipantStatusId===p.ke.Pending)&&n.a.createElement("b",null,"View On-Demand"),e.sessionParticipantStatusId===p.ke.InProgress&&n.a.createElement("b",null,"Resume")))))))})),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},E&&E>10&&n.a.createElement(h.TablePagination,{count:E,page:T,rowsPerPage:10,onPageChange:function(e,t){A(t),g(void 0),I(void 0),i(t,!0).then((function(e){g(null===e||void 0===e?void 0:e.userCourseSessions),I(null===e||void 0===e?void 0:e.recordCount)}))},component:"div",colSpan:3,rowsPerPageOptions:[]})))})),fc=function(){return n.a.createElement(oc.a,{container:!0,spacing:"card"},n.a.createElement(oc.a,{item:!0,xs:12,sm:12,md:6,lg:6},n.a.createElement(pc,null)),n.a.createElement(oc.a,{item:!0,xs:12,sm:12,md:6,lg:6},n.a.createElement(hc,null)))},mc=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(Vr.c)(t))}}})),yc=Object(_n.a)(Object(d.o)(mc((function(e){var t=e.getScreenDescription,i=e.loggedUser,a=e.history,o=i&&i.userRole,s=Object(r.useState)(),l=Object(c.a)(s,2),d=l[0],u=l[1],v=Object(r.useState)(!1),f=Object(c.a)(v,2),m=f[0],y=f[1],g=Object(r.useState)(!1),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),P=w[0],T=w[1];Object(r.useEffect)((function(){var e=a.location.state;(null===e||void 0===e?void 0:e.fromCourseCatalog)&&(T(!0),a.push({state:{fromCourseCatalog:!1}}))}),[a]),Object(r.useEffect)((function(){t(p.Md.UserCourses).then((function(e){return u(e)}))}),[t,o]);var A={removeFromCollection:S,setRemoveFromCollection:E,updateCollection:C,setUpdateCollection:x};return n.a.createElement(h.Screen,{titleBar:{title:(d&&""!==d.title?d.title:"My Courses")||"My Courses",description:d?n.a.createElement(h.Column,null,null!==d.shortDescription&&""!==d.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(d.shortDescription)}),null!==d.text&&""!==d.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return y(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"}))),actionRow:P&&n.a.createElement(h.Button,{variant:"outlined",size:"small",color:"default",onClick:function(){a.push("/course-catalog")}},"Return to Course Catalog")},tabs:[{path:"/my-courses",label:"My Courses",component:n.a.createElement(fc,null)},{path:"/my-collections",label:"My Collections",component:n.a.createElement(Xl.Provider,{value:A},n.a.createElement(nc,null))}]},n.a.createElement(dn,{open:m,onClose:function(){return y(!1)},title:(d&&""!==d.title?d.title:"My Courses")||"My Courses",description:null===d||void 0===d?void 0:d.text}))})))),gc=Object(s.b)(null,(function(e){return{setIsInitialLoad:function(t){return e(Object(Vr.d)(t))}}}))((function(e){var t=e.setIsInitialLoad,i=Object(Wr.useMdsAppContext)().paths;return Object(r.useEffect)((function(){t(!0)}),[t]),n.a.createElement(d.c,{to:i.home})})),bc=i(71),Sc=i.n(bc),Ec=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,learningSettings:e.generalSettings.learningSettings}}),(function(e){return{showConfirmation:function(t){return e(Object($n.b)(t))},addNotification:function(t){return e(M.a({message:t,variant:"success"}))},deleteFromSessionWaitlist:function(t,i){return e(Vi(t,i))},registerParticipant:function(t,i,r){return e(qi(t,i,!1,r))},registerParticipantByGuid:function(t,i,r){return e(function(e,t,i,r){return function(n){return q.R.createByGuid(t,r,i,void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){n(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t,i,!1,r))},updateParticipant:function(t,i,r){return e(Mi(t,i,!1,!1,r,!1))},updateParticipantByGuid:function(t,i,r,n,a,o){return e(function(e,t,i,r){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(o){return q.R.updateByGuid(t,i,r,a,n,void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){o(Object(M.b)(e))}))}}(t,i,r,n,a,o))},deleteParticipant:function(t,i,r){return e(zi(t,i,r))},deleteParticipantByGuid:function(t,i,r){return e(function(e,t,i){return function(r){return q.R.deleteByGuid(t,i,void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){r(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t,i,r))},addUsersToWaitlist:function(t,i,r,n){return e(Wi(t,i,r,n))},addToWaitlistByGuid:function(t,i){return e(function(e,t){return function(i){return q.R.addToWaitlistByGuid(t,void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){i(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t,i))},deleteFromWaitlistByGuid:function(t,i){return e(function(e,t){return function(i){return q.R.deleteFromWaitlist(t,void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){i(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t,i))},declineParticipant:function(t,i){return e(function(e,t){return function(i){var r=new p.nb({sessionId:e,userId:t});return q.R.decline(void 0,r).then((function(e){return e})).catch((function(e){i(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t,i))},declineInvite:function(t,i){return e(function(e,t){return function(i){return q.R.declineInviteByGuid(t,void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){i(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t,i))},updateInvite:function(t){return e(function(e){return function(t){return q.R.updateInviteByGuid(void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){t(Object(M.a)({message:e.detail,variant:"error"}))}))}}(t))},setType:function(t){return e(Object(O.h)(t))},getLearningSettings:function(){return e(Object(vn.a)())}}})),Ic=Object(d.o)(Ec((function(e){var t,i,a,o=e.courseSessions,l=e.showConfirmation,c=e.addNotification,d=e.registerParticipant,u=e.registerParticipantByGuid,v=e.updateParticipant,f=e.updateParticipantByGuid,m=e.deleteParticipant,y=e.deleteParticipantByGuid,g=e.deleteFromSessionWaitlist,b=e.guid,S=e.onRefresh,E=e.addUsersToWaitlist,I=e.addToWaitlistByGuid,O=e.deleteFromWaitlistByGuid,C=e.declineParticipant,x=e.declineInvite,j=e.updateInvite,w=e.userId,P=e.match,T=e.history,A=e.isRegistrationLink,N=e.setType,k=e.getLearningSettings,D=e.learningSettings,L=e.isFromGroupedSessions,J=fn()(new Date).format("MM/DD/YYYY").toString(),F=new Date(J),B=P.url.indexOf("invite")>0,R=Object(s.c)((function(e){return e.authentication.authenticated})),U=window.location.hostname.split("."),G=U&&U.length>0?U[0]:"localhost",q=null!==(t=localStorage.getItem("userLoginSessionId"))&&void 0!==t?t:Hr(),M=null!==(i=null!=D&&(null===(a=D.find((function(e){return e.learningSettingEnumType===p.wd.AllowTentativeReg})))||void 0===a?void 0:a.valueBit))&&void 0!==i&&i;Object(r.useEffect)((function(){N(null)}),[N]),Object(r.useEffect)((function(){k()}),[k]),A&&!R&&""!==q?window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",G).replace("{app}","cem"),"users/portal?guid=").concat(b,"&type=").concat(L?"schedule-link":"session-link")||"":A&&!R&&""===q&&(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",G).replace("{app}","cem"),"login?guid=").concat(b,"&type=").concat(L?"schedule-link":"session-link")||"");var z=function(){B&&j(b)},W=function(e,t){t&&l("Add"===e?{message:"Are you sure you want to be added to the session waitlist?",title:"Waitlist Confirmation",OnConfirm:function(){A&&R?w&&E([w],t).then((function(){z(),S&&S(),c("You have now been successfully added to session waitlist.")})):I(b,t).then((function(){z(),S&&S(),c("You have now been successfully added to session waitlist.")}))}}:{message:"Are you sure you want to be removed from the session waitlist?",title:"Waitlist Cancellation",OnConfirm:function(){A&&R?w&&g([w],t).then((function(){z(),S&&S(),c("You have now been removed from the session waitlist.")})):O(b,t).then((function(){z(),S&&S(),c("You have now been removed from the session waitlist.")}))}})},V=function(e,t,i,r,n,a){var o="",s="";o="Are you sure you want to register for this session?",s="You have now been successfully registered for this session.",a&&(o="Are you sure you want to register as a tentative attendee for this session?",s="You have now been registered as tentative attendee for this session."),r&&(o="This session requires approval. We will send an email to confirm your registration."),n&&(o="You are already registered to a simultaneous session with the same date and time. Would you like to proceed?"),A&&R?0===t?l({message:o,title:"Confirm Registration",OnConfirm:function(){w&&d([w],e,a).then((function(){z(),S&&S(),c(s)}))}}):(o="Are you sure you want to update your registration status?",r&&(o="This session requires approval. We will send an email to confirm your registration."),l({message:o,title:"Confirm Status Update",OnConfirm:function(){v([i],a?p.ke.Tentative:p.ke.Registered,e).then((function(){z(),S&&S(),c("Your registration status has been updated.")}))}})):0===t?l({message:o,title:"Confirm Registration",OnConfirm:function(){u(b,e,a).then((function(){z(),S&&S(),c(s)}))}}):t===p.ke.Registered?(o="Are you sure you want to update your registration status?",r&&(o="This session requires approval. We will send an email to confirm your registration."),l({message:o,title:"Confirm Status Update",OnConfirm:function(){f(b,e,i,p.ke.Tentative,!1,!1).then((function(){z(),S&&S(),c("Your registration status has been updated.")}))}})):(o="Are you sure you want to update your registration status?",r&&(o="This session requires approval. We will send an email to confirm your registration."),l({message:o,title:"Confirm Status Update",OnConfirm:function(){f(b,e,i,a?p.ke.Tentative:p.ke.Registered,!1,!1).then((function(){z(),S&&S(),c("Your registration status has been updated.")}))}}))};return n.a.createElement(n.a.Fragment,null,void 0===o&&[1,2,3].map((function(e){return n.a.createElement(h.Box,{mt:1,key:e},n.a.createElement(ta,{loading:!0}))})),o&&0===(null===o||void 0===o?void 0:o.length)&&n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center",stretchContent:!0},n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Alert,{variant:"standard",type:"info"},"There are currently no sessions available for selection.")))),void 0!==o&&(null===o||void 0===o?void 0:o.filter((function(e){return e.isOnlineLearning||fn()(e.startDate).isSameOrAfter(fn()(),"day")})).map((function(e){var t,i,r,a,o,s,d,u,v,f,g,E,I,O=fn()(null===e||void 0===e?void 0:e.startDate).format("MM/DD/YYYY").toString(),j=new Date(O)>=F,P=null!==(t=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==t?t:[],N=null===P||void 0===P?void 0:P.filter((function(e){return e.isInstructor})).map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),k=null!==(i=null===e||void 0===e||null===(r=e.sessionLicenses)||void 0===r?void 0:r.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==i?i:[],D=null===e||void 0===e||null===(a=e.sessionParticipant)||void 0===a?void 0:a.filter((function(e){return!(!e.isInstructor&&A)||e.userId===w})),L=D&&(null===(o=D[0])||void 0===o?void 0:o.sessionParticipantStatusId),J=D&&(null===(s=D[0])||void 0===s?void 0:s.sessionParticipantId),U=0!==(null!==(d=(null===e||void 0===e?void 0:e.sessionWaitlist)&&(null===e||void 0===e||null===(u=e.sessionWaitlist[0])||void 0===u?void 0:u.userId))&&void 0!==d?d:0);return n.a.createElement(h.Box,{mt:1,key:e.sessionId},n.a.createElement(ta,{guid:b,status:U?p.ke.Registered:L,statusChip:n.a.createElement(ia,{status:L,isWaitlisted:U}),actionButton:n.a.createElement(Yn,{status:L,isCancelled:void 0!==e.cancelledDate,isLapsed:!j,isOnDemand:null!==(v=null===e||void 0===e?void 0:e.isOnlineLearning)&&void 0!==v&&v,isWaitlistAllowed:null===e||void 0===e?void 0:e.isWaitlistingAllowed,registrationLimit:null!==(f=null===e||void 0===e?void 0:e.registrationLimit)&&void 0!==f?f:0,participantCount:null!==(g=null===e||void 0===e?void 0:e.participantCount)&&void 0!==g?g:0,isWaitlisted:U,isInvitation:B,isApprovalRequired:null!==(E=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==E&&E,isTentativeAllowed:M,onViewOnDemand:function(){return function(e){if(e){var t,i=window.location.hostname.split("."),r=i&&i.length>0?i[0]:"localhost",n=null!==(t="https://{host}.{app}.micronapps.com/".replace("{host}",r).replace("{app}","cem"))&&void 0!==t?t:"",a=encodeURIComponent("/course-player?sessionId=".concat(e));z(),R?T.push("/course-player?sessionId=".concat(e)):window.location.href=""===q||void 0===q||null===q?"".concat(n,"login?redirectUrl=").concat(a):"".concat(n,"users/portal?redirectUrl=").concat(a)}}(null===e||void 0===e?void 0:e.sessionId)},onRegistration:function(){var t,i,r;return V(null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,null!==L&&void 0!==L?L:0,null!==J&&void 0!==J?J:0,null!==(i=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==i&&i,null!==(r=null===e||void 0===e?void 0:e.isAlreadyRegisteredToTheSameSchedule)&&void 0!==r&&r,!1)},onTentativeRegistration:function(){var t,i,r;return V(null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,null!==L&&void 0!==L?L:0,null!==J&&void 0!==J?J:0,null!==(i=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==i&&i,null!==(r=null===e||void 0===e?void 0:e.isAlreadyRegisteredToTheSameSchedule)&&void 0!==r&&r,!0)},onWaitlist:function(){return W("Add",null===e||void 0===e?void 0:e.sessionId)},onCancelRegistration:function(){return function(e,t){e&&t&&l(A&&R?{message:"Are you sure you want to cancel your registration for this session?",title:"Cancel Registration",OnConfirm:function(){m([t],0,e).then((function(){z(),S&&S(),c("Your session registration has been canceled.")}))}}:{message:"Are you sure you want to cancel your registration for this session?",title:"Cancel Registration",OnConfirm:function(){y(b,e,t).then((function(){z(),S&&S(),c("Your session registration has been canceled.")}))}})}(null===e||void 0===e?void 0:e.sessionId,J)},onCancelWaitlist:function(){return W("Cancel",null===e||void 0===e?void 0:e.sessionId)},onDecline:function(){var t;(t=null===e||void 0===e?void 0:e.sessionId)&&l(A&&R?{message:"Are you sure you want to decline for this session?",title:"Decline Session",OnConfirm:function(){w&&C(t,w).then((function(){z(),S&&S(),c("You have declined for this session.")}))}}:{message:"Are you sure you want to decline for this session?",title:"Decline Session Invite",OnConfirm:function(){x(b,t).then((function(){z(),S&&S(),c("Invitation for this session was declined.")}))}})}}),courseFormat:(null===e||void 0===e?void 0:e.courseFormat)||"",courseFormatPortalCategory:null===e||void 0===e?void 0:e.courseFormatPortalCategory,endDate:null===e||void 0===e?void 0:e.endDate,endTime:null===e||void 0===e?void 0:e.endTime,instructors:N,location:null===e||void 0===e?void 0:e.location,materialList:null===e||void 0===e?void 0:e.sessionMaterials,isInvitation:B,isRegisration:A,room:null===e||void 0===e?void 0:e.room,startDate:e.startDate,startTime:null===e||void 0===e?void 0:e.startTime,sessionDescription:null===e||void 0===e?void 0:e.detail,sessionLicenses:k,timeZone:e.timeZone,isOnDemand:null!==(I=null===e||void 0===e?void 0:e.isOnlineLearning)&&void 0!==I&&I,courseTitle:null===e||void 0===e?void 0:e.courseTitle,sessionTitle:null===e||void 0===e?void 0:e.title}))}))))}))),Oc=function(e){var t,i,r,a,o,s,l=e.courseDetail,c=null===l||void 0===l||null===(t=l.courseCompetencies)||void 0===t?void 0:t.map((function(e){return e.name})),d=null===l||void 0===l||null===(i=l.courseDepartments)||void 0===i?void 0:i.map((function(e){return e.name})),u=null===l||void 0===l||null===(r=l.coursePracticeAreas)||void 0===r?void 0:r.map((function(e){return e.name})),v=null===l||void 0===l||null===(a=l.courseLevels)||void 0===a?void 0:a.map((function(e){return e.name})),p=null===l||void 0===l||null===(o=l.courseClassYears)||void 0===o?void 0:o.map((function(e){return e.name})),f=null===l||void 0===l||null===(s=l.courseTags)||void 0===s?void 0:s.map((function(e){return e.name})),m=c&&(null===c||void 0===c?void 0:c.length)>0||d&&(null===d||void 0===d?void 0:d.length)>0||u&&(null===u||void 0===u?void 0:u.length)>0||v&&(null===v||void 0===v?void 0:v.length)>0||p&&(null===p||void 0===p?void 0:p.length)||f&&(null===f||void 0===f?void 0:f.length)>0;return n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardContent,null,void 0===l&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement("br",null),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),n.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})),void 0!==l&&n.a.createElement(h.Grid,{container:!0,spacing:"card",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:12,md:12,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:2,mb:1,alignItems:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"h3",color:"primary"},null===l||void 0===l?void 0:l.title),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null===l||void 0===l?void 0:l.provider))),n.a.createElement(h.Grid,{item:!0,lg:12,md:12,xs:12,alignment:"center"},(null===l||void 0===l?void 0:l.description)&&n.a.createElement(h.TextEditorView,{model:L(null===l||void 0===l?void 0:l.description)}),m&&n.a.createElement(Kn,{courseClassYears:p,courseCompetencies:c||[],courseDepartments:d,courseLevels:v,coursePracticeAreas:u,courseTags:f}))))))},Cc=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,userPermission:e.permissionSets.userPermissionSets,authentication:e.authentication}}),(function(e){return{signIn:function(t){return e(Object(O.l)(t))},getCourseDetail:function(t,i,r){return e(function(e,t,i){return function(r){return t?i?q.l.getRegistrationCourseDetailByScheduleGuid(void 0,p.Xc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw r(Object(M.b)(e)),e})):q.l.getRegistrationCourseDetailByGuid(void 0,p.cd.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw r(Object(M.b)(e)),e})):q.l.getCourseDetailByGuid(void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw r(Object(M.b)(e)),e}))}}(t,i,r))},getCourseSessions:function(t,i,r,n){return e(function(e,t,i,r){return function(n){return t?i?q.l.getCourseSessionRegistrationLinkByScheduleyGuid(void 0,p.Xc.fromJS({guid:e,userId:r})).then((function(e){return e})).catch((function(e){throw n(Object(M.b)(e)),e})):q.l.getCourseSessionRegistrationLinkByGuid(void 0,p.cd.fromJS({guid:e,userId:r})).then((function(e){return e})).catch((function(e){throw n(Object(M.b)(e)),e})):q.l.getCourseSessionsByGuid(void 0,p.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw n(Object(M.b)(e)),e}))}}(t,i,r,n))},setToken:function(t){return e(Object(O.k)(t))},SetJwtExpiration:function(t){return e(Object(O.b)(t))},getPortalBranding:function(t){return e(Object(Vr.a)(t))},getPasswordPolicy:function(){return e(Object(vn.b)())}}})),xc=Object(_n.a)(Object(d.o)(Cc((function(e){var t,i,a=e.authentication,o=e.getCourseDetail,l=e.getCourseSessions,d=e.history,u=e.match,v=e.userId,f=e.signIn,m=e.getPortalBranding,y=e.getPasswordPolicy,g=Object(r.useState)(),b=Object(c.a)(g,2),S=b[0],O=b[1],C=Object(r.useState)(),x=Object(c.a)(C,2),j=x[0],w=x[1],P=Object(s.c)((function(e){return e.authentication.jwtExpiration})),T=u.params.guid,A=E(p.Kd.ViewPortalCourseCatalog),N="true"===(null===(t=Object(s.c)((function(e){var t,i;return null===(t=e.generalSettings.firm)||void 0===t||null===(i=t.firmSettings)||void 0===i?void 0:i.filter((function(e){return"EnablePortalHomeLink"===e.key}))[0].value})))||void 0===t?void 0:t.toLowerCase()),k=u.url.indexOf("registration")>0,D=u.url.indexOf("schedule")>0,L=window.location.hostname.split("."),J=L&&L.length>0?L[0]:"localhost",F=Hr();localStorage.setItem("userLoginSessionId",F);var B=Object(r.useCallback)((function(){O(void 0),w(void 0),void 0!==T&&(o(T,k,D).then((function(e){O(e)})),l(T,k,D,v).then((function(e){w(e)})))}),[T,o,l,k,v,D]),R=Object(r.useCallback)((function(e){f({idpId:e.payload.sub,authenticated:!0,accessToken:e.jwtToken,jwtExpiration:1e3*e.getExpiration(),userName:e.payload.username})}),[f]);return Object(r.useEffect)((function(){B(),y(),Object(I.a)().then((function(e){Mr.a.configure(e),Mr.a.currentSession().then((function(){Mr.a.currentAuthenticatedUser().then((function(e){R(e.signInUserSession.accessToken),m(e.signInUserSession.accessToken.payload.sub)}))}))})).catch((function(){window.location.href="https://{host}.{app}.micronapps.com/".replace("{host}",J).replace("{app}","cem")}))}),[y,B,F,m,R,J]),n.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(i=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",J).replace("{app}","cem"))&&void 0!==i?i:"","login")},n.a.createElement(bc.ExternalScreenHeader,{maxWidth:"lg"},void 0!==S&&void 0!==j&&n.a.createElement(h.Box,{textAlign:"right",mt:4,mb:4},N?n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){if(!a.authenticated||P0?W[0]:"localhost",Y=f.url.indexOf("attendance-sheet")>0,$=Object(s.c)((function(e){return e.authentication.authenticated})),H=null!==(t=localStorage.getItem("userLoginSessionId"))&&void 0!==t?t:document.cookie.substring(document.cookie.search("sessionId=")+10);Y&&!$&&""!==H&&(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",V).replace("{app}","cem"),"users/portal?guid=").concat(g,"&type=","attendance-sheet-link")||!1);var K=Object(r.useCallback)((function(e){L(void 0),z(void 0),R(void 0),w(void 0),I(void 0),v(e).then((function(e){if(L(e.attendanceForm),z(e.sessionRecords),w(e.printOption),I(e.sessionTemplateId),e.printOption===p.p.PrintCombined)if(0!==e.sessionTemplateId)R(e.sessionRecords&&e.sessionRecords.filter((function(t){return t.sessionId===e.sessionTemplateId})));else{var t,i=null!==(t=e.sessionRecords&&e.sessionRecords[0].sessionId)&&void 0!==t?t:0;R(e.sessionRecords&&e.sessionRecords.filter((function(e){return e.sessionId===i})))}else R(e.sessionRecords)})).catch((function(){m.push("/error404")}))}),[m,v]);Object(r.useEffect)((function(){K(g)}),[g,K]);var Q=null!==(i=(null===D||void 0===D?void 0:D.information)&&(null===D||void 0===D?void 0:D.information.filter((function(e){return 1===e.column&&!0===e.includeForDisplay}))))&&void 0!==i?i:[],Z=null!==(a=(null===D||void 0===D?void 0:D.information)&&(null===D||void 0===D?void 0:D.information.filter((function(e){return 2===e.column&&!0===e.includeForDisplay}))))&&void 0!==a?a:[],X=null!==(o=(null===D||void 0===D?void 0:D.columns)&&D.columns.filter((function(e){return!0===e.includeForDisplay})))&&void 0!==o?o:[],ee=1100/X.length,te=X.map((function(e){return function(e){var t;return{Header:"".concat(null!==(t=e.label)&&void 0!==t?t:""),accessor:"".concat(e.type),width:ee,Cell:function(t){var i=t.row.original,r="";if(void 0!==i.userId)switch(e.type){case p.n.Name:r="".concat(null===i||void 0===i?void 0:i.lastName,", ").concat(null===i||void 0===i?void 0:i.firstName," ").concat((null===D||void 0===D?void 0:D.includeMiddleName)?void 0===(null===i||void 0===i?void 0:i.middleName)||null===(null===i||void 0===i?void 0:i.middleName)?"":null===i||void 0===i?void 0:i.middleName:"");break;case p.n.Email:r="".concat(null===i||void 0===i?void 0:i.email);break;default:r=""}return n.a.createElement("div",{key:"".concat(e.type,"_data_row_cell"),style:{overflowWrap:"break-word"}},""!==r&&e.type===p.n.Name&&(null===i||void 0===i?void 0:i.isInstructor)?n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r," ",n.a.createElement("i",null,"(Instructor)")):n.a.createElement(n.a.Fragment,null,e.type===p.n.LicenseDetails&&(null===i||void 0===i?void 0:i.userLicenseDetails)&&(null===i||void 0===i?void 0:i.userLicenseDetails.length)>0?n.a.createElement(n.a.Fragment,null,(null===i||void 0===i?void 0:i.userLicenseDetails)&&(null===i||void 0===i?void 0:i.userLicenseDetails.map((function(t){return n.a.createElement(h.Column,{key:"".concat(e.type,"_data_row_cell_").concat(t.licenseId)},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(t.licenseName,": ").concat(""!==t.barNumber?t.barNumber:"-")}})))})))):n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r)))}}}(e)}));return n.a.createElement(Sc.a,{redirectSignInUrl:"".concat(null!==(l=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",V).replace("{app}","cem"))&&void 0!==l?l:"","login")},n.a.createElement(bc.ExternalScreenBody,{maxWidth:"lg"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:y.printButton},n.a.createElement(h.Box,{width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print")))),n.a.createElement(h.Box,{margin:"20px auto",maxWidth:"1100px"},n.a.createElement(n.a.Fragment,null,void 0===D||void 0===B?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(n.a.Fragment,null,null===B||void 0===B?void 0:B.map((function(e){var t,i,r,a,o,s,l,c,v,f,m,g,b,S,I,O,C=Array(),w=Array(),T=null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,k=(null===e||void 0===e||null===(i=e.title)||void 0===i?void 0:i.trim())!==(null===e||void 0===e||null===(r=e.courseTitle)||void 0===r?void 0:r.trim())?"".concat(null===e||void 0===e?void 0:e.courseTitle," ").concat(Object(x.isEmpty)(null===e||void 0===e||null===(a=e.title)||void 0===a?void 0:a.trim())?"":"(".concat(null===e||void 0===e?void 0:e.title,")")):null===e||void 0===e?void 0:e.courseTitle,L=null!==(o=null===e||void 0===e?void 0:e.courseFormat)&&void 0!==o?o:"",J=(null===e||void 0===e?void 0:e.startDate)?Object(N.c)(null===e||void 0===e?void 0:e.startDate,"MMM DD, YYYY"):"",F=(null===e||void 0===e?void 0:e.endDate)?Object(N.c)(null===e||void 0===e?void 0:e.endDate,"MMM DD, YYYY"):"",R=(null===e||void 0===e?void 0:e.startTime)?null===e||void 0===e?void 0:e.startTime:"",G=(null===e||void 0===e?void 0:e.endTime)&&(null===e||void 0===e?void 0:e.endTime)!==(null===e||void 0===e?void 0:e.startTime)?" - ".concat(null===e||void 0===e?void 0:e.endTime):"",q=null!==(s=null===e||void 0===e?void 0:e.timeZone)&&void 0!==s?s:"",z=null!==(l=null===e||void 0===e?void 0:e.location)&&void 0!==l?l:"-",W=null!==(c=null===e||void 0===e?void 0:e.room)&&void 0!==c?c:"-",V=F&&F!==J?"".concat(J," - ").concat(F):J,_=""===R&&""===G?"-":G?"".concat(R," ").concat(G," ").concat(null===q?"":q):"".concat(R," ").concat(null===q?"":q),Y=null===(v=null!==(f=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==f?f:[])||void 0===v?void 0:v.map((function(e){return"".concat(e.firstName," ").concat(e.lastName)}));if((j&&j)!==p.p.PrintBlank)if(null===D||void 0===D?void 0:D.includeInstructorSignatureOnFirstRow){var $,H,K,X,ee=null!==($=null===e||void 0===e||null===(H=e.sessionInstructors)||void 0===H?void 0:H.map((function(e){var t;return null!==(t=e.userId)&&void 0!==t?t:0})))&&void 0!==$?$:[],ie=null===e||void 0===e||null===(K=e.sessionParticipants)||void 0===K?void 0:K.filter((function(e){var t;return!ee.includes(null!==(t=e.userId)&&void 0!==t?t:0)}));w=(null!==(X=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==X?X:[]).concat(null!==ie&&void 0!==ie?ie:[])}else{var re;w=null!==(re=null===e||void 0===e?void 0:e.sessionParticipants)&&void 0!==re?re:[]}(O=(j&&j)===p.p.PrintBlank?((null===D||void 0===D?void 0:D.blankSignatureLinesNumber)||0)+13:null!==(m=null===D||void 0===D?void 0:D.blankSignatureLinesNumber)&&void 0!==m?m:0,(null===D||void 0===D?void 0:D.blankSignatureLinesNumber)||(j&&j)===p.p.PrintBlank)&&Array.from({length:O},(function(e,t){return t+1})).forEach((function(e){var t=new p.he;t.sessionParticipantId=e,C.push(t)}));var ne=w.concat(null!==C&&void 0!==C?C:[]),ae=null!==(g=null===e||void 0===e||null===(b=e.sessionLicenses)||void 0===b?void 0:b.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==g?g:[];return n.a.createElement(h.Box,{key:T,className:y.boxName},n.a.createElement(h.Box,{className:y.pageName},n.a.createElement(h.Box,{className:y.boxElement},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.Grid,{container:!0,spacing:void 0},(null===D||void 0===D?void 0:D.headerIncludeFirmLogo)&&!Object(x.isEmpty)(d)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement("img",{src:d,alt:"Logo",width:"260px",height:"60px"})),n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"h5",color:"default",align:"center"},(null===D||void 0===D?void 0:D.isSystem)?u:null===D||void 0===D?void 0:D.headerFirmName)),n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Typography,{variant:"h6",color:"default",align:"center"},null===D||void 0===D?void 0:D.headerTitle)),!Object(x.isEmpty)(null===D||void 0===D?void 0:D.headerText)&&n.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.TextEditorView,{model:null!==(S=null===D||void 0===D?void 0:D.headerText)&&void 0!==S?S:""}))))))),n.a.createElement(n.a.Fragment,null,j===p.p.PrintCombined&&0===E?n.a.createElement(n.a.Fragment,null,null===M||void 0===M?void 0:M.map((function(e){return function(e){var t,i,r,a,o,s,l,c,d,u,v,f=(null===e||void 0===e||null===(t=e.title)||void 0===t?void 0:t.trim())!==(null===e||void 0===e||null===(i=e.courseTitle)||void 0===i?void 0:i.trim())?"".concat(null===e||void 0===e?void 0:e.courseTitle," ").concat(Object(x.isEmpty)(null===e||void 0===e||null===(r=e.title)||void 0===r?void 0:r.trim())?"":"(".concat(null===e||void 0===e?void 0:e.title,")")):null===e||void 0===e?void 0:e.courseTitle,m=null!==(a=null===e||void 0===e?void 0:e.courseFormat)&&void 0!==a?a:"",g=(null===e||void 0===e?void 0:e.startDate)?Object(N.c)(null===e||void 0===e?void 0:e.startDate,"MMM DD, YYYY"):"",b=(null===e||void 0===e?void 0:e.endDate)?Object(N.c)(null===e||void 0===e?void 0:e.endDate,"MMM DD, YYYY"):"",S=(null===e||void 0===e?void 0:e.startTime)?null===e||void 0===e?void 0:e.startTime:"",E=(null===e||void 0===e?void 0:e.endTime)&&(null===e||void 0===e?void 0:e.endTime)!==(null===e||void 0===e?void 0:e.startTime)?" - ".concat(null===e||void 0===e?void 0:e.endTime):"",I=null!==(o=null===e||void 0===e?void 0:e.timeZone)&&void 0!==o?o:"",O=null!==(s=null===e||void 0===e?void 0:e.location)&&void 0!==s?s:"-",C=null!==(l=null===e||void 0===e?void 0:e.room)&&void 0!==l?l:"-",j=b&&b!==g?"".concat(g," - ").concat(b):g,w=""===S&&""===E?"-":E?"".concat(S," ").concat(E," ").concat(null===I?"":I):"".concat(S," ").concat(null===I?"":I),T=null===(c=null!==(d=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==d?d:[])||void 0===c?void 0:c.map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),k=null!==(u=null===e||void 0===e||null===(v=e.sessionLicenses)||void 0===v?void 0:v.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})))&&void 0!==u?u:[];return n.a.createElement(h.Box,{className:y.boxElement},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0,disableGutters:!0},n.a.createElement(h.Box,{ml:2,mr:2},n.a.createElement(h.Grid,{container:!0,spacing:void 0,alignContent:"center"},n.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),n.a.createElement(h.Grid,{item:!0,xs:0===Z.length?12:6,lg:0===Z.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:void 0},Q.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Title:a=null!==f&&void 0!==f?f:"";break;case p.o.Format:a=m;break;case p.o.Instructor:a=T.length>0?T.join(", "):"-";break;case p.o.Credits:a="[No Credits]";break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},n.a.createElement(n.a.Fragment,null,r===p.o.Credits&&(null===k||void 0===k?void 0:k.length)>0?n.a.createElement(n.a.Fragment,null,k&&k.map((function(e){var t,i,r="",a="",o=e&&e.licenseStatus===p.Dd.Pending,s=e&&e.licenseStatus===p.Dd.Denied;return n.a.createElement(h.Box,{key:"credits_".concat(e.licenseId),maxWidth:"350px"},null===(t=e.sessionLicenseCredits)||void 0===t?void 0:t.map((function(e){if(void 0!==e.creditValue&&e.creditValue>0){var t="".concat(e.creditName," ").concat(e.creditValue);r=r.concat(t,", ")}})),null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.map((function(e){"Reciprocal"===e.propertyLabel&&(a=a.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(a=a.concat("(".concat(e.propertyLabel,") ")))})),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==r?"".concat(r.slice(0,-2)," ").concat(""!==a?" - ".concat(a):""):"[No Credits]")}}),o&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Pending)")),s&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Denied)")))))}))):n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a)))))})))),n.a.createElement(h.Grid,{item:!0,xs:0===Q.length?12:6,lg:0===Q.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:void 0},Z.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Date:a=j;break;case p.o.Location:a=O;break;case p.o.Time:a=w;break;case p.o.Room:a=C;break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a))))})))),n.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1}))))))))}(e)}))):n.a.createElement(h.Box,{className:y.boxElement},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},n.a.createElement(A.a,{title:""}),n.a.createElement(P.a,{dense:!0,disableGutters:!0},n.a.createElement(h.Box,{ml:2,mr:2},n.a.createElement(h.Grid,{container:!0,spacing:void 0,alignContent:"center"},n.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),n.a.createElement(h.Grid,{item:!0,xs:0===Z.length?12:6,lg:0===Z.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:void 0},Q.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Title:a=null!==k&&void 0!==k?k:"";break;case p.o.Format:a=L;break;case p.o.Instructor:a=Y.length>0?Y.join(", "):"-";break;case p.o.Credits:a="[No Credits]";break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},n.a.createElement(n.a.Fragment,null,r===p.o.Credits&&(null===ae||void 0===ae?void 0:ae.length)>0?n.a.createElement(n.a.Fragment,null,ae&&ae.map((function(e){var t,i,r="",a="",o=e&&e.licenseStatus===p.Dd.Pending,s=e&&e.licenseStatus===p.Dd.Denied;return n.a.createElement(h.Box,{key:"credits_".concat(e.licenseId),maxWidth:"350px"},null===(t=e.sessionLicenseCredits)||void 0===t?void 0:t.map((function(e){if(void 0!==e.creditValue&&e.creditValue>0){var t="".concat(e.creditName," ").concat(e.creditValue);r=r.concat(t,", ")}})),null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.map((function(e){"Reciprocal"===e.propertyLabel&&(a=a.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(a=a.concat("(".concat(e.propertyLabel,") ")))})),n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==r?"".concat(r.slice(0,-2)," ").concat(""!==a?" - ".concat(a):""):"[No Credits]")}}),o&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Pending)")),s&&n.a.createElement(h.Typography,{component:"span"},n.a.createElement("i",null,"(Denied)")))))}))):n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a)))))})))),n.a.createElement(h.Grid,{item:!0,xs:0===Q.length?12:6,lg:0===Q.length?12:5},n.a.createElement(h.Grid,{container:!0,spacing:void 0},Z.map((function(e){var t=e.column,i=e.label,r=e.type,a="";switch(r){case p.o.Date:a=V;break;case p.o.Location:a=z;break;case p.o.Time:a=_;break;case p.o.Room:a=W;break;default:a=""}return n.a.createElement(n.a.Fragment,{key:"".concat(r,"_").concat(t)},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},n.a.createElement(h.Typography,null,n.a.createElement("b",null,i,": "))),n.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},n.a.createElement(h.Box,{maxWidth:"350px"},n.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a))))})))),n.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},n.a.createElement(h.Grid,{item:!0,lg:1,xl:1}))))))))),n.a.createElement(h.Box,{className:y.elementSpacing},n.a.createElement(U,{data:ne,columns:te,width:1100,isResizing:!0})),!Object(x.isEmpty)(null===D||void 0===D?void 0:D.footerText)&&n.a.createElement(h.Box,{className:y.elementSpacing,textAlign:"center"},n.a.createElement(h.TextEditorView,{model:null!==(I=null===D||void 0===D?void 0:D.footerText)&&void 0!==I?I:""})),void 0!==D&&void 0!==B&&n.a.createElement(h.Grid,{container:!0,spacing:"card",className:y.card},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center"},n.a.createElement(h.Box,{mt:3,mb:1},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("b",null,"Micron Systems, Inc."))),n.a.createElement(h.Row,null,n.a.createElement(h.Box,{mr:1,mt:1},n.a.createElement(h.Typography,{variant:"caption"},"Generated by")),n.a.createElement("img",{alt:"",width:"125",height:"30",src:"../../../../images/cemanager-logo.png"})),n.a.createElement(h.Box,{mb:3,mt:1},n.a.createElement(h.Typography,{variant:"caption"},"on ",Object(N.c)(new Date,"MMMM DD, YYYY"))))))))})))))))}))),Pc=Object(s.b)(null,(function(e){return{getDetails:function(t){return e(function(e){return function(t){return q.g.getSessionTemplateDetailsByGuid(e,void 0).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}}(t))}}}))((function(e){var t,i,a,o,l=H(),d=e.getDetails,u=e.match,v=e.history,p=Object(r.useState)(),f=Object(c.a)(p,2),m=f[0],y=f[1],g=u.params.guid,b=Object(r.useCallback)((function(e){y(void 0),d(e).then((function(e){y(e)})).catch((function(){v.push("/error404")}))}),[v,d]);Object(r.useEffect)((function(){b(g)}),[g,b]);var S=null===m||void 0===m?void 0:m.certificateTemplate,E=null===m||void 0===m?void 0:m.sessionDetails,I=null!==(t=null===m||void 0===m?void 0:m.isInstructor)&&void 0!==t&&t,O=null!==(i=null===m||void 0===m?void 0:m.licenseId)&&void 0!==i?i:0,C=null!==(a=null===m||void 0===m?void 0:m.userId)&&void 0!==a?a:0,x=u.url.indexOf("certificate")>0,j=Object(s.c)((function(e){return e.authentication.authenticated})),w=null!==(o=localStorage.getItem("userLoginSessionId"))&&void 0!==o?o:Hr(),P=window.location.hostname.split("."),T=P&&P.length>0?P[0]:"localhost";return x&&!j&&""!==w&&(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",T).replace("{app}","cem"),"users/portal?guid=").concat(g,"&type=","certificate-link")||!1),n.a.createElement(h.ExternalScreen,null,n.a.createElement(h.Box,{margin:"20px auto",maxWidth:"940px"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:l.printButton},n.a.createElement(h.Box,{mr:4,width:"100%",textAlign:"right"},n.a.createElement(h.Button,{onClick:function(){return window.print()},variant:"contained",color:"primary",size:"small"},"Print"))),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignment:"center"},void 0===(null===m||void 0===m?void 0:m.certificateTemplate)||void 0===(null===m||void 0===m?void 0:m.sessionDetails)?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(gi,{certificate:S,sessionDetails:E,isInstructor:I,licenseId:O,userId:C})))))})),Tc=function(e){var t,i=e.match.params.guid,r=window.location.hostname.split("."),a=r&&r.length>0?r[0]:"localhost";return n.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",a).replace("{app}","cem"))&&void 0!==t?t:"","login")},n.a.createElement(bc.ExternalScreenBody,{maxWidth:!1},n.a.createElement(qn,{guid:i,userId:0,licenseId:0,userLicenses:void 0})))},Ac=function(e,t){return n.a.createElement(h.Box,{m:1},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:2,mb:1,alignItems:"center"},n.a.createElement(h.Column,{crossAxisAlignment:"center"},n.a.createElement(h.Typography,{variant:"h3",color:"textPrimary"},e),t&&n.a.createElement(h.Typography,{variant:"h6"},null===t||void 0===t?void 0:t.firstName," ",null===t||void 0===t?void 0:t.lastName),n.a.createElement(h.Typography,{variant:"caption"},Object(N.c)((new Date).toString(),"MMM DD, YYYY, hh:mm A"))))))))},Nc=Object(s.b)(null,(function(e){return{declineSessionEvaluation:function(t){return e(function(e){return function(t){return q.R.declineSessionEvaluationByGuid(e,void 0).then((function(e){return e})).catch((function(e){t("Invalid Guid"===e?Object(M.a)({message:e,variant:"error"}):Object(M.b)(e))}))}}(t))},getAllSessionInstructors:function(t){return e(gr(t))}}}))((function(e){var t,i,a,o,s,l,d,u,v,p,f,m=e.declineSessionEvaluation,y=e.getAllSessionInstructors,g=e.match,b=Object(r.useState)(),S=Object(c.a)(b,2),E=S[0],I=S[1],O=Object(r.useState)(void 0),C=Object(c.a)(O,2),x=C[0],j=C[1],w=g.params.guid,P=window.location.hostname.split("."),T=P&&P.length>0?P[0]:"localhost";Object(r.useEffect)((function(){m(w).then((function(e){var t;y(null!==(t=e.sessionId)&&void 0!==t?t:0).then((function(e){j(e)})),I(e)}))}),[m,w,y]);var A;return n.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",T).replace("{app}","cem"))&&void 0!==t?t:"","login")},n.a.createElement(bc.ExternalScreenHeader,{maxWidth:"lg"},Ac("Decline Confirmation")),n.a.createElement(bc.ExternalScreenBody,{maxWidth:"lg"},n.a.createElement(h.Backdrop,{open:!E},n.a.createElement(h.CircularProgress,{color:"secondary"})),(null===E||void 0===E?void 0:E.course)&&(null===E||void 0===E?void 0:E.session)&&n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Box,{marginBottom:2},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"subtitle2"},null===E||void 0===E?void 0:E.firstName," ",null!==(i=E.middleName)&&void 0!==i?i:""," ",null===E||void 0===E?void 0:E.lastName)),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Typography,{variant:"subtitle2"},"You have declined evaluation of the following course:")))),n.a.createElement(h.Card,{variant:"outlined",status:"primary"},n.a.createElement(h.CardHeader,{style:{padding:"8px"},title:n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{p:1,pr:2,my:"auto"},n.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===E||void 0===E||null===(a=E.course)||void 0===a?void 0:a.title),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null===E||void 0===E||null===(o=E.course)||void 0===o?void 0:o.provider)))}),n.a.createElement(h.Collapse,{in:!0},n.a.createElement(h.Divider,null),n.a.createElement(h.CardContent,null,n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},n.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(s=null===E||void 0===E?void 0:E.session.startDate)&&void 0!==s?s:new Date})),n.a.createElement(h.Box,{flex:1,my:"auto"},(null===(l=E.session.title)||void 0===l?void 0:l.trim())!==(null===(d=E.course.title)||void 0===d?void 0:d.trim())&&n.a.createElement(h.Box,{mb:.5},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},E.session.title)),n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},(null===E||void 0===E?void 0:E.session.startTime)?"".concat(null===E||void 0===E?void 0:E.session.startTime):"",(null===E||void 0===E?void 0:E.session.endTime)?" - ".concat(null===E||void 0===E?void 0:E.session.endTime):""," ",(null===E||void 0===E?void 0:E.session.startTime)||(null===E||void 0===E?void 0:E.session.endTime)?" ".concat(null!==(u=null===E||void 0===E?void 0:E.session.timezone)&&void 0!==u?u:"","; "):"",Object(N.c)(null===E||void 0===E?void 0:E.session.startDate,"MMM DD, YYYY")||"",(null===E||void 0===E?void 0:E.session.endDate)&&Object(N.c)(null===E||void 0===E?void 0:E.session.endDate,"MMM DD, YYYY")!==Object(N.c)(null===E||void 0===E?void 0:E.session.startDate,"MMM DD, YYYY")&&" - ".concat(Object(N.c)(null===E||void 0===E?void 0:E.session.endDate,"MMM DD, YYYY")||"")))),((null===E||void 0===E?void 0:E.session.location)||(null===E||void 0===E?void 0:E.session.room))&&n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},null===E||void 0===E?void 0:E.session.location,(null===E||void 0===E?void 0:E.session.room)?"; ".concat(null===E||void 0===E?void 0:E.session.room):""))),n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return n.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(v=null===(p=E.session.courseFormat)||void 0===p?void 0:p.portalCategory)&&void 0!==v?v:"")),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},null===E||void 0===E||null===(f=E.session.courseFormat)||void 0===f?void 0:f.name)))),n.a.createElement(h.Box,{flex:1,my:"auto"},x&&x.length>0&&(A={icon:n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center",justifyItems:"center"}},n.a.createElement(h.Typography,{variant:"body2"},"Instructor(s): ",x.map((function(e){return e.fullName})).join(", ")))},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{mb:.1,mr:.5,textAlign:"center",style:{width:"20px"}},A.icon),A.label)))),(null===E||void 0===E?void 0:E.session.detail)&&n.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:L(null===E||void 0===E?void 0:E.session.detail)}})))))))})),kc=Object(s.b)(null,(function(e){return{confirmDialog:function(t){return e(Object($n.b)(t))},getSessionEvaluation:function(t){return e(function(e){return function(t){return q.R.getSessionEvaluationByGuid(e,void 0).then((function(e){return e})).catch((function(e){t("Invalid Guid"===e?Object(M.a)({message:e,variant:"error"}):Object(M.b)(e))}))}}(t))},getAllSessionInstructors:function(t){return e(gr(t))},saveSessionEvaluationAnswers:function(t,i,r,n){return e(function(e,t,i,r){return function(n){return q.R.saveSupportingPageSessionEvaluationAnswers(e,void 0,p.Yd.fromJS({sessionEvaluationId:t,answers:i,isSubmit:"submit"===r})).then((function(e){return"save"===r?n(Object(M.a)({message:"Save Successful!",variant:"success"})):"submit"===r&&n(Object(M.a)({message:"Submit Successful!",variant:"success"})),e})).catch((function(e){throw n(Object(M.b)(e)),e}))}}(t,i,r,n))}}}))(Object($a.a)((function(e){var t,i,a,o,s,l,d,u,v,p,f,m=e.getAllSessionInstructors,y=e.getSessionEvaluation,g=e.confirmDialog,b=e.saveSessionEvaluationAnswers,S=e.match,E=Object(r.useState)(),I=Object(c.a)(E,2),O=I[0],C=I[1],x=Object(r.useState)(),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)(void 0),A=Object(c.a)(T,2),k=A[0],D=A[1],F=Object(r.useState)(void 0),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(void 0),q=Object(c.a)(G,2),M=q[0],z=q[1],W=Object(r.useState)(void 0),V=Object(c.a)(W,2),_=V[0],Y=V[1],$=Object(r.useState)(!1),H=Object(c.a)($,2),K=H[0],Q=H[1],Z=Object(r.useState)(!0),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(!0),re=Object(c.a)(ie,2),ne=re[0],ae=re[1],oe=Object(r.useState)("save"),se=Object(c.a)(oe,2),le=se[0],ce=se[1],de=Object(r.useState)(!1),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)(!1),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(!1),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)(!1),Oe=Object(c.a)(Ie,2)[1],Ce=Object(r.useState)(void 0),xe=Object(c.a)(Ce,2),je=xe[0],we=xe[1],Pe=S.params.guid,Te=window.location.hostname.split("."),Ae=Te&&Te.length>0?Te[0]:"localhost",Ne=function(e){var t=new Array;return e.forEach((function(e){var i=null===M||void 0===M?void 0:M.filter((function(t){return t.questionId===e.questionId&&(t.instructorId===e.instructorId||null===t.instructorId)})),r=0;i&&(null===i||void 0===i?void 0:i.length)>0&&(r=i[0].sessionEvaluationAnswerId||0),t.push({sessionEvaluationAnswerId:r,sessionEvaluationId:null===O||void 0===O?void 0:O.sessionEvaluationId,questionId:e.questionId,instructorId:e.instructorId,answer:e.answer})})),t};Object(r.useEffect)((function(){y(Pe).then((function(e){var t;C(e),function(e){var t=new Array;null===e||void 0===e||e.forEach((function(e){t.push({questionId:e.questionId||0,initialAnswer:e.answer||"",answer:e.answer||"",isValid:!1,isCommentValid:!1,instructorId:e.instructorId})})),z(e),Y(t)}((null===e||void 0===e?void 0:e.sessionEvaluationAnswers)||[]),Oe(!1),m(null!==(t=e.sessionId)&&void 0!==t?t:0).then((function(e){we(e)})),Q(!!(null===e||void 0===e?void 0:e.evaluationDate)),P(null===e||void 0===e?void 0:e.evaluation)}))}),[y,Pe,m]),Object(r.useEffect)((function(){w&&(D((null===w||void 0===w?void 0:w.sections)&&(null===w||void 0===w?void 0:w.sections.length)>0&&(null===w||void 0===w?void 0:w.sections[0].questions)&&(null===w||void 0===w?void 0:w.sections[0].questions.length)>0?null===w||void 0===w?void 0:w.sections[0].questions[0]:void 0),U((null===w||void 0===w?void 0:w.sections)&&(null===w||void 0===w?void 0:w.sections.length)>0?null===w||void 0===w?void 0:w.sections[0].sectionId:void 0),te(!((null===w||void 0===w?void 0:w.sections)&&(null===w||void 0===w?void 0:w.sections.length)>0&&((null===w||void 0===w?void 0:w.sections.length)>1||(null===w||void 0===w?void 0:w.sections[0].questions)&&(null===w||void 0===w?void 0:w.sections[0].questions.length)>1))))}),[w]);var ke,De=function(){var e,t,i,r,n,a,o,s,l,c,d,u,h,v,p,f=Object(J.a)({},k),m=null===w||void 0===w||null===(e=w.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===R}))[0];m&&m.questions&&(null!==(t=f.sequence)&&void 0!==t?t:0)===m.questions.length?(m=null===w||void 0===w||null===(c=w.sections)||void 0===c?void 0:c.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=m)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)+1}))[0],f=(null===(d=m)||void 0===d||null===(u=d.questions)||void 0===u?void 0:u.filter((function(e){return 1===e.sequence}))[0])||void 0,U(null===(h=m)||void 0===h?void 0:h.sectionId),D(f)):(f=(null===(v=m)||void 0===v||null===(p=v.questions)||void 0===p?void 0:p.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=f)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)+1}))[0])||void 0,D(f));(null===(i=m)||void 0===i?void 0:i.sequence)!==(null===w||void 0===w||null===(r=w.sections)||void 0===r?void 0:r.length)||(null===(n=f)||void 0===n?void 0:n.sequence)!==(null===(a=m)||void 0===a||null===(o=a.questions)||void 0===o?void 0:o.length)&&0!==(null===(s=m)||void 0===s||null===(l=s.questions)||void 0===l?void 0:l.length)||te(!0),ne&&ae(!1)},Le=function(){var e,t,i,r,n,a,o,s,l,c,d,u,h=Object(J.a)({},k),v=null===w||void 0===w||null===(e=w.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===R}))[0];(null!==(t=h.sequence)&&void 0!==t?t:0)-1<1?(v=null===w||void 0===w||null===(o=w.sections)||void 0===o?void 0:o.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=v)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0],h=(null===(s=v)||void 0===s||null===(l=s.questions)||void 0===l?void 0:l.filter((function(e){var t,i;return e.sequence===(null===(t=v)||void 0===t||null===(i=t.questions)||void 0===i?void 0:i.length)}))[0])||void 0,U(null===(c=v)||void 0===c?void 0:c.sectionId),D(h)):(h=(null===(d=v)||void 0===d||null===(u=d.questions)||void 0===u?void 0:u.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=h)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0])||void 0,D(h));1!==(null===(i=v)||void 0===i?void 0:i.sequence)||1!==(null===(r=h)||void 0===r?void 0:r.sequence)&&0!==(null===(n=v)||void 0===n||null===(a=n.questions)||void 0===a?void 0:a.length)||ae(!0),ee&&te(!1)},Je=function(e){ce(e),"save"!==e&&ve(!0)},Fe=function(e,t){ye(!0),b(Pe,(null===O||void 0===O?void 0:O.sessionEvaluationId)||0,e,t).then((function(e){Oe(!1),ye(!1),z(e),"submit"===t&&Q(!0)}))},Be=function(){Je("submit")};return n.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",Ae).replace("{app}","cem"))&&void 0!==t?t:"","login")},n.a.createElement(bc.ExternalScreenHeader,{maxWidth:"lg"},Ac("Evaluation Request")),n.a.createElement(bc.ExternalScreenBody,{maxWidth:"lg"},n.a.createElement(h.Backdrop,{open:!O||!w||!M},n.a.createElement(h.CircularProgress,{color:"secondary"})),(null===O||void 0===O?void 0:O.course)&&(null===O||void 0===O?void 0:O.session)&&n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Card,{variant:"outlined",status:"primary"},n.a.createElement(h.CardHeader,{style:{padding:"8px"},title:n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{p:1,pr:2,my:"auto"},n.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===O||void 0===O||null===(i=O.course)||void 0===i?void 0:i.title),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null===O||void 0===O||null===(a=O.course)||void 0===a?void 0:a.provider)),n.a.createElement(h.Box,{p:1,my:"auto"},n.a.createElement(h.IconButton,{onClick:function(){return Ee(!Se)}},n.a.createElement(h.SystemIcon,{icon:Se?"CollapseVertical":"ExpandVertical",size:"md"}))))}),n.a.createElement(h.Collapse,{in:Se},n.a.createElement(h.Divider,null),n.a.createElement(h.CardContent,null,n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},n.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(o=null===O||void 0===O?void 0:O.session.startDate)&&void 0!==o?o:new Date})),n.a.createElement(h.Box,{flex:1,my:"auto"},(null===(s=O.session.title)||void 0===s?void 0:s.trim())!==(null===(l=O.course.title)||void 0===l?void 0:l.trim())&&n.a.createElement(h.Box,{mb:.5},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},O.session.title)),n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},(null===O||void 0===O?void 0:O.session.startTime)?"".concat(null===O||void 0===O?void 0:O.session.startTime):"",(null===O||void 0===O?void 0:O.session.endTime)?" - ".concat(null===O||void 0===O?void 0:O.session.endTime):""," ",(null===O||void 0===O?void 0:O.session.startTime)||(null===O||void 0===O?void 0:O.session.endTime)?" ".concat(null!==(d=null===O||void 0===O?void 0:O.session.timezone)&&void 0!==d?d:"","; "):"",Object(N.c)(null===O||void 0===O?void 0:O.session.startDate,"MMM DD, YYYY")||"",(null===O||void 0===O?void 0:O.session.endDate)&&(null===O||void 0===O?void 0:O.session.endDate)!==(null===O||void 0===O?void 0:O.session.startDate)&&" - ".concat(Object(N.c)(null===O||void 0===O?void 0:O.session.endDate,"MMM DD, YYYY")||"")))),((null===O||void 0===O?void 0:O.session.location)||(null===O||void 0===O?void 0:O.session.room))&&n.a.createElement(h.Box,{display:"flex",mb:.5},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},null===O||void 0===O?void 0:O.session.location,(null===O||void 0===O?void 0:O.session.room)?"; ".concat(null===O||void 0===O?void 0:O.session.room):""))),n.a.createElement(h.Box,{display:"flex"},n.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return n.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return n.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return n.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(u=null===(v=O.session.courseFormat)||void 0===v?void 0:v.portalCategory)&&void 0!==u?u:"")),n.a.createElement(h.Box,{flex:1},n.a.createElement(h.Typography,{variant:"body1"},null===O||void 0===O||null===(p=O.session.courseFormat)||void 0===p?void 0:p.name)))),n.a.createElement(h.Box,{flex:1,my:"auto"},je&&je.length>0&&(ke={icon:n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:n.a.createElement(h.Box,{style:{display:"flex",alignItems:"center",justifyItems:"center"}},n.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",je.map((function(e){return e.fullName})).join(", ")))},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{mb:.1,mr:.5,textAlign:"center",style:{width:"20px"}},ke.icon),ke.label)))),(null===O||void 0===O?void 0:O.session.detail)&&n.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:L(null===O||void 0===O?void 0:O.session.detail)}}))))),n.a.createElement(h.Box,{mb:8},O&&w&&_&&je?n.a.createElement(Br,{disabled:K,evaluation:w,currentQuestion:k,currentSectionId:R,validate:he,evaluationAnswers:_,instructors:je,setValidate:ve,onValidate:function(e,t){if("next"===le||"back"===le){var i=t.filter((function(e){return e.questionId===(null===k||void 0===k?void 0:k.questionId)}));if(0===i.length||i.length>0&&i[0].isValid&&i[0].isCommentValid){var r=Ne(i);K||Fe(r,le),"next"===le?De():Le()}}else if("submit"===le&&e){!function(e){g({message:"Are you sure you want to submit this evaluation?",title:"Confirm Submit",OnConfirm:function(){Fe(e,"submit")}})}(Ne(t))}},onChange:function(e){Y(e),e.filter((function(e){return e.answer!==e.initialAnswer})).length>0?Oe(!0):Oe(!1)},tokens:{firstName:(null===O||void 0===O?void 0:O.firstName)||"",lastName:(null===O||void 0===O?void 0:O.lastName)||"",office:(null===O||void 0===O?void 0:O.location)||"",department:(null===O||void 0===O||null===(f=O.departments)||void 0===f?void 0:f.map((function(e){return e.name})).join(", "))||""}}):n.a.createElement(Ia,{type:"filter-drawer"}))),w&&M&&n.a.createElement(bc.ExternalScreenFooter,{maxWidth:"lg"},n.a.createElement(h.Hidden,{smDown:!0},!K&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"}),n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"outlined",onClick:function(){!function(){Je("save");var e=Ne(_||[]);Fe(e,"save")}()},disabled:"save"!==le&&me,loading:"save"===le&&me},"Save")),n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Be()},disabled:"submit"!==le&&me,loading:"submit"===le&&me},"Submit")),n.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"}))),n.a.createElement(h.Hidden,{mdUp:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})),n.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"default",variant:"contained",type:"submit",onClick:function(){K?Le():Je("back")},disabled:ne||me&&"submit"===le},"Back")),ee?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Be()},disabled:K,loading:"submit"===le&&me},"Submit"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){K?De():Je("next")},disabled:ee},"Next")))),n.a.createElement(h.Hidden,{xsDown:!0},n.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})))))}))),Dc=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{addLearningPlanParticipants:function(t,i){return e(Object(Kl.a)(t,[i]))},deleteLearningPlanParticipantById:function(t,i){return e(Object(Kl.c)([t],i))},getLearningPlanRegistrationLinkDetailsByGuid:function(t,i){return e(Object(Kl.f)(t,i))},setType:function(t){return e(Object(O.h)(t))},showConfirmation:function(t){return e(Object($n.b)(t))}}})),Lc=Object(Tl.a)(Dc((function(e){var t,i,a,o,l,d,u=e.addLearningPlanParticipants,v=e.deleteLearningPlanParticipantById,f=e.getLearningPlanRegistrationLinkDetailsByGuid,m=e.match,y=e.showConfirmation,g=e.userId,b=e.setType,S=e.history,I=Object(r.useState)(),O=Object(c.a)(I,2),C=O[0],x=O[1],j=E(p.Kd.ManagePortalLearningPlans),w=E(p.Kd.ViewPortalLearningPlans),P=E(p.Kd.DeletePortalLearningPlans),T=m.params.guid,A=Object(s.c)((function(e){return e.authentication.authenticated})),k=window.location.hostname.split("."),D=k&&k.length>0?k[0]:"localhost";Object(r.useEffect)((function(){b(null)}),[b]),Object(r.useEffect)((function(){x(void 0),b(null),g&&f(T,g).then((function(e){x(e)}))}),[T,f,g,b]);var L=null!==(t=localStorage.getItem("userLoginSessionId"))&&void 0!==t?t:Hr();A||""===L?A||""!==L||(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",D).replace("{app}","cem"),"login?guid=").concat(T,"&type=learning-plan-link")||!1):window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",D).replace("{app}","cem"),"users/portal?guid=").concat(T,"&type=learning-plan-link")||!1;var J=null===C||void 0===C||null===(i=C.learningPlanCourses)||void 0===i?void 0:i.filter((function(e){return 2!==e.type})),F=null===C||void 0===C||null===(a=C.learningPlanCourses)||void 0===a?void 0:a.filter((function(e){return 1!==e.type})),B=null===C||void 0===C?void 0:C.learningPlanActivities,R=C&&(null===(o=C.learningPlanParticipants)||void 0===o?void 0:o.filter((function(e){return e.userId===g})))&&(null===(l=C.learningPlanParticipants)||void 0===l?void 0:l.filter((function(e){return e.userId===g})).length)>0;return n.a.createElement(n.a.Fragment,null,n.a.createElement(Sc.a,{redirectSignInUrl:"".concat(null!==(d=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",D).replace("{app}","cem"))&&void 0!==d?d:"","login")},n.a.createElement(bc.ExternalScreenBody,{maxWidth:"lg"},n.a.createElement(h.Box,{textAlign:"right",mt:4,mb:4},w?n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){S.push("/learning-plans")}},"Redirect to Portal Learning Plans"):n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){S.push("/home")}},"Redirect to Portal Home")),void 0===C?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Backdrop,{open:void 0===C},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardHeader,{title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"})),n.a.createElement(h.CardActions,null,n.a.createElement(h.Skeleton,{width:"30%"})))):w?n.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},n.a.createElement(h.Expanded,{mb:2},n.a.createElement(Yl,{isRegistered:Boolean(R),learningPlan:C||{},showAllDescription:!0,hasManagePermission:j,hasDeletePermission:P,showDetailDrawer:!1,onUserRegister:function(){return function(){var e=new p.pd({userId:g,isIncluded:!0,criteriaMet:[],participantCriteriaStatus:p.jb.SelfRegistered});g&&(null===C||void 0===C?void 0:C.learningPlanId)&&u(null===C||void 0===C?void 0:C.learningPlanId,e).then((function(){x(void 0),f(T,g).then((function(e){x(e)}))}))}()},onUserCancelRegistration:function(){y({message:"Are you sure you want to cancel your registration for this learning plan?",title:"Cancel Registration",OnConfirm:function(){g&&C&&C.learningPlanId&&v(g,null===C||void 0===C?void 0:C.learningPlanId).then((function(){x(void 0),f(T,g).then((function(e){x(e)}))}))}})},isRegistrationClosed:Object(N.e)(fn()(new Date).format("LL"))>Object(N.e)(fn()(C.endDate).format("LL"))&&1===C.timeframeOfCompletion||void 0!==C.archivedDate||!C.isSelfEnrolled})),2!==C.type&&J&&Number(C.mandatoryCount)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Vl,{requirements:J,type:1,learningPlanId:C.learningPlanId})),1!==C.type&&F&&Number(C.learnersChoiceCount)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Vl,{requirements:F,type:2,learningPlanId:C.learningPlanId,count:C.requiredCourses})),B&&Number(C.activityCount)>0&&n.a.createElement(h.Expanded,null,n.a.createElement(Vl,{requirements:B,type:3,learningPlanId:C.learningPlanId}))):n.a.createElement(h.Box,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"Sorry, you don't have access to this information. Please contact the system administrator."))))))}))),Jc=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId}}),(function(e){return{getLearningPlanReport:function(t){return e(Object(Kl.g)(t))},setType:function(t){return e(Object(O.h)(t))}}}))((function(e){var t,i,a,o,l,d,u,v,f,m,y=e.getLearningPlanReport,g=e.match,b=e.userId,S=e.setType,I=e.history,O=Object(r.useState)(),C=Object(c.a)(O,2),x=C[0],j=C[1],w=Object(r.useState)(!1),P=Object(c.a)(w,2),T=P[0],A=P[1],N=E(p.Kd.ViewPortalLearningPlans),k=g.params.guid,D=Object(s.c)((function(e){return e.authentication.authenticated})),L=window.location.hostname.split("."),J=L&&L.length>0?L[0]:"localhost",F=function(){var e,t=null!==(e=localStorage.getItem("userLoginSessionId"))&&void 0!==e?e:Hr();D||""===t||(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",J).replace("{app}","cem"),"users/portal?guid=").concat(k,"&type=learning-plan-report")||!1),D||""!==t||(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",J).replace("{app}","cem"),"login?guid=").concat(k,"&type=learning-plan-report")||!1)};return Object(r.useEffect)((function(){var e,t=null!==(e=localStorage.getItem("userLoginSessionId"))&&void 0!==e?e:document.cookie.substring(document.cookie.search("sessionId=")+10);A(!(!D&&""===t||!D&&""!==t))}),[D,b]),Object(r.useEffect)((function(){S(null)}),[S]),Object(r.useEffect)((function(){S(null),j(void 0),y(k).then((function(e){j(e)}))}),[k,y,S]),n.a.createElement(n.a.Fragment,null,n.a.createElement(Sc.a,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",J).replace("{app}","cem"))&&void 0!==t?t:"","login")},n.a.createElement(bc.ExternalScreenHeader,{maxWidth:"xl"},Ac("Learning Plan Report",null===x||void 0===x?void 0:x.user)),n.a.createElement(bc.ExternalScreenBody,{maxWidth:"lg"},T&&n.a.createElement(h.Box,{textAlign:"right",mb:4},N?n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){I.push("/learning-plans")}},"Redirect to Portal Learning Plans"):n.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){I.push("/home")}},"Redirect to Portal Home")),void 0===x?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},null!==(null===x||void 0===x?void 0:x.userLearningPlan)&&void 0!==(null===x||void 0===x?void 0:x.userLearningPlan)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Expanded,{mb:2},n.a.createElement(Dl,{learningPlan:(null===x||void 0===x?void 0:x.userLearningPlan)||{},showAllDescription:!0})),2!==(null===x||void 0===x||null===(i=x.userLearningPlan)||void 0===i?void 0:i.type)&&n.a.createElement(h.Expanded,null,n.a.createElement(Gl,{requirements:(null===x||void 0===x||null===(a=x.learningPlanParticipantRequirementList)||void 0===a||null===(o=a.learningPlanParticipantRequirements)||void 0===o?void 0:o.filter((function(e){return 1===e.requirementType})))||[],type:1,onClick:T?void 0:function(){return F()}})),1!==(null===x||void 0===x||null===(l=x.userLearningPlan)||void 0===l?void 0:l.type)&&n.a.createElement(h.Expanded,null,n.a.createElement(Gl,{count:(null===(d=x.userLearningPlan)||void 0===d?void 0:d.requiredCourses)||0,requirements:(null===x||void 0===x||null===(u=x.learningPlanParticipantRequirementList)||void 0===u||null===(v=u.learningPlanParticipantRequirements)||void 0===v?void 0:v.filter((function(e){return 2===e.requirementType})))||[],type:2,onClick:T?void 0:function(){return F()}})),n.a.createElement(h.Expanded,null,n.a.createElement(Gl,{requirements:(null===x||void 0===x||null===(f=x.learningPlanParticipantRequirementList)||void 0===f||null===(m=f.learningPlanParticipantRequirements)||void 0===m?void 0:m.filter((function(e){return 3===e.requirementType})))||[],type:3,onClick:T?void 0:function(){return F()}}))):n.a.createElement(h.Expanded,{mt:1,mb:1,flex:1},n.a.createElement(h.Box,{maxWidth:400,margin:"0 auto"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"You are no longer registered on this learning plan.")))))))})),Fc=Object(V.makeStyles)((function(e){return{large:{width:e.spacing(8),height:e.spacing(8)},cardContainer:{minHeight:"80px",flexDirection:"unset",backgroundColor:"#FAFAFA",borderColor:"none",borderWidth:1},cardContainerHover:{borderColor:"#239BD8",borderWidth:2}}})),Bc=Object(s.b)(null,(function(e){return{downloadFile:function(t){return e((i=t,function(e){return q.D.downloadFileFromInvite(i,void 0).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(t){throw e(Object(M.b)(t)),t}))}));var i},getDetails:function(t){return e(function(e){return function(t){return q.D.getFileByGuid(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))}}}))((function(e){var t,i=e.downloadFile,a=e.getDetails,o=e.match,s=e.history,l=o.params.guid,d=Object(r.useState)(),u=Object(c.a)(d,2),v=u[0],p=u[1],f=Object(r.useState)(!1),m=Object(c.a)(f,2),y=m[0],g=m[1],b=Object(r.useState)(0),S=Object(c.a)(b,2),E=S[0],I=S[1],O=Object(r.useState)(0),C=Object(c.a)(O,2),x=C[0],j=C[1],w=Fc(),P=window.location.hostname.split("."),T=P&&P.length>0?P[0]:"localhost",A=Object(r.useCallback)((function(e){p(void 0),a(e).then((function(e){var t;p(e),I(null!==(t=e.activeFile)&&void 0!==t?t:0)})).catch((function(){s.push("/error404")}))}),[s,a]);Object(r.useEffect)((function(){A(l)}),[l,A]);var k=function(e){j(e),g(!0),i(e).then((function(){g(!1)}))};return n.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",T).replace("{app}","cem"))&&void 0!==t?t:"","login")},n.a.createElement(bc.ExternalScreenHeader,{maxWidth:"md"},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:2,mb:1,alignItems:"center"},n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.SystemIcon,{icon:"Download",size:"md"}),n.a.createElement(h.Box,{ml:2},n.a.createElement(h.Typography,{variant:"h3",color:"textPrimary"},"File Download")))))))),n.a.createElement(bc.ExternalScreenBody,{maxWidth:"md"},void 0===v?n.a.createElement(h.Backdrop,{open:!0},n.a.createElement(h.CircularProgress,{color:"secondary"})):n.a.createElement(n.a.Fragment,null,v.files&&v.files.map((function(e){var t,i,r,a,o="link"===e.type;return n.a.createElement(h.Box,{key:e.fileId,m:1},n.a.createElement(h.Card,{variant:"outlined",className:Object(Va.default)(w.cardContainer,Object(Sa.a)({},w.cardContainerHover,E===(null!==(t=e.fileId)&&void 0!==t?t:0))),onMouseEnter:function(){var t;return I(null!==(t=e.fileId)&&void 0!==t?t:0)}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:2,style:{alignSelf:"center"}},n.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},n.a.createElement(h.Avatar,{variant:"circular",className:w.large,colorMode:"light",style:{color:"#424242",backgroundColor:"#e2e2e2"}},n.a.createElement(Qn,{fileExtension:null!==(i=e.extension)&&void 0!==i?i:"",size:"lg",type:"duotone",linkFlag:o})))),n.a.createElement(h.Grid,{item:!0,xs:8,stretchContent:!0},n.a.createElement(h.Column,{crossAxisAlignment:"left",mainAxisAlignment:"middle"},n.a.createElement(h.Typography,{variant:"subtitle1"},n.a.createElement(h.Link,{style:{whiteSpace:"pre-wrap"},onClick:function(){if(o)window.open(e.url,"_blank");else{if(!v||(null===v||void 0===v?void 0:v.activeFile)!==e.fileId)return;var t;k(null!==(t=e.fileId)&&void 0!==t?t:0)}},underline:"none"},e.title)),n.a.createElement(h.Typography,{variant:"body1"},o?e.url:e.name))),n.a.createElement(h.Grid,{item:!0,xs:2,style:{alignSelf:"center",textAlign:"center"}},E===(null!==(r=e.fileId)&&void 0!==r?r:0)?n.a.createElement(h.IconButton,{onClick:function(){var t;o?window.open(e.url,"_blank"):k(null!==(t=e.fileId)&&void 0!==t?t:0)},size:"small"},o?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.SystemIcon,{icon:"Url",color:"info",type:"light",size:"sm"})):n.a.createElement(n.a.Fragment,null,y&&x===(null!==(a=e.fileId)&&void 0!==a?a:0)?n.a.createElement(h.SystemIcon,{icon:"Loading",color:"info",spin:!0,type:"light",size:"sm"}):n.a.createElement(h.SystemIcon,{icon:"DataExport",color:"info",type:"light",size:"sm"}))):n.a.createElement(h.Typography,{variant:"subtitle1",align:"center"},o?n.a.createElement(n.a.Fragment,null):n.a.createElement(n.a.Fragment,null,Object(N.g)(e.size||0)))))))})))))})),Rc=i(2),Uc=Object(s.b)(null,(function(e){return{getReport:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e(yr(t,i))}}})),Gc=function(e){if(e){var t=function(e,t){var i,r=[],n=new Map,a=Object(Rc.a)(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;n.has(o[t])||(n.set(o[t],!0),r.push("".concat(o[t])))}}catch(s){a.e(s)}finally{a.f()}return r}(e,"licenseFullName");return null===t||void 0===t?void 0:t.map((function(t){var i,r=null===e||void 0===e||null===(i=e.filter((function(e){return e.licenseFullName===t})))||void 0===i?void 0:i.map((function(e){var t;return(null!==(t=e.value)&&void 0!==t?t:0)>0&&n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{ml:1,mr:1},n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("strong",null,e.value))),n.a.createElement(h.Typography,{variant:"caption"},e.creditName))}));return n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1"},t),n.a.createElement(h.Column,null,r))}))}return"No Credits"},qc=Uc((function(e){var t,i,a,o,s,l,d,u,v=e.getReport,p=e.match,f=e.history,m=Object(r.useState)(),y=Object(c.a)(m,2),g=y[0],b=y[1],S=p.params.guid,E=window.location.hostname.split("."),I=E&&E.length>0?E[0]:"localhost",O=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;b(void 0),v(e,t).then((function(e){b(e)})).catch((function(){f.push("/error404")}))}),[f,v]);Object(r.useEffect)((function(){O(S,0)}),[S,O]);return n.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",I).replace("{app}","cem"))&&void 0!==t?t:"","login")},n.a.createElement(bc.ExternalScreenHeader,{maxWidth:"xl"},Ac("Transcript Report",null===g||void 0===g?void 0:g.user)),n.a.createElement(bc.ExternalScreenBody,{maxWidth:"xl"},g&&n.a.createElement(h.Box,{m:1},n.a.createElement(h.Grid,{container:!0,alignItems:"flex-end"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.SelectField,{value:null===g||void 0===g?void 0:g.licenseId,formikContext:!1,startAdornment:"Filter By:",id:"filterType",onChange:function(e){O(S,e.target.value)},dense:!0},n.a.createElement(h.MenuItem,{value:-1},"All Courses and Activities"),n.a.createElement(h.MenuItem,{disabled:!0,value:""},n.a.createElement("em",null,n.a.createElement("b",null,"License"))),(null===g||void 0===g||null===(i=g.user)||void 0===i?void 0:i.userLicense)&&(null===(a=g.user)||void 0===a||null===(o=a.userLicense)||void 0===o?void 0:o.sort((function(e,t){var i,r,n,a;return(null!==(i=e.name)&&void 0!==i?i:"")>(null!==(r=t.name)&&void 0!==r?r:"")?1:(null!==(n=e.name)&&void 0!==n?n:"")<(null!==(a=t.name)&&void 0!==a?a:"")?-1:0})).map((function(e){return n.a.createElement(h.MenuItem,{key:e.licenseId,value:e.licenseId},n.a.createElement(h.Box,{ml:2},e.name))}))))),0===((null===(s=g.transcript)||void 0===s||null===(l=s.userTranscripts)||void 0===l?void 0:l.length)||0)&&n.a.createElement(h.Grid,{container:!0,justify:"center"},n.a.createElement(h.Grid,{item:!0,alignment:"center",stretchContent:!0,lg:4,md:6,xs:12,alignItems:"center"},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found"))))),void 0===g?n.a.createElement(n.a.Fragment,null,[2020,2019,2018,2017].map((function(e){return n.a.createElement(h.Grid,{item:!0,xs:12,key:e},n.a.createElement(h.Box,{m:1},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{width:"100%"},n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1"},n.a.createElement(h.Box,{ml:1},n.a.createElement(A.a,{title:n.a.createElement(h.Skeleton,{width:"100%"})}))),n.a.createElement(h.Box,{width:"100%"},n.a.createElement(P.a,null,n.a.createElement(h.Skeleton,{width:"100%"})))))))}))):null===g||void 0===g||null===(d=g.transcript)||void 0===d||null===(u=d.yearGrouping)||void 0===u?void 0:u.map((function(e){var t,i,r,a,o=null===g||void 0===g||null===(t=g.transcript)||void 0===t||null===(i=t.userTranscripts)||void 0===i?void 0:i.filter((function(t){return t.yearGrouping===e})),s=[{Header:"Completed",accessor:"completionDate",width:100,wrapText:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},Object(Zt.e)(t.completionDate),t.shouldDisplayDateRange&&t.endDate&&Object(Zt.e)(t.endDate)!==Object(Zt.e)(t.startDate)&&" - ".concat(Object(Zt.e)(t.endDate)||""))}},{Header:"Course / Activity",width:700,wrapText:!0,accessor:"title",Cell:function(e){var t=e.row.original,i=t.title,r=t.sessionTitle,a=0!==t.providerId&&0===t.activityId&&void 0!==r&&i!==r;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"body1"},"".concat(i).concat(a?" : ":"")),a&&n.a.createElement(h.Typography,{variant:"body1"},r))}},{width:50,accessor:"isInstructor",Cell:function(e){var t=e.cell.value;return n.a.createElement(n.a.Fragment,null,!0===t?n.a.createElement(h.Tooltip,{title:"Instructed",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"duotone",size:"sm"}))):n.a.createElement(n.a.Fragment,null))},disableSortBy:!0},{width:50,accessor:"formatId",Cell:function(e){var t,i,r=e.row.original;return n.a.createElement(n.a.Fragment,null,0!==(null===r||void 0===r?void 0:r.formatId)?n.a.createElement(h.Tooltip,{title:null!==(t=r.formatPortalCategory)&&void 0!==t?t:"",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:null!==(i=r.formatPortalCategory)&&void 0!==i?i:"",type:"duotone",color:"inherit",size:"sm"}))):n.a.createElement(h.SystemIcon,{icon:"Activities",type:"duotone",size:"sm"}))},disableSortBy:!0},{Header:"Provider",width:200,wrapText:!0,accessor:"providerName",Cell:function(e){var t=e.cell.value;return n.a.createElement(h.Typography,{variant:"body1"},t)}},{Header:"Credits",width:350,wrapText:!0,accessor:"credits",Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},Gc(null===t||void 0===t?void 0:t.userLicenseCreditValues))}}];return n.a.createElement(h.Box,{m:1},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,null,n.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1"},n.a.createElement(h.Box,{ml:1},n.a.createElement(A.a,{title:n.a.createElement(h.Typography,{variant:"h6"},e)}))),n.a.createElement(h.Box,{width:"100%"},n.a.createElement(P.a,{dense:!0},n.a.createElement(h.DataGrid,{advanced:!0,columns:s,data:o,hideRowCountDisplay:!0,hideRowsPerPage:!0,pageSize:null!==(r=null===g||void 0===g||null===(a=g.transcript)||void 0===a?void 0:a.recordCount)&&void 0!==r?r:0}))))))}))))})),Mc=i(673),zc=(i(512),i(134)),Wc=(i(208),i(204)),Vc=function(e){var t=e.industry,i=e.size,r=e.type;switch(t){case"Law":return n.a.createElement(h.SystemIcon,{icon:"Cem-Legal",size:i,type:r});case"Accounting":return n.a.createElement(h.SystemIcon,{icon:"Cem-Accounting",size:i,type:r});case"Custom License":return n.a.createElement(h.SystemIcon,{icon:"Cem-InFirm",size:i,type:r});default:return n.a.createElement(h.SystemIcon,{icon:"Cem-Certificate",size:i,type:r})}},_c=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses,selectedFirmLicenses:e.licenses.selectedFirmLicenses,userLicenseLimitation:e.licenses.userLicenseLimitations}}),(function(e){return{setSelectedFirmLicenses:function(t){return e(zc.b(t))}}}))((function(e){var t,i=e.showLimitedLicenses,a=e.open,o=e.onClose,s=e.title,l=e.firmLicenses,d=e.selectedFirmLicenses,u=e.setSelectedFirmLicenses,v=e.userLicenseLimitation,p=e.addedLicenses,f=e.showProfileLicenses,m=e.showFOSLicense,y={},g=f?l:null!==(t=null===l||void 0===l?void 0:l.filter((function(e){return!e.isPlaceholder})))&&void 0!==t?t:[],b=Object(r.useState)(!1),S=Object(c.a)(b,2),E=S[0],I=S[1],O={initialValues:{licenseListForm:(g&&(null===g||void 0===g?void 0:g.length)>0&&g.forEach((function(e){var t=!1;void 0!==(null===d||void 0===d?void 0:d.find((function(t){return t.licenseId===e.licenseId})))&&(t=!0);var i=Object(Sa.a)({},"".concat(e.licenseId),t);y=Object(J.a)(Object(J.a)({},y),i)})),y),favoriteLicenseListForm:(g&&(null===g||void 0===g?void 0:g.length)>0&&g.filter((function(e){var t;return!0===(null===(t=e.firmLicense)||void 0===t?void 0:t.isFavorite)})).forEach((function(e){var t=!1;void 0!==(null===d||void 0===d?void 0:d.find((function(t){return t.licenseId===e.licenseId})))&&(t=!0);var i=Object(Sa.a)({},"".concat(e.licenseId,"-fav"),t);y=Object(J.a)(Object(J.a)({},y),i)})),y)},validationSchema:Object(yn.object)().shape({}),onSubmit:function(e){var t=e.licenseListForm,i=Array(),r=[];t&&Object.keys(t).forEach((function(e){g&&g.forEach((function(n){t[e]&&e==="".concat(n.licenseId)&&(i.push(n),n.licenseId&&r.push(n.licenseId))}))})),p&&p(r),u(i),o()}},C=g&&g.filter((function(e){var t;return!0===(null===(t=e.firmLicense)||void 0===t?void 0:t.isFavorite)})).filter((function(e){return!(!i&&v&&v.length>0)||(null===v||void 0===v?void 0:v.includes(e.licenseId))})),x=g&&g.filter((function(e){return"Law"===e.industryId})).filter((function(e){return!(!i&&v&&v.length>0)||(null===v||void 0===v?void 0:v.includes(e.licenseId))})),j=g&&g.filter((function(e){return"Accounting"===e.industryId})).filter((function(e){return!(!i&&v&&v.length>0)||(null===v||void 0===v?void 0:v.includes(e.licenseId))})),w=g&&g.filter((function(e){return"Certification"===e.industryId})).filter((function(e){return!(!i&&v&&v.length>0)||(null===v||void 0===v?void 0:v.includes(e.licenseId))})),T=g&&g.filter((function(e){return"Custom License"===e.industryId})).filter((function(e){return!(!i&&v&&v.length>0)||(null===v||void 0===v?void 0:v.includes(e.licenseId))}));return Object(r.useEffect)((function(){I(!1),C&&C.forEach((function(e){9999===e.licenseId&&I(!0)}))}),[C,E]),n.a.createElement(ln.a,{size:"sm",open:a,onClose:o},n.a.createElement(mn.Formik,{initialValues:O.initialValues,validationSchema:O.validationSchema,onSubmit:O.onSubmit,enableReinitialize:!0},(function(e){var t,i,r=e.setFieldValue,a=function(e){e&&e.forEach((function(e){r("licenseListForm.".concat(e.licenseId),!0),r("favoriteLicenseListForm.".concat(e.licenseId,"-fav"),!0)}))},l=function(e,t){r("licenseListForm.".concat(e),t)},c=function(e,t){r("favoriteLicenseListForm.".concat(e,"-fav"),t)},u=d&&d.find((function(e){return e.licenseId===X}));return n.a.createElement(h.Form,{id:"license-list",formikContext:!0},n.a.createElement(sn.SideDrawerHeader,{titleBar:{icon:{source:"custom",value:n.a.createElement(h.Button,{variant:"text",color:"primary",type:"reset",onClick:o},n.a.createElement(h.SystemIcon,{size:"sm",icon:"Back"}))},title:s}}),n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:"form"},C&&C.length>0&&(m&&E||(!m||!E)&&C.length>1)&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,{color:"important"},n.a.createElement(h.Box,{ml:2},n.a.createElement(A.a,{icon:n.a.createElement(h.SystemIcon,{icon:"Star",type:"duotone",size:"sm",color:"secondary"}),action:n.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(C)}},"Select All")),title:n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"secondary"},"Firm Favorites")}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.List,{hover:!0},m&&E&&n.a.createElement(h.ListItem,{key:X,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},"Fields of Study")),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"favoriteLicenseListForm.".concat(X,"-fav"),disabled:null!==(t=u&&void 0!==u)&&void 0!==t&&t,onChange:function(e,t){l(X,t)}}))),C&&C.filter((function(e){return e.licenseId!==X})).map((function(e){var t,i=e.licenseId,r=e.name,a=d&&d.find((function(e){return e.licenseId===i}));return i&&n.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},r)),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"favoriteLicenseListForm.".concat(i,"-fav"),disabled:null!==(t=a&&void 0!==a)&&void 0!==t&&t,onChange:function(e,t){l(i,t)}})))}))))))),x&&x.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2},n.a.createElement(A.a,{icon:n.a.createElement(Vc,{industry:"Law",type:"duotone"}),action:n.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(x)}},"Select All")),title:"Law"}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.List,{hover:!0},x&&x.map((function(e){var t,i=e.licenseId,r=e.name,a=d&&d.find((function(e){return e.licenseId===i}));return i&&n.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},r)),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=a&&void 0!==a)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))),j&&j.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2},n.a.createElement(A.a,{icon:n.a.createElement(Vc,{industry:"Accounting",type:"duotone"}),action:n.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(j)}},"Select All")),title:"Accounting"}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.List,{hover:!0},m&&n.a.createElement(h.ListItem,{key:X,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},"Fields of Study")),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(X),disabled:null!==(i=u&&void 0!==u)&&void 0!==i&&i,onChange:function(e,t){c(X,t)}}))),j&&j.filter((function(e){return e.licenseId!==X})).map((function(e){var t,i=e.licenseId,r=e.name,a=d&&d.find((function(e){return e.licenseId===i}));return i&&n.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},r)),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=a&&void 0!==a)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))),w&&w.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2},n.a.createElement(A.a,{icon:n.a.createElement(Vc,{industry:"Certification",type:"duotone"}),action:n.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(w)}},"Select All")),title:"Certification"}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.List,{hover:!0},w&&w.map((function(e){var t,i=e.licenseId,r=e.name,a=d&&d.find((function(e){return e.licenseId===i}));return i&&n.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},r)),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=a&&void 0!==a)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))),T&&T.length>0&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Widget,null,n.a.createElement(h.Box,{ml:2},n.a.createElement(A.a,{icon:n.a.createElement(Vc,{industry:"Custom License",type:"duotone"}),action:n.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(T)}},"Select All")),title:"Custom License"}),n.a.createElement(P.a,{dense:!0},n.a.createElement(h.List,{hover:!0},T&&T.map((function(e){var t,i=e.licenseId,r=e.name,a=d&&d.find((function(e){return e.licenseId===i}));return i&&n.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},n.a.createElement(h.Box,{mt:1,flex:1},n.a.createElement(h.Typography,{variant:"body1"},r)),n.a.createElement(h.Box,{alignContent:"center"},n.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=a&&void 0!==a)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))))),n.a.createElement(sn.SideDrawerFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"default",type:"reset",onClick:o,variant:"outlined",fullWidth:!0},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Add")))))})))}));function Yc(){Yc=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var $c=Object(s.b)((function(e){return{isLoading:e.sessions.loading,firmLicenses:e.licenses.firmLicenses,selectedFirmLicenses:e.licenses.selectedFirmLicenses,selectedSession:e.sessions.selectedSession,userLicenseLimitations:e.licenses.userLicenseLimitations,NYLocation:e.sessions.NYLocation}}),(function(e){return{getLicenses:function(){return e(Wc.a())},setSelectedSession:function(t){return e(Li(t))},setSelectedFirmLicenses:function(t){return e(zc.b(t))},getAllNYCounty:function(){return e((function(e){return q.S.getAllNYCounty(void 0).then((function(e){return e})).catch((function(t){throw e(Object(M.b)(t)),t}))}))}}}))((function(e){var t=e.adjustedLicenseIdList,i=e.editsession,a=e.firmLicenses,o=e.getLicenses,s=e.isLoading,l=e.isTPCourseElearning,d=e.parentFormState,u=e.selectedFirmLicenses,v=e.sessionId,f=e.setSelectedFirmLicenses,m=e.userLicenseLimitations,y=e.datesAndCreditsDisabled,g=e.licensesWithRetro,b=e.selectedSession,S=e.getAllNYCounty,I=e.NYLocation,O=e.willAddThirdPartyCourse,C=void 0!==O&&O,j=e.handleOpenLicenseDrawer,w=e.reinitializeFormState,P=E(p.Kd.ManagePortalTeam),T=u&&u.map((function(e){return e.licenseId})),A=(null===T||void 0===T?void 0:T.length)===(null===t||void 0===t?void 0:t.length)||void 0!==t&&(0!==t.length&&!Object(x.isEmpty)(Object(x.xor)(T,t))),k=void 0!==l?l:b&&0!==b.mediaTypeId&&void 0!==b.mediaTypeId;Object(r.useEffect)((function(){if(null===u||void 0===u?void 0:u.find((function(e){return e.licenseId===de}))){var e=d.getFieldProps("licensePropsList.".concat(v,"-381_6")).value;""!==e&&void 0!==e||d.setFieldValue("licensePropsList.".concat(v,"-381_6"),null)}}),[u,d,v]),Object(r.useEffect)((function(){i||o()}),[i,o]);var D=Object(r.useState)(),L=Object(c.a)(D,2),J=L[0],F=L[1];Object(r.useEffect)((function(){S().then((function(e){F(e)}))}),[S]);var B=function(e,t){return n.a.createElement(h.Row,{size:"max",crossAxisAlignment:"middle",mainAxisAlignment:"start"},n.a.createElement(h.Column,{mainAxisAlignment:"middle",size:"max",crossAxisAlignment:"left"},n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit"},e)),t))},R=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},U=function(e,t,i){var r=[];if(Object.keys(t).forEach((function(e){var i;r.push(null!==(i=t[e].id)&&void 0!==i?i:0)})),e===ye)if(r.find((function(e){return 3===e})))d.setFieldValue("licensePropsList.".concat(v,"-").concat(e,"_grouped_properties"),i);else if(r.find((function(e){return 5===e}))){var n=i.filter((function(e){return 3===e.id}));d.setFieldValue("licensePropsList.".concat(v,"-").concat(e,"_checkbox_properties"),n)}},G=function(e,t){return e===ye&&6===t?[{label:"Yes",value:0},{label:"No",value:1}]:(e===ye||e===de)&&9===t||e===me&&17===t?[{label:"No Financial Hardship",value:0},{label:"Financial Hardship Requested",value:1},{label:"Financial Hardship Granted",value:2}]:[]};return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},null===a&&i?n.a.createElement(h.Skeleton,{height:30,width:"100%"}):n.a.createElement(n.a.Fragment,null,0===(null===u||void 0===u?void 0:u.length)||null===u?n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:6,xs:12,stretchContent:!0,alignment:"center"},C?n.a.createElement(h.Box,{mt:.75,textAlign:"center"},n.a.createElement(h.Button,{size:"medium",variant:"contained",color:"primary",startIcon:n.a.createElement(h.SystemIcon,{size:"md",icon:"Add",color:"inherit"}),onClick:function(){return j&&j()}},"Add Credits")):n.a.createElement(h.Box,{m:5},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},"No credits selected"))))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"bottom-right"},((null===u||void 0===u?void 0:u.length)||0)>0&&!y&&!A?n.a.createElement(h.Link,{variant:"body1",onClick:function(){return f([]),void(C&&w&&w())}},"Remove All"):n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Remove All")),null===u||void 0===u?void 0:u.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})).map((function(e){var r,a,o,l,c,p,b,S,E,O,x,j,T,A,D,L,F,q,M,z,W=null!==(r=e.licenseId)&&void 0!==r?r:0,V=y&&(null===g||void 0===g?void 0:g.includes(W)),_=new Array,Y=new Array,$=new Array,H=new Array,K=null!==(a=!P||m&&m.length>0&&!m.includes(null===e||void 0===e?void 0:e.licenseId))&&void 0!==a&&a,Q=0,Z="",ee=null!==(o=e.licenseProperties)&&void 0!==o?o:[];C&&(ee=null!==(D=ee.filter((function(e){return e.isDisplayedInThirdPartyCourse})))&&void 0!==D?D:[]);e.licenseId===ye&&(ee=null!==(L=ee.filter((function(e){return 14!==e.propertyId})))&&void 0!==L?L:[]);(null===e||void 0===e||null===(l=e.licenseProperties)||void 0===l?void 0:l.filter((function(e){return!e.isForInstructorValidation})))&&(Q=null!==(F=null===(q=e.licenseProperties.find((function(e){return null!==e.licensePropertyGroupId})))||void 0===q?void 0:q.licensePropertyGroupId)&&void 0!==F?F:0,Z=null!==(M=null===(z=e.licenseProperties.find((function(e){return e.licensePropertyGroupId===Q})))||void 0===z?void 0:z.licensePropertyGroupLabel)&&void 0!==M?M:"",Q&&e.licenseProperties.map((function(t){if(5===t.typeId&&t.licensePropertyGroupId===Q&&e.licenseId!==X){var i,r={id:null!==(i=t.propertyId)&&void 0!==i?i:0,name:t.label};return $.push(r),$}return null})),e.licenseProperties.map((function(t){if(5===t.typeId&&null===t.licensePropertyGroupId&&e.licenseId!==X){var i,r={id:null!==(i=t.propertyId)&&void 0!==i?i:0,name:t.label};return _.push(r),_}return null})),e.licenseId===X&&e.licenseProperties.map((function(e){var t,i,r={id:null!==(t=e.propertyId)&&void 0!==t?t:0,name:null===(i=e.label)||void 0===i?void 0:i.replace("Accounting","")};return 5===e.typeId&&null===e.licensePropertyGroupId?2===e.propertyId?_.push(r):Y.push(r):5===e.typeId&&e.licensePropertyGroupId===Q&&H.push(r),null})));return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Card,{background:"grey",variant:"outlined"},n.a.createElement(h.CardHeader,{title:n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"h6"},e.name),e.licenseId===le&&n.a.createElement(h.Box,{ml:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"*Enter the total number of credits as either Regular or In-House/Self-Study.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null," ","The portion of total credits that count towards the sub-requirement should be entered in the remaining credit categories.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"(Note: the same credits may count towards more than one sub-requirement.)")))),e.licenseId===ce&&n.a.createElement(h.Box,{ml:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"*Enter the total number of credits as General.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"The portion of General credits that count towards the sub-requirement should be entered in the remaining credit categories.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"(Note: the same credit may count towards more than one sub-requirement.)"))))),action:K||V||(null===t||void 0===t?void 0:t.includes(e.licenseId))?n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Remove"):n.a.createElement(h.Link,{variant:"body1",color:"primary",onClick:function(){return function(e){var t,i=null!==(t=null===u||void 0===u?void 0:u.filter((function(t){return t.licenseId!==e.licenseId})))&&void 0!==t?t:[];f(i),C&&w&&w()}(e)}},"Remove")}),n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Credits")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},!i&&n.a.createElement(h.Grid,{container:!0,spacing:1},-1===(null===e||void 0===e?void 0:e.licenseId)?null===e||void 0===e||null===(c=e.licenseCredits)||void 0===c||null===(p=c.filter((function(e){return!e.isArchived})))||void 0===p?void 0:p.map((function(t){var i,r="licenseCreditsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.creditId);return n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:6,key:"".concat(r,"_grid")},n.a.createElement(h.TextField,{fullWidth:!0,id:r,key:r,label:R(null!==(i=t.name)&&void 0!==i?i:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(r).value<0&&n.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}))})):null===e||void 0===e||null===(b=e.licenseCredits)||void 0===b?void 0:b.filter((function(e){return!e.isArchived})).map((function(t){var i,r="licenseCreditsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.creditId);return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,key:"".concat(r,"_grid")},n.a.createElement(h.TextField,{fullWidth:!0,id:r,key:r,label:R(null!==(i=t.name)&&void 0!==i?i:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(r).value<0&&n.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}))}))),i&&n.a.createElement(h.Grid,{container:!0,spacing:1},-1===(null===e||void 0===e?void 0:e.licenseId)?null===e||void 0===e||null===(S=e.licenseCredits)||void 0===S?void 0:S.map((function(t){var i,r="licenseCreditsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.creditId);return n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:6,key:"".concat(r,"_grid")},n.a.createElement(h.TextField,{fullWidth:!0,id:r,key:r,label:R(null!==(i=t.name)&&void 0!==i?i:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(r).value<0&&n.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}))})):null===e||void 0===e||null===(E=e.licenseCredits)||void 0===E?void 0:E.map((function(t){var i,r,a="licenseCreditsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.creditId),o=d.getFieldProps(a).value;return t.isArchived?t.isArchived&&o>0?n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6},n.a.createElement(h.Row,null,n.a.createElement(h.TextField,{fullWidth:!0,id:a,key:a,label:R(null!==(r=t.name)&&void 0!==r?r:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(a).value<0&&n.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}),n.a.createElement(h.Box,{mb:2,ml:.5},n.a.createElement(h.Tooltip,{title:"This credit type has been archived.",placement:"top",style:{maxWidth:10}},n.a.createElement("span",null,"\xa0",n.a.createElement(h.SystemIcon,{icon:"Help"})))))):n.a.createElement(n.a.Fragment,null):n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6},n.a.createElement(h.TextField,{fullWidth:!0,id:a,key:a,label:R(null!==(i=t.name)&&void 0!==i?i:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(a).value<0&&n.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}))})))),(_&&_.length>0||$&&$.length>0)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Properties")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},_&&_.length>0&&n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_select_properties"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_checkbox_properties"),label:"Qualifiers",fullWidth:!0,multiple:!0,options:_||[],formikContext:!0,loading:s,disabled:K||V,onChange:function(t,i){var r;return U(null!==(r=e.licenseId)&&void 0!==r?r:0,i,$)}})),Y&&Y.length>0&&n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_select_properties_nasba"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_nasbacheckbox_properties"),label:"Jurisdictions Qualifiers",fullWidth:!0,multiple:!0,options:Y||[],formikContext:!0,loading:s,disabled:K||V})),$&&$.length>0&&n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_grouped_properties"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_grouped_properties"),label:Z,fullWidth:!0,multiple:!0,options:$||[],formikContext:!0,loading:s,disabled:K||V,onChange:function(t,i){var r;return U(null!==(r=e.licenseId)&&void 0!==r?r:0,i,_)}})),H&&H.length>0&&n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_grouped_properties_nasba"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_nasbagrouped_properties"),label:"Jurisdictions Course Groups",fullWidth:!0,multiple:!0,options:H||[],formikContext:!0,loading:s,disabled:K||V})),e.licenseId===he&&(null===(O=e.licenseProperties)||void 0===O?void 0:O.filter((function(e){return 1===e.typeId&&"Approval Code"!==e.label})).map((function(t){return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"text",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}))})))))),(e.licenseId===de&&0!==ee.filter((function(e){var t;return[Ze.PCAMID,Ze.PCAMReApprovalDate,Ze.FinancialHardship].includes(null!==(t=e.propertyId)&&void 0!==t?t:0)})).length||e.licenseId===ye&&0!==ee.filter((function(e){var t;return[Xe.RequestInNYYearEndReport,Xe.AverageFee,Xe.SelectNYLocation,Xe.FinancialHardship].includes(null!==(t=e.propertyId)&&void 0!==t?t:0)})).length||e.licenseId===me&&ee.find((function(e){return e.propertyId===et})))&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Special Conditions")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},ee&&ee.filter((function(e){return!e.isForInstructorValidation})).map((function(t){var i,r,a,o,l,c="licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId);if(1!==t.propertyId&&(e.licenseId!==ye||7!==t.propertyId&&6!==t.propertyId))switch(t.typeId){case 1:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"text",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}));case 2:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.SelectField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,fullWidth:!0,formikContext:!0,loading:s,maxLabelLength:20,disabled:K||V},G(W,null!==(i=t.propertyId)&&void 0!==i?i:0).map((function(e){return n.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)}))));case 3:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:c,stretchContent:!0},n.a.createElement(h.DateTimeField,{type:"date",id:c,label:null!==(r=t.label)&&void 0!==r?r:"",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V,format:Object(N.h)()}));case 4:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"number",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}));default:return n.a.createElement(n.a.Fragment,null)}return e.licenseId===ye?7===t.propertyId?n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_1"),stretchContent:!0},n.a.createElement(h.SelectField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,fullWidth:!0,formikContext:!0,loading:s,maxLabelLength:20,disabled:K||V,value:null!==(a=d.getFieldProps("licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId)).value)&&void 0!==a?a:I,onChange:function(i){void 0!==d&&d.setFieldValue("licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),i.target.value)}},function(){var e,t=[];(t.push({label:"NYC",value:"NYC"}),t.push({label:"Outside New York State",value:"Outside New York State"}),void 0!==J)&&J.forEach((function(i){var r,n;e={label:null!==(r=i.name)&&void 0!==r?r:"",value:null!==(n=i.name)&&void 0!==n?n:""},t.push(e)}));return t}().map((function(e){return n.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)})))):6===t.propertyId?n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.SelectField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,fullWidth:!0,formikContext:!0,loading:s,maxLabelLength:20,disabled:K||V,value:null!==(o=d.getFieldProps("licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId)).value)&&void 0!==o?o:"0",onChange:function(i){void 0!==d&&d.setFieldValue("licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),i.target.value)}},G(W,null!==(l=t.propertyId)&&void 0!==l?l:0).map((function(e){return n.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)})))):null:n.a.createElement(n.a.Fragment,null)}))))),0!==(null===e||void 0===e||null===(x=e.licenseProperties)||void 0===x?void 0:x.length)&&(null===e||void 0===e||null===(j=e.licenseProperties)||void 0===j?void 0:j.find((function(e){return 1===e.propertyId})))&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Approval")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},n.a.createElement(h.Grid,{item:!0,lg:4,md:4,xs:12},n.a.createElement(h.SelectField,{id:"licenseStatus.".concat(v,"-").concat(e.licenseId),label:"Credit Approval",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V,value:null!==(T=d.getFieldProps("licenseStatus.".concat(v,"-").concat(e.licenseId)).value)&&void 0!==T?T:1,onChange:function(t){void 0!==d&&d.setFieldValue("licenseStatus.".concat(v,"-").concat(e.licenseId),t.target.value)}},n.a.createElement(h.MenuItem,{key:1,value:1},"Approved"),n.a.createElement(h.MenuItem,{key:2,value:2},"Pending"),i&&n.a.createElement(h.MenuItem,{key:3,value:3},"Denied"))),(null===e||void 0===e?void 0:e.licenseProperties)&&(null===e||void 0===e||null===(A=e.licenseProperties)||void 0===A?void 0:A.filter((function(e){return!e.isForInstructorValidation})).map((function(t){var i;if(e.licenseId!==de&&e.licenseId!==ye&&e.licenseId!==me&&e.licenseId!==he||1===t.propertyId)switch(t.typeId){case 1:return n.a.createElement(h.Grid,{item:!0,lg:4,md:4,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"text",fullWidth:!0,formikContext:!0,loading:s,disabled:!(!K&&!V&&"Approval Code"!==t.label)&&(2===d.getFieldProps("licenseStatus.".concat(v,"-").concat(e.licenseId)).value||3===d.getFieldProps("licenseStatus.".concat(v,"-").concat(e.licenseId)).value)}));case 2:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"number",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}));case 3:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.DateTimeField,{type:"date",id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:null!==(i=t.label)&&void 0!==i?i:"",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V,format:Object(N.h)()}));case 4:return n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_").concat(t.propertyId,"_").concat(t.typeId),stretchContent:!0},n.a.createElement(h.Box,{mt:1,mb:1},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(v,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"number",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V})));default:return n.a.createElement(n.a.Fragment,null)}return null})))))),k&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Credits Expiration")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"licenseExpiration.".concat(v,"-").concat(e.licenseId),stretchContent:!0},n.a.createElement(h.DateTimeField,{type:"date",id:"licenseExpiration.".concat(v,"-").concat(e.licenseId),label:"Expiration Date",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V,format:Object(N.h)()})))))))))))}))))))})),Hc=i(248),Kc=Object(s.b)(null,(function(e){return{uploadCertificate:function(t,i){return e(function(e,t){return function(){var i=Object(l.a)(Yc().mark((function i(r){var n,a;return Yc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=Array.from(t).map((function(e){return{fileName:e.name,data:e}})),i.prev=1,i.next=4,q.R.uploadCertificateV2(e,void 0,n);case 4:return a=i.sent,i.abrupt("return",a);case 8:throw i.prev=8,i.t0=i.catch(1),r(Object(M.b)(i.t0)),i.t0;case 12:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(e){return i.apply(this,arguments)}}()}(t,i))},downloadCertificate:function(t){return e(function(e){return function(t){return q.R.downloadCertificateV2(e,void 0).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))}}}))((function(e){var t=e.downloadCertificate,i=e.uploadCertificate,a=e.id,o=e.formState,s=Object(r.useRef)(null),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],p=Object(r.useState)(0),f=Object(c.a)(p,2),m=f[0],y=f[1],g=o.getFieldProps("startDate").value,b=Q()(o.getFieldProps("startDate").value)>Q()(new Date),S=Object(V.useTheme)(),E=Object(V.useMediaQuery)(S.breakpoints.down("xs"));return n.a.createElement(h.Box,{maxWidth:"190px"},b||0===o.getFieldProps("participantList.".concat(a,".certificateFileId")).value?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Button,{type:"button",variant:"text",onClick:function(){y(a),null!==(null===s||void 0===s?void 0:s.current)&&void 0!==(null===s||void 0===s?void 0:s.current)&&(null===s||void 0===s?void 0:s.current).click()},disabled:u||null===g||b||void 0===o.getFieldProps("participantList.".concat(a,".user")).value},n.a.createElement(h.Typography,{color:u||null===g||b||void 0===o.getFieldProps("participantList.".concat(a,".user")).value?"default":"secondary",variant:"body1",align:"center"},n.a.createElement(h.SystemIcon,{icon:!0===o.getFieldProps("participantList.".concat(a,".isUploading")).value?"Loading":"Upload",size:"sm",spin:!0===o.getFieldProps("participantList.".concat(a,".isUploading")).value,type:"duotone",color:u||null===g||b||void 0===o.getFieldProps("participantList.".concat(a,".user")).value?"inherit":"secondary"})," ",E?"Upload":"Upload Certificate")),n.a.createElement("input",{type:"file",ref:s,hidden:!0,onChange:function(e){return t=e.target.files,r=o.setFieldValue,void(t&&null!==t&&(r("participantList.".concat(m,".isUploading"),!0),v(!0),i(m,t).then((function(e){r("participantList.".concat(m,".certificateFileId"),e[0].fileId)})).finally((function(){r("participantList.".concat(m,".isUploading"),!1),v(!1)}))));var t,r},name:"files",multiple:!1,accept:"image/*, application/x-pdf, application/pdf"})):n.a.createElement(h.Button,{type:"button",variant:"text",onClick:function(){var e,i,r,n;i=a,r=null!==(e=o.getFieldProps("participantList.".concat(a,".certificateFileId")).value)&&void 0!==e?e:0,n=o.setFieldValue,r&&(n("participantList.".concat(i,".isDownloading"),!0),v(!0),t(r).then().finally((function(){n("participantList.".concat(i,".isDownloading"),!1),v(!1)})))},disabled:u},n.a.createElement(h.Typography,{color:u?"default":"primary",variant:"body1",align:"center"},n.a.createElement(h.SystemIcon,{icon:!0===o.getFieldProps("participantList.".concat(a,".isDownloading")).value?"Loading":"Cem-Certificate",color:u?"inherit":"primary",spin:!0===o.getFieldProps("participantList.".concat(a,".isDownloading")).value,type:"duotone",size:"sm"})," ",E?"Download":"Download Certificate")))})),Qc=Object(s.b)((function(e){var t;return{authenticatedUser:e.users.authenticatedUser,courseFormats:null===(t=e.formats.formats)||void 0===t?void 0:t.filter((function(e){return e.isEnabled})),selectedFirmLicenses:e.licenses.selectedFirmLicenses}}),(function(e){return{addThirdPartyCourse:function(t){return e(function(e){return function(t){var i={courseDto:p.cb.fromJS(e)};return q.n.createThirdParty(void 0,p.bb.fromJS(i)).then((function(e){return t(Object(zc.b)(null)),e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},addNotification:function(t,i){return e(M.a({message:t,variant:i}))},getMaintenanceTables:function(){return e((function(e){e(Object(Wc.a)()),e(Ta())}))},getProviders:function(){return e(Da())},validateCourse:function(t,i,r){return e(function(e,t,i){return function(r){if(void 0===t||0===t||void 0===e||""===e)return Promise.resolve(!1);var n={courseTitle:e,providerId:t,courseCode:i},a=new p.Ve({courseDto:p.Xe.fromJS(n)});return q.n.validateCourse(void 0,a).then((function(e){return e})).catch((function(e){r(Object(M.b)(e))}))}}(t,i,r))},setSelectedFirmLicense:function(t){return e(Object(zc.b)(t))},getUsers:function(t){return e(Object(Hc.c)(t))},saveSession:function(t){return e(function(e){return function(t){var i={courseDto:p.eb.fromJS(e)};return q.n.createThirdPartySession(void 0,p.db.fromJS(i)).then((function(e){return t(Object(zc.b)(null)),e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},showConfirmation:function(t){return e(Object($n.b)(t))}}})),Zc={filterBy:[],searchCriteria:["UserAdminAssistant"],sortBy:"lastName",page:1,pageSize:-1},Xc=Object(d.o)(Qc((function(e){var t,i,a,o,s,l,d,u,v,f,m=e.addThirdPartyCourse,y=e.addNotification,g=e.authenticatedUser,b=e.courseFormats,S=e.getMaintenanceTables,I=e.getProviders,O=e.history,C=e.labelTitle,j=e.name,w=e.onClose,P=e.saveSession,T=e.showConfirmation,A=e.getUsers,k=e.selectedFirmLicenses,D=e.setSelectedFirmLicense,L=e.userId,F=e.validateCourse,B=Object(r.useRef)(!0),R=Object(r.useState)(!1),U=Object(c.a)(R,2),G=U[0],q=U[1],M=Object(r.useState)(),z=Object(c.a)(M,2),W=z[0],V=z[1],_=Object(r.useState)(),Y=Object(c.a)(_,2),$=Y[0],H=Y[1],K=Object(r.useState)(),Z=Object(c.a)(K,2),ee=Z[0],te=Z[1],ie=Object(J.a)(Object(J.a)({},Zc),{},{searchCriteria:["UserAdminAssistant:".concat(null!==(t=null===g||void 0===g?void 0:g.userId)&&void 0!==t?t:0)]}),re=Object(r.useState)(),ne=Object(c.a)(re,2),ae=ne[0],oe=ne[1],se=Object(r.useState)(),le=Object(c.a)(se,2),ce=le[0],ue=le[1],he=Object(r.useState)([]),ve=Object(c.a)(he,2),pe=ve[0],fe=ve[1],me=null!==localStorage.getItem("aws-amplify-cachepreferences")&&""!==(localStorage.getItem("aws-amplify-cachepreferences")||"")?JSON.parse(localStorage.getItem("aws-amplify-cachepreferences")||"").data.timezone:"US/Eastern",ge="",be=E(p.Kd.ManagePortalTeam);Object(r.useEffect)((function(){I().then((function(e){var t;H(null===(t=e.providers)||void 0===t?void 0:t.filter((function(e){return!e.isInHouse})))}))}),[I]),Object(r.useEffect)((function(){S()}),[S]),Object(r.useEffect)((function(){B.current&&(A(ie).then((function(e){ue(e.users)})),B.current=!1)}),[A,ie]);var Se=Object(r.useState)(!1),Ee=Object(c.a)(Se,2),Ie=Ee[0],Oe=Ee[1],Ce=function(e,t){var i,r,n,a,o,s,l,c,d,u,h,v,p,f={title:null!==(i=e.getFieldProps("title").value)&&void 0!==i?i:"",idLabel:null!==(r=e.getFieldProps("idLabel").value)&&void 0!==r?r:"",providerId:null!==(n=e.getFieldProps("providerId").value)&&void 0!==n?n:[],description:null!==(a=e.getFieldProps("description").value)&&void 0!==a?a:"",note:null!==(o=e.getFieldProps("note").value)&&void 0!==o?o:"",startDate:void 0!==t?t:null!==(s=e.getFieldProps("startDate").value)&&void 0!==s?s:null,courseFormat:null!==(l=e.getFieldProps("courseFormat").value)&&void 0!==l?l:[],mediaTypeId:null!==(c=e.getFieldProps("mediaTypeId").value)&&void 0!==c?c:0,participantList:null!==(d=e.getFieldProps("participantList").value)&&void 0!==d?d:[{isInstructor:!1,certificateFileId:0,isUploading:!1,isDownloading:!1}],licenseStatus:null!==(u=e.getFieldProps("licenseStatus").value)&&void 0!==u?u:{},licenseCreditsList:null!==(h=e.getFieldProps("licenseCreditsList").value)&&void 0!==h?h:{},licensePropsList:null!==(v=e.getFieldProps("licensePropsList").value)&&void 0!==v?v:{},licenseExpiration:null!==(p=e.getFieldProps("licenseExpiration").value)&&void 0!==p?p:{}};oe(f)},xe=function(e){Ce(e),D(k),Oe(!0)},je=Array(),we={initialValues:{title:null!==(i=null===ae||void 0===ae?void 0:ae.title)&&void 0!==i?i:"",idLabel:null!==(a=null===ae||void 0===ae?void 0:ae.idLabel)&&void 0!==a?a:"",providerId:null!==(o=null===ae||void 0===ae?void 0:ae.providerId)&&void 0!==o?o:[],description:null!==(s=null===ae||void 0===ae?void 0:ae.description)&&void 0!==s?s:"",note:null!==(l=null===ae||void 0===ae?void 0:ae.note)&&void 0!==l?l:"",startDate:null!==(d=null===ae||void 0===ae?void 0:ae.startDate)&&void 0!==d?d:null,courseFormat:null!==(u=null===ae||void 0===ae?void 0:ae.courseFormat)&&void 0!==u?u:[],mediaTypeId:null!==(v=null===ae||void 0===ae?void 0:ae.mediaTypeId)&&void 0!==v?v:0,participantList:null!==(f=null===ae||void 0===ae?void 0:ae.participantList)&&void 0!==f?f:Object(x.isEmpty)(j)||0===L?[{isInstructor:!1,certificateFileId:0,isUploading:!1,isDownloading:!1}]:[{user:{userId:L,name:j},isInstructor:!1,certificateFileId:0,isUploading:!1,isDownloading:!1}],licenseStatus:function(){var e={};return k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(t){var i,r=null===je||void 0===je||null===(i=je.find((function(e){return e.licenseId===t.licenseId})))||void 0===i?void 0:i.licenseStatus;void 0===r&&(r=1),e=Object(J.a)(Object(J.a)({},e),{},Object(Sa.a)({},"1-".concat(t.licenseId),r))})),Object(x.isEmpty)(null===ae||void 0===ae?void 0:ae.licenseStatus)?e:Object(J.a)(Object(J.a)({},e),null===ae||void 0===ae?void 0:ae.licenseStatus)}(),licenseCreditsList:function(){var e={};return k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(t){var i={};t.licenseCredits&&t.licenseCredits.forEach((function(e){var r,n,a,o=null===je||void 0===je||null===(r=je.find((function(e){return e.licenseId===t.licenseId})))||void 0===r||null===(n=r.sessionLicenseCredits)||void 0===n||null===(a=n.find((function(t){return t.creditId===e.creditId})))||void 0===a?void 0:a.creditValue;o&&o>0&&(o=parseFloat(o.toString()),i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"1-".concat(t.licenseId,"_").concat(e.creditId),o)))})),e=Object(J.a)(Object(J.a)({},e),i)})),Object(x.isEmpty)(null===ae||void 0===ae?void 0:ae.licenseCreditsList)?e:Object(J.a)(Object(J.a)({},e),null===ae||void 0===ae?void 0:ae.licenseCreditsList)}(),licensePropsList:function(){var e={};return k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(t){var i={},r=Array(),n=Array(),a=Array(),o=Array();t.licenseProperties&&t.licenseProperties.forEach((function(e){var s,l,c,d=null===je||void 0===je||null===(s=je.find((function(e){return e.licenseId===t.licenseId})))||void 0===s||null===(l=s.sessionLicenseProperties)||void 0===l||null===(c=l.find((function(t){return t.propertyId===e.propertyId})))||void 0===c?void 0:c.propertyValue;if(5!==e.typeId)void 0===d&&(d="",t.licenseId===ye&&6===e.propertyId&&(d="0")),t.licenseId===de&&6===e.propertyId&&(void 0!==d&&""!==d||(d=Object(N.f)(ee))),i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"1-".concat(t.licenseId,"_").concat(e.propertyId),"null"===d?null:d));else if("true"===d){var u,h,v={id:null!==(u=e.propertyId)&&void 0!==u?u:0,name:e.label};if(null!==e.licensePropertyGroupId)if(t.licenseId===X)v.name=null===(h=v.name)||void 0===h?void 0:h.replace("Accounting",""),o.push(v);else n.push(v);else if(t.licenseId===X&&e.propertyId&&e.propertyId>2){var p;v.name=null===(p=v.name)||void 0===p?void 0:p.replace("Accounting",""),a.push(v)}else r.push(v)}})),i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"1-".concat(t.licenseId,"_checkbox_properties"),r)),i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"1-".concat(t.licenseId,"_grouped_properties"),n)),t.licenseId===X&&(i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"1-".concat(t.licenseId,"_nasbacheckbox_properties"),a)),i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"1-".concat(t.licenseId,"_nasbagrouped_properties"),o))),e=Object(J.a)(Object(J.a)({},e),i)})),Object(x.isEmpty)(null===ae||void 0===ae?void 0:ae.licensePropsList)?e:Object(J.a)(Object(J.a)({},e),null===ae||void 0===ae?void 0:ae.licensePropsList)}(),licenseExpiration:function(){var e={};return k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(t){var i,r=null;void 0===(r=null===je||void 0===je||null===(i=je.find((function(e){return e.licenseId===t.licenseId})))||void 0===i?void 0:i.expirationDate)&&(r=null),e=Object(J.a)(Object(J.a)({},e),{},Object(Sa.a)({},"1-".concat(t.licenseId),r))})),Object(x.isEmpty)(null===ae||void 0===ae?void 0:ae.licenseExpiration)?e:Object(J.a)(Object(J.a)({},e),null===ae||void 0===ae?void 0:ae.licenseExpiration)}()},validationSchema:Object(yn.object)().shape({title:Object(yn.string)().required("Course title is required.").max(1e3,"Course title must not exceed 1000 characters.").trim(),providerId:Object(yn.string)().nullable().required("Provider is required"),idLabel:Object(yn.string)().max(100,"Course Code must not exceed 100 characters."),note:Object(yn.string)().max(1e3,"Notes must not exceed 1000 characters."),startDate:Object(yn.date)().nullable().required("Completion date is required").max(new Date,"Completion date may not be a future date.").typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),courseFormat:Object(yn.object)().required("Format is required").nullable(),licenseCreditsList:Object(yn.object)().shape(function(){var e={};return k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(t){t.licenseCredits&&t.licenseCredits.forEach((function(i){var r=Object(yn.number)().min(0,"Invalid input.").typeError("Invalid input.");e["1-".concat(t.licenseId,"_").concat(i.creditId)]=r}))})),e}()),licensePropsList:Object(yn.object)().shape(function(){var e,t={},i=null!==(e=k&&k.filter((function(e){return e.licenseId===de||e.licenseId===ye})))&&void 0!==e?e:[];return i.length>0&&i.forEach((function(e){e.licenseProperties&&e.licenseProperties.forEach((function(i){if(3===i.typeId){var r=Object(yn.date)().nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar"));t["1-".concat(e.licenseId,"_").concat(i.propertyId)]=r}}))})),t}()),licenseExpiration:Object(yn.object)().shape(function(){var e={},t=null!==ee&&void 0!==ee?ee:new Date,i=new Date(t);return i.setDate(i.getDate()+1),k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(r){var n=Object(yn.date)().nullable().notRequired().min(i,"Date must be after ".concat(Object(N.c)(t))).typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar"));e["1-".concat(r.licenseId)]=n})),e}()),participantList:Object(yn.array)().of(Object(yn.object)().shape({user:Object(yn.object)().nullable(),isInstructor:Object(yn.boolean)(),isUploading:Object(yn.boolean)(),isDownloading:Object(yn.boolean)(),certificateFileId:Object(yn.number)()})).test("check-duplicate","",(function(e){var t=function(e){var t=Array(),i=Array();return e.filter((function(e){return!Object(x.isEmpty)(e.user)})).forEach((function(r){void 0!==r.user&&(e.filter((function(e){return!Object(x.isEmpty)(e.user)})).filter((function(e){return e.isInstructor===r.isInstructor&&e.user.userId===r.user.userId})).length>1?i:t).push(r)})),{uniqueItems:t,duplicateItems:i}}(e);return fe(t.duplicateItems),!(t.duplicateItems.length>0)}))}),onSubmit:function(e,t){var i=function(){var i=e.title,r=e.idLabel,n=e.providerId,a=e.description,o=e.note,s=e.startDate,l=e.courseFormat,c=e.mediaTypeId,d=e.licenseStatus,u=e.licenseCreditsList,h=e.licensePropsList,v=e.licenseExpiration,f=e.participantList,g={title:i.trim(),courseIdLabel:r.trim(),providerId:n.providerId,description:a,note:o},b=Array(),S=Array();k&&k.forEach((function(e){var t=new Array,i=new p.fe;if(i.licenseId=e.licenseId,d){var r=new Array;Object.keys(d).forEach((function(t){var n=t.split("-")[1],a=d[t];r.push(parseInt(n,10)),n==="".concat(e.licenseId)&&void 0!==a&&(i.licenseStatus=0===a?1:a)})),r.includes(i.licenseId)||(i.licenseStatus=1)}if(v){var n=new Array;Object.keys(v).forEach((function(t){var r=t.split("-")[1],a=v[t];n.push(parseInt(r,10)),r==="".concat(e.licenseId)&&void 0!==a&&null!=a&&(i.expirationDate=Object(N.e)(a))}))}var a=Array();u&&Object.keys(u).forEach((function(i){var r=i.split("_")[0];r=r.split("-")[1];var n=parseInt(i.split("_")[1],10),o=u[i];if(r==="".concat(e.licenseId)&&void 0!==n&&null!==n&&parseFloat(o)>0){t.push(n);var s=new p.ee;s.creditId=n,s.creditValue=parseFloat(o),a.push(s)}}));var o=Array();if(h&&Object.keys(h).forEach((function(t){var i=t.split("-")[1].split("_")[0];if(void 0!==t.split("_")[1])if("checkbox"!==t.split("_")[1]&&"grouped"!==t.split("_")[1]&&"nasbacheckbox"!==t.split("_")[1]&&"nasbagrouped"!==t.split("_")[1]||i!=="".concat(e.licenseId)){var r=parseInt(t.split("_")[1],10),n=h[t];if(i==="".concat(e.licenseId)&&null!==r&&null!==n&&""!==n){var a=new p.ge;a.propertyId=r,Q.a.isMoment(n)&&n.isValid()?(a.propertyValue=Object(N.f)(n.toDate()),o.push(a)):Q.a.isMoment(n)||(a.propertyValue=String(n),o.push(a))}}else{h[t].forEach((function(e){var t=new p.ge;t.propertyId=e.id,t.propertyValue="true",o.push(t)}))}})),e.licenseId===ye)if(h)Object.keys(h).forEach((function(t){var i=t.split("-")[1].split("_")[0],r=h[t];if(void 0!==t.split("_")[1]&&("checkbox"===t.split("_")[1]||"grouped"===t.split("_")[1]||"nasbacheckbox"===t.split("_")[1]||"nasbagrouped"===t.split("_")[1])&&i==="".concat(e.licenseId)&&!r.find((function(e){return 3===e.id||4===e.id||5===e.id}))&&!o.find((function(e){return 3===e.propertyId||4===e.propertyId||5===e.propertyId}))){var n=new p.ge;n.propertyId=4,n.propertyValue="true",o.push(n)}}));else if(!o.find((function(e){return 3===e.propertyId||4===e.propertyId||5===e.propertyId}))){var s=new p.ge;s.propertyId=4,s.propertyValue="true",o.push(s)}i.sessionLicenseCredits=a,i.sessionLicenseProperties=o,b.push(i)}));var E={courseId:0,areQuestionsAllowed:!0,courseFormatId:l.courseFormatId,detail:"",duration:"",endTime:"",isIndividualSessionDateAllowed:!0,isOpenToClient:!0,isPublished:!1,isRegistrationApprovalNeeded:!1,isWaitlistingAllowed:!1,launchUrl:"",mediaTypeId:(null===l||void 0===l?void 0:l.isOnlineLearning)?c:void 0,note:"",registrationLimit:0,sessionLicenses:b,sessionMaterials:[],sessionMediaFiles:[],sessionTypeId:1,startDate:Object(N.e)(s),startTime:"",timezoneId:me,title:i.trim(),url:""},I={sessions:[p.Z.fromJS(E)],sessionRecurrencePattern:void 0};f&&f.forEach((function(e){if(e.user){var t={userId:e.user.userId,isInstructor:e.isInstructor,certificateFileId:Q()(s)>Q()(new Date)?0:e.certificateFileId};S.push(p.R.fromJS(t))}}));var C={course:p.O.fromJS(g),session:p.Q.fromJS(I),sessionParticipants:S};Object(x.isEmpty)(pe)?F(i.trim(),n.providerId,r.trim()).then((function(e){if(e.error)if("A course with the same course code is already existing."===e.validationMessage){var a;y(null!==(a=e.validationMessage)&&void 0!==a?a:"","error"),t.setSubmitting(!1)}else{var o={courseTitle:i.trim(),courseProviderId:n.providerId,courseCode:r.trim(),session:p.Q.fromJS(I),sessionParticipants:S};P(o).then((function(e){t.setSubmitting(!1),w(),e>0?(O.push("/transcripts"),y("Session is successfully created.","success")):O.push("/error404")})).catch((function(){t.setSubmitting(!1)}))}else m(C).then((function(e){t.setSubmitting(!1),w(),e>0?(O.push("/transcripts"),y("Course is successfully created.","success")):O.push("/error404")})).catch((function(){t.setSubmitting(!1)}))})):t.setSubmitting(!1)};(null===k||void 0===k?void 0:k.length)?i():T({message:"You have not added any credits. Are you sure you want to proceed?",title:"Confirm",OnConfirm:i,onCancel:function(){return t.setSubmitting(!1)}})}},Pe=function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"};return n.a.createElement(mn.Formik,{initialValues:we.initialValues,validationSchema:we.validationSchema,onSubmit:we.onSubmit,enableReinitialize:!0,key:"add-course"},(function(e){var t=e.getFieldProps("participantList").value;return n.a.createElement(h.Form,{id:"add-course",formikContext:!0},n.a.createElement(Hs.WizardDialogBody,{titleBar:{title:C}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-left"},n.a.createElement(h.Typography,{variant:"h5"},"Course Details")),n.a.createElement(h.Grid,{item:!0,xs:9,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.TextField,{required:!0,id:"title",label:"Course Title",formikContext:!0,fullWidth:!0,loading:void 0===$})),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},n.a.createElement(h.ComboBox,{disableCloseOnSelect:!1,addOption:be?{icon:"Add",label:"Add options",onClick:function(){V(ge),q(!0)}}:void 0,onInputChange:function(e,t){ge=null!==t&&void 0!==t?t:""},required:!0,formikContext:!0,id:"providerId",fullWidth:!0,label:"Provider",options:$||[],loading:void 0===$})),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},n.a.createElement(h.TextField,{id:"idLabel",label:"Course Code",formikContext:!0,fullWidth:!0,loading:void 0===$})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,alignment:"top-left"},n.a.createElement(h.ComboBox,{label:"Format",fullWidth:!0,id:"courseFormat",variant:"outlined",formikContext:!0,loading:null===b||void 0===$,required:!0,options:b||[],onChange:function(t,i){var r=i;e.setFieldValue("courseFormat",i),19===(null===r||void 0===r?void 0:r.courseFormatId)?e.setFieldValue("mediaTypeId",2):30===(null===r||void 0===r?void 0:r.courseFormatId)?e.setFieldValue("mediaTypeId",1):(null===r||void 0===r||r.courseFormatId,e.setFieldValue("mediaTypeId",3))},groupBy:Pe})),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6},n.a.createElement(h.DateTimeField,{id:"startDate",label:"Completion Date",type:"date",formikContext:!0,fullWidth:!0,required:!0,format:Object(N.h)(),loading:null===b||void 0===$,onChange:function(t){e.setFieldValue("startDate",t),Ce(e,t),Q()(t).isValid()&&te(t)}})))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12,sm:3,alignment:"top-left"},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"h5"},"Credits"),k&&(null===k||void 0===k?void 0:k.length)>=1&&(null===k||void 0===k?void 0:k.length)<20&&n.a.createElement(h.Box,{mt:.75,textAlign:"center"},n.a.createElement(h.Link,{style:{display:"flex"},underline:"none",onClick:function(){return xe(e)}},n.a.createElement(h.Box,{mr:.75},n.a.createElement(h.SystemIcon,{icon:"Add",color:"info"})),n.a.createElement(h.Typography,{variant:"body1",color:"info"},"Add Credits"))))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:9},void 0===$?n.a.createElement(h.Box,{display:"flex",justifyContent:"center"},n.a.createElement(h.TextField,{loading:!0})):n.a.createElement($c,{sessionId:1,editsession:!1,parentFormState:e,isTPCourseElearning:void 0!==e.getFieldProps("courseFormat").value&&null!==e.getFieldProps("courseFormat").value&&(!!e.getFieldProps("courseFormat").value.isOnlineLearning&&(0!==e.getFieldProps("mediaTypeId").value&&void 0!==e.getFieldProps("mediaTypeId").value)),willAddThirdPartyCourse:!0,handleOpenLicenseDrawer:function(){return xe(e)},reinitializeFormState:function(){return Ce(e)}})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Divider,null)),n.a.createElement(h.Grid,{item:!0,xs:12,sm:3,alignment:"top-left"},n.a.createElement(h.Typography,{variant:"h5"},"Participant & Certificate")),n.a.createElement(h.Grid,{item:!0,xs:12,sm:9,alignment:"center-left"},$&&n.a.createElement(mn.FieldArray,{name:"participantList",render:function(i){var r=i.remove,a=i.push;return n.a.createElement(n.a.Fragment,null,t&&t.length>0&&t.map((function(i,o){return function(e,t,i,r,a,o){return n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:"form",key:e},n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"center-left"},n.a.createElement(h.Row,{flex:1},void 0!==pe&&pe.length>0&&!Object(x.isEmpty)(null===t||void 0===t?void 0:t.user)&&pe.find((function(e){return e.isInstructor===(null===t||void 0===t?void 0:t.isInstructor)&&e.user.userId===(null===t||void 0===t?void 0:t.user.userId)}))&&n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(h.Tooltip,{title:"Duplicate participation"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Error",color:"error",size:"sm"})))),n.a.createElement(h.Expanded,{flex:1},n.a.createElement(h.ComboBox,{id:"participantList.".concat(e,".user"),formikContext:!0,label:"Participant",fullWidth:!0,loading:void 0===ce,options:(null===ce||void 0===ce?void 0:ce.map((function(e){return{userId:e.userId,name:"".concat(e.lastName,", ").concat(e.firstName," (").concat(e.email,")")}})))||[]})))),n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"center-left"},n.a.createElement(h.Row,{crossAxisAlignment:"middle",size:"max"},n.a.createElement(h.Box,{maxWidth:"163px"},n.a.createElement(h.ToggleButtonGroup,{stretch:!0,exclusive:!0,value:null===t||void 0===t?void 0:t.isInstructor,color:"primary",size:"small",options:[{label:"Attendee",value:!1},{label:"Instructor",value:!0}],formikContext:!0,id:"participantList.".concat(e,".isInstructor"),onChange:function(t,i){null!==i&&r.setFieldValue("participantList.".concat(e,".isInstructor"),i)}})),n.a.createElement(h.Spacer,{size:3}),n.a.createElement(Kc,{id:e,formState:r}),n.a.createElement(n.a.Fragment,null,e===i.length-1&&20!==i.length?n.a.createElement(h.Row,{mainAxisAlignment:"center"},i.length>1&&n.a.createElement(h.IconButton,{disabled:i.length<=1,onClick:function(){a(e)}},n.a.createElement(h.Typography,{color:i.length<=1?"textSecondary":"primary"},n.a.createElement(h.SystemIcon,{icon:"Delete",size:"sm",type:"duotone"}))),n.a.createElement(h.IconButton,{onClick:function(){o({isInstructor:!1,certificateFileId:0,isUploading:!1,isDownloading:!1})}},n.a.createElement(h.Typography,{color:"primary"},n.a.createElement(h.SystemIcon,{icon:"Add",size:"md",type:"duotone"})))):n.a.createElement(h.IconButton,{disabled:i.length<=1,onClick:function(){a(e)}},n.a.createElement(h.Typography,{color:i.length<=1?"textSecondary":"primary"},n.a.createElement(h.SystemIcon,{icon:"Delete",size:"sm",type:"duotone"})))))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Divider,null))))}(o,i,t,e,r,a)})))}}),!$&&n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:"form",key:"skeleton"},n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"center-left"},n.a.createElement(h.SelectField,{required:!0,label:"Participant",loading:void 0===$,fullWidth:!0,formikContext:!1},n.a.createElement(h.MenuItem,{key:-1,value:""}))),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Row,{crossAxisAlignment:"middle",size:"max"},n.a.createElement(h.ToggleButtonGroup,{stretch:!0,exclusive:!0,value:!1,color:"primary",size:"small",options:[{label:"Attendee",value:!1},{label:"Instructor",value:!0}],formikContext:!1,loading:void 0===$}))))))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Divider,null))),G&&n.a.createElement(ds,{isAddMode:!0,open:G,onClose:function(){return q(!1)},onAddNewProvider:function(t){return function(t){e.setFieldTouched("providerId",!0),e.setFieldValue("providerId",t)}(t)},providerName:W}),Ie&&n.a.createElement(_c,{title:"Add Credits",open:Ie,onClose:function(){Oe(!1)},showFOSLicense:!0,showProfileLicenses:!1})),n.a.createElement(Hs.WizardDialogFooter,{buttons:"custom"},n.a.createElement(h.Grid,{container:!0,justify:"center",spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{onClick:function(){D(null),w()},variant:"contained",color:"default"},"Cancel")),n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:e.isSubmitting,loading:e.isSubmitting},"Save")))))}))}))),ed=Object(s.b)(null,(function(e){return{showConfirmation:function(t){return e(Object($n.b)(t))},setSelectedFirmLicense:function(t){return e(Object(zc.b)(t))}}}))((function(e){var t=e.name,i=e.open,r=e.onClose,a=e.setOpen,o=e.setSelectedFirmLicense,s=e.showConfirmation,l=e.userId;return n.a.createElement(Ks.a,{open:i,onClose:function(){s({message:"All changes will be lost. Are you sure you want to close the wizard? ",title:"Confirm Exit",OnConfirm:function(){o(null),a(!1)}})},fullScreen:!0,steps:[{component:n.a.createElement(Xc,{onClose:r,labelTitle:"Add 3rd-Party Course",name:t,userId:l})}]},n.a.createElement(Hs.WizardDialogHeader,{titleBar:{title:"Add Course"}}),n.a.createElement(Hs.WizardDialogStepContent,null))})),td=Object(V.makeStyles)((function(e){var t=e.breakpoints,i=e.spacing;return Object(V.createStyles)({cardContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center","& img":{marginTop:i(2),height:i(16),maxWidth:"100%"}},userCard:Object(Sa.a)({width:"100%"},t.up("md"),{width:i(50)}),userCardSelected:{borderColor:"#239BD8"},userAvatar:{width:i(15),height:i(15),margin:"".concat(i(0)," auto")},firmAvatar:{width:i(10),height:i(10)}})})),id=function(e){var t=e.actions,i=e.addButton,r=e.avatar,a=e.details,o=e.email,s=e.fullName,l=e.hasManageTeamPermission,c=void 0!==l&&l,d=e.buttonLabel,u=e.onSelect,v=e.size,p=e.disabled,f=void 0!==p&&p,m=td(),y=function(){return n.a.createElement(h.Button,{size:"small",variant:"Unselect"===d?"contained":"outlined",color:"primary",onClick:u,disabled:f||"Unselect"===d&&void 0===o},d)};return n.a.createElement(h.Card,{variant:"outlined",className:Object(Va.default)(m.userCard,Object(Sa.a)({},m.userCardSelected,"Unselect"===d&&void 0!==o))},n.a.createElement(h.CardContent,{classes:{root:m.cardContent}},n.a.createElement(h.Grid,{container:!0,spacing:0},n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:"sm"===v?12:3,lg:"sm"===v?12:3,xl:"sm"===v?12:3},n.a.createElement(h.Hidden,{mdUp:"sm"!==v},n.a.createElement(y,null))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:"sm"===v?12:6,lg:"sm"===v?12:6,xl:"sm"===v?12:6},n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Avatar,{src:null===r||void 0===r?void 0:r.source,classes:{root:m.userAvatar}},null===r||void 0===r?void 0:r.initials)),n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},n.a.createElement("strong",null,s))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:"sm"===v?12:3,lg:"sm"===v?12:3,xl:"sm"===v?12:3,alignment:"top-right"},n.a.createElement(h.Hidden,{xsUp:"sm"===v,smDown:"sm"!==v},n.a.createElement(y,null)))),o&&n.a.createElement(h.Column,{crossAxisAlignment:"center"},o&&n.a.createElement(h.Box,{mb:1,color:"#979797"},n.a.createElement(h.Typography,{variant:"body1",color:"inherit"},o)),a&&n.a.createElement(h.Box,{mb:1},a),!f&&t&&n.a.createElement(h.Box,null,t)),!f&&c&&n.a.createElement(h.Column,{crossAxisAlignment:"center"},i&&n.a.createElement(h.Box,{m:1},i))))};id.defaultProps={size:"lg"};var rd=id,nd=function(e,t,i){return function(r){var n=new p.rc({userId:e,subRoleId:t,filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:10});return q.K.getAll(void 0,i?p.rc.fromJS(i):n).then((function(e){return e})).catch((function(e){throw r(Object(M.b)(e)),e}))}},ad=Object(V.makeStyles)((function(e){var t=e.palette,i=e.typography;return Object(V.createStyles)({cardTitle:Object(J.a)(Object(J.a)({},i.subtitle1),{},{fontWeight:700}),cardSubheader:Object(J.a)({},i.subtitle2),cardContent:Object(J.a)(Object(J.a)({},i.subtitle2),{},{color:t.grey[500]})})})),od=Object(s.b)((function(e){var t;return{firmName:null===(t=e.generalSettings.firm)||void 0===t?void 0:t.name}}),(function(e){return{getTeamViewUsers:function(t,i,r){return e(nd(t,i,r))},getScreenDescription:function(t){return e(Object(Vr.c)(t))},setLoggedUser:function(t){return e(Object(Hc.b)(t))}}})),sd=Object(_n.a)(od(Object(d.o)((function(e){var t,i,a,o,l,d,u,v,f,m,y,g,b,S,I,O,C=e.getScreenDescription,x=e.getTeamViewUsers,j=e.setLoggedUser,w=e.history,P=Object(r.useState)(!1),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)({name:"",userId:0}),D=Object(c.a)(k,2),F=D[0],B=D[1],R=Object(s.c)((function(e){return e.users.authenticatedUser})),U=null!==(t=R&&R.userRole&&R.userRole[0].subRoleId)&&void 0!==t?t:0,G=Object(s.c)((function(e){return e.users.loggedUser})),q=null!==(i=G&&G.userRole&&G.userRole[0].subRoleId)&&void 0!==i?i:0,M=Object(s.c)((function(e){return e.users.isImpersonated})),z=M?q:U,W=null!==(a=M?null===G||void 0===G?void 0:G.userId:null===R||void 0===R?void 0:R.userId)&&void 0!==a?a:0,_={userId:W,subRoleId:z,page:1,pageSize:6,filterBy:[],searchCriteria:[]},Y=ad(),$=Object(V.useTheme)(),H=Object(V.useMediaQuery)($.breakpoints.down("xs")),K=Object(r.useState)("grid"),Q=Object(c.a)(K,2),Z=Q[0],X=Q[1],ee=Object(r.useState)(!1),te=Object(c.a)(ee,2),ie=te[0],re=te[1],ne=Object(r.useState)(),ae=Object(c.a)(ne,2),oe=ae[0],se=ae[1],le=Object(r.useState)(Object(J.a)({},_)),ce=Object(c.a)(le,2),de=ce[0],ue=ce[1],he=Object(r.useState)(!1),ve=Object(c.a)(he,2),pe=ve[0],fe=ve[1],me=Object(r.useState)(),ye=Object(c.a)(me,2),ge=ye[0],be=ye[1],Se=Object(r.useState)(),Ee=Object(c.a)(Se,2),Ie=Ee[0],Oe=Ee[1],Ce=E(p.Kd.ManagePortalTeam),xe=z===p.re.AdministrativeAssistant,je="true"===(null===(o=Object(s.c)((function(e){var t,i;return null===(t=e.generalSettings.firm)||void 0===t||null===(i=t.firmSettings)||void 0===i?void 0:i.filter((function(e){return"EnableDevelopmentPlanRecord"===e.key}))[0].value})))||void 0===o?void 0:o.toLowerCase()),we=E(p.Kd.ViewPortalCourseCalendar),Pe=E(p.Kd.ViewPortalUserCourses),Te=E(p.Kd.ViewPortalUserCompliance),Ae=E(p.Kd.ViewPortalLearningPlans),Ne=E(p.Kd.ViewPortalTranscripts);Object(r.useEffect)((function(){G&&C(p.Md.TeamView).then((function(e){return se(e)}))}),[C,G]),Object(r.useEffect)((function(){Oe(void 0),be(void 0),fe(!0),x(W,z,de).then((function(e){void 0!==e&&(Oe(e),be(e.users)),fe(!1)}))}),[x,de,W,z]);var ke=function(e){w.push("/".concat(e))},De=Object(Mc.useDebounce)((function(e){ue(""!==e?Object(J.a)(Object(J.a)({},de),{},{page:1,filterBy:["Name[contains]:".concat(e)]}):Object(J.a)(Object(J.a)({},de),{},{page:1,filterBy:[]}))}),500);return n.a.createElement(h.Screen,{maxWidth:"lg",titleBar:{title:(oe&&""!==oe.title?oe.title:"Team View")||"Team View",description:oe?n.a.createElement(h.Column,null,null!==oe.shortDescription&&""!==oe.shortDescription&&n.a.createElement(h.TextEditorView,{model:L(oe.shortDescription)}),null!==oe.text&&""!==oe.text&&n.a.createElement(h.Box,{mt:2},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return re(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mt:2.5},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"}))),sideSection:n.a.createElement(n.a.Fragment,null,H?"":n.a.createElement(n.a.Fragment,null,M?n.a.createElement(rd,{avatar:{source:null===R||void 0===R||null===(l=R.userAvatar)||void 0===l?void 0:l.userAvatarThumbnailURl,initials:"".concat(null===R||void 0===R||null===(d=R.firstName)||void 0===d?void 0:d.substr(0,1)).concat(null===R||void 0===R||null===(u=R.lastName)||void 0===u?void 0:u.substr(0,1))},fullName:"".concat(null===R||void 0===R?void 0:R.firstName," ").concat(null===R||void 0===R?void 0:R.lastName),buttonLabel:((null===R||void 0===R?void 0:R.idpId)||"")===((null===G||void 0===G?void 0:G.idpId)||"")?"Unselect":"Select",onSelect:function(){return j((null===G||void 0===G?void 0:G.idpId)||"")},disabled:M}):n.a.createElement(rd,{avatar:{source:null===R||void 0===R||null===(v=R.userAvatar)||void 0===v?void 0:v.userAvatarThumbnailURl,initials:"".concat(null===R||void 0===R||null===(f=R.firstName)||void 0===f?void 0:f.substr(0,1)).concat(null===R||void 0===R||null===(m=R.lastName)||void 0===m?void 0:m.substr(0,1))},fullName:"".concat(null===R||void 0===R?void 0:R.firstName," ").concat(null===R||void 0===R?void 0:R.lastName),buttonLabel:((null===R||void 0===R?void 0:R.idpId)||"")===((null===G||void 0===G?void 0:G.idpId)||"")?"Unselect":"Select",onSelect:function(){return j((null===R||void 0===R?void 0:R.idpId)||"")},disabled:((null===R||void 0===R?void 0:R.idpId)||"")===((null===G||void 0===G?void 0:G.idpId)||""),email:null===G||void 0===G?void 0:G.email})))}},H?n.a.createElement(n.a.Fragment,null,M?n.a.createElement(rd,{avatar:{source:null===G||void 0===G||null===(y=G.userAvatar)||void 0===y?void 0:y.userAvatarThumbnailURl,initials:"".concat(null===G||void 0===G||null===(g=G.firstName)||void 0===g?void 0:g.substr(0,1)).concat(null===G||void 0===G||null===(b=G.lastName)||void 0===b?void 0:b.substr(0,1))},fullName:"".concat(null===G||void 0===G?void 0:G.firstName," ").concat(null===G||void 0===G?void 0:G.lastName),buttonLabel:"Select",onSelect:function(){return j((null===G||void 0===G?void 0:G.idpId)||"")},disabled:M}):n.a.createElement(rd,{avatar:{source:null===G||void 0===G||null===(S=G.userAvatar)||void 0===S?void 0:S.userAvatarThumbnailURl,initials:"".concat(null===G||void 0===G||null===(I=G.firstName)||void 0===I?void 0:I.substr(0,1)).concat(null===G||void 0===G||null===(O=G.lastName)||void 0===O?void 0:O.substr(0,1))},fullName:"".concat(null===G||void 0===G?void 0:G.firstName," ").concat(null===G||void 0===G?void 0:G.lastName),buttonLabel:"Unselect",onSelect:function(){return j((null===R||void 0===R?void 0:R.idpId)||"")},disabled:((null===R||void 0===R?void 0:R.idpId)||"")===((null===G||void 0===G?void 0:G.idpId)||""),email:null===G||void 0===G?void 0:G.email})):"",n.a.createElement(h.Box,{mt:3}),n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:10,stretchContent:!0,alignment:"center-right"},n.a.createElement(h.Row,{mainAxisAlignment:"end"},n.a.createElement(h.TextField,{inputRef:function(e){return e},placeholder:"Search",startAdornment:n.a.createElement(h.InputAdornment,{position:"start"},n.a.createElement(h.SystemIcon,{icon:"Search"})),onChange:function(e){return De(e.target.value)},formikContext:!1,dense:!0})),n.a.createElement(h.Row,{mainAxisAlignment:"end",flex:0},n.a.createElement(h.Box,{hidden:H},n.a.createElement(h.Tooltip,{title:"Cards View"},n.a.createElement(h.IconButton,{onClick:function(){return X("grid")},color:"grid"===Z?"primary":"default"},n.a.createElement(h.SystemIcon,{icon:"ViewAsGrid",size:"sm"}))),n.a.createElement(h.Tooltip,{title:"List View"},n.a.createElement(h.IconButton,{onClick:function(){return X("list")},color:"list"===Z?"primary":"default"},n.a.createElement(h.SystemIcon,{icon:"ViewAsList",size:"sm"})))))),pe?[1,2,3,4,5,6].map((function(e){return n.a.createElement(h.Grid,{key:e,item:!0,xs:12,sm:"grid"===Z?6:12,lg:"grid"===Z?4:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",status:"default"},n.a.createElement(h.CardHeader,{classes:{title:Y.cardTitle,subheader:Y.cardSubheader},title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{classes:{root:Y.cardContent},noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"}))))})):n.a.createElement(n.a.Fragment,null,Ie&&0!==Ie.recordCount?n.a.createElement(n.a.Fragment,null,ge&&(null===ge||void 0===ge?void 0:ge.map((function(e){var t,i,r,a=function(){var t,i;if((null===e||void 0===e||null===(t=e.userDepartment)||void 0===t?void 0:t.length)||(null===e||void 0===e||null===(i=e.userPosition)||void 0===i?void 0:i.length)){var r,a,o,s,l,c,d=(null===e||void 0===e?void 0:e.userDepartment)&&(null===e||void 0===e||null===(r=e.userDepartment)||void 0===r?void 0:r.map((function(e){return e.name}))),u=(null===e||void 0===e?void 0:e.userPosition)&&(null===e||void 0===e||null===(a=e.userPosition)||void 0===a?void 0:a.map((function(e){return e.name}))),v=d&&d[0],p=d&&d.splice(1,d.length),f=u&&u[0],m=u&&u.splice(1,u.length);return n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"subtitle2"},(null===e||void 0===e?void 0:e.location)&&(null===e||void 0===e?void 0:e.location),0!==(null===e||void 0===e||null===(o=e.userDepartment)||void 0===o?void 0:o.length)&&n.a.createElement(n.a.Fragment,null,1===(null===e||void 0===e||null===(s=e.userDepartment)||void 0===s?void 0:s.length)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,null===e||void 0===e?void 0:e.userDepartment[0].name)):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,v,","),n.a.createElement(h.Tooltip,{title:p.join(" \u2022 ")},n.a.createElement("span",null," +",p&&p.length)))),0!==(null===e||void 0===e||null===(l=e.userPosition)||void 0===l?void 0:l.length)&&n.a.createElement(n.a.Fragment,null,1===(null===e||void 0===e||null===(c=e.userPosition)||void 0===c?void 0:c.length)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,null===e||void 0===e?void 0:e.userPosition[0].name)):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,f,","),n.a.createElement(h.Tooltip,{title:m.join(" \u2022 ")},n.a.createElement("span",null," +",m&&m.length))))))}return n.a.createElement(h.Typography,{variant:"subtitle2"},(null===e||void 0===e?void 0:e.location)&&(null===e||void 0===e?void 0:e.location))},o=function(){return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.ButtonGroup,{disabled:((null===e||void 0===e?void 0:e.idpId)||"")!==((null===G||void 0===G?void 0:G.idpId)||""),size:"small",fullWidth:!0,orientation:"horizontal",variant:"outlined",color:"primary"},Te&&n.a.createElement(h.Tooltip,{title:"Compliance",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("compliance")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",color:"inherit",type:"light",size:"sm"})))),Ae&&n.a.createElement(h.Tooltip,{title:"Learning Plans",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("learning-plans")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"LearningPlans",color:"inherit",type:"light",size:"sm"})))),je&&e.hasPortalDevelopmentPlanAccess&&e.hasUKLicense&&n.a.createElement(h.Tooltip,{title:"Development Plans",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("development-plans")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"DevelopmentPlan",color:"inherit",type:"light",size:"sm"})))),Ne&&n.a.createElement(h.Tooltip,{title:"Transcripts",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("transcripts")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Transcript",color:"inherit",type:"light",size:"sm"})))),we&&n.a.createElement(h.Tooltip,{title:"Course Calendar",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("course-calendar")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Calendar",color:"inherit",type:"light",size:"sm"})))),Pe&&n.a.createElement(h.Tooltip,{title:"Courses",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("user-courses")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"MyCourses",color:"inherit",type:"light",size:"sm"}))))))};return n.a.createElement(h.Grid,{key:e.userId,item:!0,xs:12,sm:"list"===Z||H?12:6,lg:"list"===Z||H?12:4,stretchContent:!0},n.a.createElement(rd,{actions:n.a.createElement(o,null),avatar:{source:null===e||void 0===e||null===(t=e.userAvatar)||void 0===t?void 0:t.userAvatarThumbnailURl,initials:null!==(i=null===e||void 0===e?void 0:e.initials)&&void 0!==i?i:""},details:n.a.createElement(a,null),email:null===e||void 0===e?void 0:e.email,fullName:null!==(r=null===e||void 0===e?void 0:e.name)&&void 0!==r?r:"",buttonLabel:((null===e||void 0===e?void 0:e.idpId)||"")===((null===G||void 0===G?void 0:G.idpId)||"")?"Unselect":"Select",onSelect:function(){return j(((null===e||void 0===e?void 0:e.idpId)||"")===((null===G||void 0===G?void 0:G.idpId)||"")?(null===R||void 0===R?void 0:R.idpId)||"":(null===e||void 0===e?void 0:e.idpId)||"")},addButton:xe&&Ce?n.a.createElement(h.Button,{disabled:((null===e||void 0===e?void 0:e.idpId)||"")!==((null===G||void 0===G?void 0:G.idpId)||""),color:"default",size:"small",variant:"outlined",onClick:function(){var t,i,r,n,a;return n="".concat(null!==(t=null===e||void 0===e?void 0:e.name)&&void 0!==t?t:""," (").concat(null!==(i=null===e||void 0===e?void 0:e.email)&&void 0!==i?i:"",")"),a=null!==(r=null===e||void 0===e?void 0:e.userId)&&void 0!==r?r:0,B({name:n,userId:a}),void N(!0)}},"Add Program Attendance"):n.a.createElement(n.a.Fragment,null),hasManageTeamPermission:!0,disabled:M}))}))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(Ya.a,{count:Math.ceil(((null===Ie||void 0===Ie?void 0:Ie.recordCount)||0)/((null===de||void 0===de?void 0:de.pageSize)||6)),defaultPage:(null===de||void 0===de?void 0:de.page)||1,onChange:function(e,t){return function(e){ue(Object(J.a)(Object(J.a)({},de),{},{page:e}))}(t)}}))):n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No users found."))))),A&&n.a.createElement(ed,{open:A,onClose:function(){B({name:"",userId:0}),N(!1)},setOpen:N,name:F.name,userId:F.userId}),n.a.createElement(dn,{open:ie,onClose:function(){return re(!1)},title:(oe&&""!==oe.title?oe.title:"Team View")||"Team View",description:null===oe||void 0===oe?void 0:oe.text}))})))),ld=i(676),cd=i.n(ld),dd=function(e){var t=e.status,i=e.size,r=e.type,a=e.color;switch(t){case p.u.Certificate:return n.a.createElement(h.SystemIcon,{icon:"Cem-Certificate",size:i,type:r,color:a});case p.u.Upload:return n.a.createElement(h.SystemIcon,{icon:"Upload",size:i,type:r,color:a});case p.u.Print:return n.a.createElement(h.SystemIcon,{icon:"Print",size:i,type:r,color:a});default:return n.a.createElement(n.a.Fragment,null)}};function ud(){ud=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var hd=function(e){var t=e.open,i=e.onClose,a=e.exportToCsv,o=e.exportToPdf,s=e.pdfDisabled,d=e.exportToWord,u=e.exportToXls,v=e.copyToClipboard,p=Object(r.useState)(!1),f=Object(c.a)(p,2),m=f[0],y=f[1],g=Object(r.useState)(""),b=Object(c.a)(g,2),S=b[0],E=b[1],I=function(){var e=Object(l.a)(ud().mark((function e(t){return ud().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(!0),E(t),e.t0=t,e.next="CSV"===e.t0?5:"PDF"===e.t0?10:"WORD"===e.t0?15:"XLS"===e.t0?20:"COPY"===e.t0?25:30;break;case 5:if(e.t1=a,!e.t1){e.next=9;break}return e.next=9,a();case 9:return e.abrupt("break",31);case 10:if(e.t2=o,!e.t2){e.next=14;break}return e.next=14,o();case 14:return e.abrupt("break",31);case 15:if(e.t3=d,!e.t3){e.next=19;break}return e.next=19,d();case 19:return e.abrupt("break",31);case 20:if(e.t4=u,!e.t4){e.next=24;break}return e.next=24,u();case 24:return e.abrupt("break",31);case 25:if(e.t5=v,!e.t5){e.next=29;break}return e.next=29,v();case 29:case 30:return e.abrupt("break",31);case 31:y(!1),i();case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return n.a.createElement(hn.a,{open:t,onClose:i,maxWidth:"xs",fullWidth:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:"Choose a Format",onClose:i}}),n.a.createElement(un.DialogBody,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},a&&n.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{disabled:void 0===a,onClick:function(){return I("CSV")}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"CustomReports",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"CSV"})),n.a.createElement(h.Box,{m:1,flex:1},m&&"CSV"===S&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),u&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{disabled:void 0===u,onClick:function(){return I("XLS")}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"StandardReports",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Excel"})),n.a.createElement(h.Box,{m:1,flex:1},m&&"XLS"===S&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),o&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{disabled:void 0===o||s,onClick:function(){return I("PDF")}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"PdfExport",size:"lg",color:s?"grey300":"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"PDF"})),n.a.createElement(h.Box,{m:1,flex:1},m&&"PDF"===S&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),d&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{disabled:void 0===d,onClick:function(){return I("WORD")}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"FileWord",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Word"})),n.a.createElement(h.Box,{m:1,flex:1},m&&"WORD"===S&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),v&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{disabled:void 0===v,onClick:function(){return v&&v()}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"Copy",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Copy to Clipboard"})),n.a.createElement(h.Box,{m:1,flex:1},m&&"COPY"===S&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))))))},vd=i(326),pd=Object(s.b)((function(e){var t;return{loggedUser:e.users.loggedUser,showLicensesHeldOnly:null===(t=e.portalSettings.branding)||void 0===t?void 0:t.forLicensesHeldOnly}}),(function(e){return{setRequestBody:function(t){return e(vd.e(t))},getLicenseRecords:function(t){return e(function(e){return function(t){return q.S.getSessionLicenses(void 0,new p.ed({sessionId:e})).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))}}}))((function(e){var t=e.isBulkPrint,i=void 0!==t&&t,a=e.getLicenseRecords,o=e.onClose,s=e.open,l=e.records,d=e.userId,u=e.sessionDetails,v=e.setRequestBody,f=e.loggedUser,m=e.showLicensesHeldOnly,y=[660,661],g=Object(r.useState)(),b=Object(c.a)(g,2),S=b[0],E=b[1],I=Object(r.useState)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Array(),w=Array();if(Object(r.useEffect)((function(){if(l){var e=u.map((function(e){var t;return null!==(t=e.sessionId)&&void 0!==t?t:0}));a(e).then((function(e){E(e)}))}}),[u,d,a,l]),S){if(i)S.forEach((function(e){var t,i;void 0===j.find((function(t){var i;return t.licenseId===(null!==(i=e.licenseId)&&void 0!==i?i:0)}))&&j.push(p.fe.fromJS({licenseId:null!==(t=e.licenseId)&&void 0!==t?t:0,name:null!==(i=e.name)&&void 0!==i?i:""}))}));else{var P,T,A,k,D,L=l[0].completionDate,J=(null===(P=l[0].userLicensePropertyValues)||void 0===P||null===(T=P.filter((function(e){return"Reciprocal"===e.propertyLabel&&!0===e.valueBit})))||void 0===T?void 0:T.map((function(e){var t;return null!==(t=e.licenseId)&&void 0!==t?t:0})))||[],F=null===f||void 0===f||null===(A=f.userLicense)||void 0===A?void 0:A.map((function(e){return e.licenseId}));F.push(X);var B=[p.Dd.Denied,p.Dd.Pending];j=null===S||void 0===S?void 0:S.filter((function(e){var t;return!B.includes(e.licenseStatus)&&!J.includes(null!==(t=e.licenseId)&&void 0!==t?t:0)&&(void 0===e.expirationDate||null!==e.expirationDate&&Object(N.d)(e.expirationDate)>Object(N.d)(L))})),j=m?null!==(k=j.filter((function(e){return(null===F||void 0===F?void 0:F.includes(e.licenseId))||y.includes(e.licenseId)})))&&void 0!==k?k:[]:null!==(D=j)&&void 0!==D?D:[]}w.push({name:"Select All",id:-1});w.push({name:"Multi-Credit Certificate",id:0});var R=j.sort((function(e,t){var i,r,n,a;return(null!==(i=e.name)&&void 0!==i?i:"")>(null!==(r=t.name)&&void 0!==r?r:"")?1:(null!==(n=e.name)&&void 0!==n?n:"")<(null!==(a=t.name)&&void 0!==a?a:"")?-1:0})).map((function(e){var t,i;return{name:null!==(t=e.name)&&void 0!==t?t:"",id:null!==(i=e.licenseId)&&void 0!==i?i:0}}));w=w.concat(R)}var U={initialValues:{licenseId:[]},onSubmit:function(e,t){var r,n,a,o=e.licenseId;(t.setSubmitting(!0),0===o.length)?x(!0):(x(!1),function(e){if(!C&&e&&(null===e||void 0===e?void 0:e.length)>0)if(x(!1),i||(null===e||void 0===e?void 0:e.length)>1){v({licenseIds:e,userId:d,sessionDetails:u,sessionUsers:[]}),window.open("/certificatetemplate/preview/user/".concat(d),"certificate_".concat(d),"width=977px height=1006px")}else{var t,r,n,a,o=null!==(t=null===(r=u[0])||void 0===r?void 0:r.sessionId)&&void 0!==t?t:0,s=null!==(n=null===(a=u[0])||void 0===a?void 0:a.isInstructor)&&void 0!==n&&n;window.open("/certificatetemplate/preview/".concat(e[0],"/session/").concat(o,"/user/").concat(d,"/").concat(s),"certificate_".concat(e[0],"_").concat(o,"_").concat(d,"_").concat(s),"width=977px height=1006px")}else x(!0)}(null!==(r=o&&o.length>0&&-1===o[0].id?null===(n=w)||void 0===n||null===(a=n.filter((function(e){return-1!==e.id})))||void 0===a?void 0:a.map((function(e){return e.id})):null===o||void 0===o?void 0:o.map((function(e){return e.id})))&&void 0!==r?r:[]))}};return n.a.createElement(hn.a,{maxWidth:"sm",fullWidth:!0,open:s,onClose:o},n.a.createElement(mn.Formik,{initialValues:U.initialValues,onSubmit:U.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{id:"roleDetails",formikContext:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:"Print Certificates",onClose:o}}),n.a.createElement(un.DialogBody,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},n.a.createElement(h.Collapse,{in:C},n.a.createElement(h.Alert,{type:"error",onClose:function(){return x(!1)}},"Please select at least one license."))),i&&n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},n.a.createElement(h.Alert,{type:"info",variant:"standard",onClose:function(){return x(!1)}},"To print certificates for the firm-provided courses in your filtered display, select the jurisdictions from the drop-down list below. Please note that only certificates for jurisdictions with approved and non-expired credits will be available for printing.")),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left",stretchContent:!0},n.a.createElement(h.ComboBox,{label:"Licenses",id:"licenseId",formikContext:!0,fullWidth:!0,multiple:!0,options:w||[],onChange:function(t,i){return function(t){var i=e.getFieldProps("licenseId").value,r=-1!==t.findIndex((function(e){return-1===e.id})),n=-1===i.findIndex((function(e){return-1===e.id}));t.length>0?x(!1):x(!0),n&&r?e.setFieldValue("licenseId",t.filter((function(e){return-1===e.id}))):!n&&r?e.setFieldValue("licenseId",t.filter((function(e){return-1!==e.id}))):e.setFieldValue("licenseId",t)}(i)},loading:void 0===S})))),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary"},"View")))))})))})),fd=Object(s.b)(null,(function(e){return{updateCompletionDate:function(t,i,r){return e(function(e,t,i){return function(r){return q.R.updateCompletionDate(void 0,p.ye.fromJS({sessionParticipantIds:e,completionDate:t,sessionId:i})).then((function(e){return r(Object(M.a)({message:"Completion date has been updated.",variant:"success"})),e})).catch((function(e){r(Object(M.b)(e))}))}}(t,i,r))}}}))((function(e){var t=e.onClose,i=e.open,r=e.onSuccess,a=e.participantId,o=e.completionDate,s=e.sessionId,l=e.title,c=e.updateCompletionDate,d={initialValues:{completionDate:o,completionTime:0===(null===o||void 0===o?void 0:o.getHours())&&0===(null===o||void 0===o?void 0:o.getMinutes())||void 0===(null===o||void 0===o?void 0:o.getHours())?null:o},validationSchema:Object(yn.object)().shape({completionDate:Object(yn.date)().required("Completion date is required").nullable().max(new Date,"Completion date may not be a future date.").typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),completionTime:Object(yn.date)().notRequired().nullable()}),onSubmit:function(e,i){var n=e.completionDate,o=e.completionTime,l=new Date(fn()(n).startOf("day").toString()),d=new Date(o),u=null!==o?new Date(l.setHours(d.getHours(),d.getMinutes(),d.getSeconds())):new Date(fn()(n).startOf("day").toString());c([a],new Date(Object(Zt.j)(u)),s).then((function(){t&&t(),r&&r(),i.setSubmitting(!1)}))}};return n.a.createElement(hn.a,{maxWidth:"sm",fullWidth:!0,color:"default",open:i,onClose:t},n.a.createElement(mn.Formik,{initialValues:d.initialValues,validationSchema:d.validationSchema,onSubmit:d.onSubmit},(function(e){return n.a.createElement(h.Form,{id:"course-save-filter",formikContext:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:l,onClose:t}}),n.a.createElement(un.DialogBody,{maxWidth:!1},n.a.createElement(h.Grid,{container:!0,spacing:2},n.a.createElement(h.Grid,{item:!0,xs:12,key:"caption",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Please set a completion date for the participant validation.")),n.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.DateTimeField,{id:"completionDate",type:"date",formikContext:!0,format:"".concat(Object(N.h)()),required:!0,fullWidth:!0})),n.a.createElement(h.Grid,{item:!0,xs:6},n.a.createElement(h.DateTimeField,{id:"completionTime",type:"time",fullWidth:!0})))))),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,alignment:"center"},n.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){t()},fullWidth:!0},"Cancel")),n.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,alignment:"center"},n.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Save")))))})))})),md=Object(s.b)((function(e){var t;return{loggedUser:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userName}}),(function(e){return{getCertificates:function(t){return e(function(e,t){return function(){var i=Object(l.a)(Yc().mark((function i(r){var n,a;return Yc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=new p.Wc({sessionParticipantId:e,filterBy:[],searchCriteria:[],sortBy:"fileName",page:1,pageSize:-1}),i.prev=1,i.next=4,q.R.getPortalSessionParticipantCertificates(void 0,t?p.Wc.fromJS({request:t,sessionParticipantId:e}):n);case 4:return a=i.sent,i.abrupt("return",a);case 8:throw i.prev=8,i.t0=i.catch(1),r(Object(M.b)(i.t0)),i.t0;case 12:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(e){return i.apply(this,arguments)}}()}(t))},uploadCertificates:function(t,i){return e(function(e,t){return function(){var i=Object(l.a)(Yc().mark((function i(r){var n,a;return Yc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=Array.from(t).map((function(e){return{fileName:e.name,data:e}})),i.prev=1,i.next=4,q.R.uploadCertificate(e,void 0,n);case 4:return a=i.sent,i.abrupt("return",a);case 8:throw i.prev=8,i.t0=i.catch(1),r(Object(M.b)(i.t0)),i.t0;case 12:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(e){return i.apply(this,arguments)}}()}(t,i))},deleteCertificates:function(t){return e((i=t,function(){var e=Object(l.a)(Yc().mark((function e(t){var r;return Yc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,q.R.deleteCertificate(void 0,p.pb.fromJS({sessionParticipantCertificateIdList:i}));case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),t(Object(M.b)(e.t0)),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()));var i},downloadCertificate:function(t){return e((i=t,function(e){return q.R.downloadCertificate(i,void 0).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(t){throw e(Object(M.b)(t)),t}))}));var i},downloadPLICertificate:function(t,i){return e(function(e,t){return function(i){return q.w.downloadPLICertificate(e,t,void 0).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))}}}))((function(e){var t,i=e.loggedUser,a=e.onClose,o=e.onSuccess,s=e.open,l=e.sessionParticipantId,d=e.deleteCertificates,u=e.downloadCertificate,v=e.getCertificates,f=e.uploadCertificates,m=e.downloadPLICertificate,y=Object(r.useState)(),g=Object(c.a)(y,2),b=g[0],S=g[1],E=Object(r.useState)(!1),I=Object(c.a)(E,2),O=I[0],C=I[1],x=Object(r.useState)([]),j=Object(c.a)(x,2),w=j[0],P=j[1],T=Object(r.useState)([]),A=Object(c.a)(T,2),k=A[0],D=A[1],L=Object(r.useRef)(null),J=Object(r.useCallback)((function(){v(l).then((function(e){S(e)}))}),[v,l]);Object(r.useEffect)((function(){S(void 0),J()}),[J]);var F=function(e,t,i){e&&(D([e]),"PLI"===t&&l&&i?m(l,i).then((function(){D([]),J()})):u(e).then((function(){D([]),J()})))},B=function(e){e&&(P([e]),d([e]).then((function(){P([]),o&&o(),J()})))},R=[{Header:"File Name",accessor:"fileName",Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body2"},n.a.createElement(h.Link,{style:{whiteSpace:"pre-wrap"},onClick:function(){return F(t.sessionParticipantCertificateId,t.integrationId,t.integrationSessionParticipantCertificateId)}},t.fileName))}},{Header:"File Type",accessor:"fileType",disableSortBy:!0},{Header:"Upload Date",accessor:"uploadedDate",Cell:function(e){var t=e.row.original;return Object(N.c)(t.uploadDate,"MM/DD/YYYY")}},{Header:"",accessor:"integrationId",disableSortBy:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Row,{mainAxisAlignment:"center"},n.a.createElement(h.Chip,{variant:"outlined",label:t.integrationId,size:"medium",colorMode:"light",color:"warning",width:"auto"}))}},{Header:"",accessor:"sessionParticipantCertificateId",disableSortBy:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Row,{mainAxisAlignment:"end"},n.a.createElement(h.IconButton,{onClick:function(){return F(t.sessionParticipantCertificateId,t.integrationId,t.integrationSessionParticipantCertificateId)}},k.includes(t.sessionParticipantCertificateId||0)?n.a.createElement(h.SystemIcon,{icon:"Loading",color:"info",spin:!0,type:"duotone",size:"sm"}):n.a.createElement(h.SystemIcon,{icon:"DataExport",color:"info",type:"duotone",size:"sm"})),((null===t||void 0===t?void 0:t.createdBy)===i&&(null===t||void 0===t?void 0:t.createdByUserType)===p.Re.Administrator||(null===t||void 0===t?void 0:t.createdByUserType)!==p.Re.Administrator)&&n.a.createElement(h.IconButton,{onClick:function(){return B(t.sessionParticipantCertificateId)},disabled:"PLI"===t.integrationId},w.includes(t.sessionParticipantCertificateId||0)?n.a.createElement(h.SystemIcon,{icon:"Loading",color:"info",spin:!0,type:"duotone",size:"sm"}):n.a.createElement(h.SystemIcon,{icon:"Delete",color:"PLI"===t.integrationId?"inherit":"info",type:"duotone",size:"sm"})))}}];return n.a.createElement(hn.a,{open:s,onClose:a,fullWidth:!0,maxWidth:"md"},n.a.createElement(un.DialogHeader,{titleBar:{title:"Certificates",onClose:a},colorMode:"light"}),n.a.createElement(un.DialogBody,{maxWidth:!1,bgColor:"white"},n.a.createElement(h.DataGrid,{id:"sessionParticipantCertificateId",advanced:!0,loading:void 0===b,data:null===b||void 0===b?void 0:b.certificates,columns:R,totalRecords:null!==(t=null===b||void 0===b?void 0:b.recordCount)&&void 0!==t?t:0,hideRowsPerPage:!0,pageSize:10})),n.a.createElement(un.DialogFooter,{bgColor:"white"},n.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(h.Grid,{item:!0,lg:2,md:3,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){a()}},"Close")),n.a.createElement(h.Grid,{item:!0,lg:2,md:3,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",loading:O,onClick:function(){(null===L||void 0===L?void 0:L.current).click()}},O?"Uploading":"Add"),n.a.createElement("input",{type:"file",ref:L,hidden:!0,onChange:function(e){var t;(t=e.target.files)&&null!==t&&(C(!0),f(l,t).then((function(){o&&o(),J()})).finally((function(){C(!1)})))},name:"files",multiple:!0,accept:"image/*, application/x-pdf, application/pdf"})))))})),yd=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses,isLoading:e.sessions.loading,session:e.sessions.selectedSession,userLicenseLimitations:e.licenses.userLicenseLimitations}}),(function(e){return{getLicenses:function(){return e(Object(Wc.a)())},updateParticipantsAndLicenses:function(t,i,r,n,a){return e(function(e,t,i,r,n){return function(a){var o={sessionParticipantIds:e,sessionId:t,userLicenseCreditValues:i,userLicenseProperties:r,isAdjusted:n};return q.R.updateParticipantAndLicense(void 0,p.De.fromJS(o)).then((function(e){return a(Object(M.a)({message:"Credits have been updated successfully.",variant:"success"})),e})).catch((function(e){a(Object(M.b)(e))}))}}(t,i,r,n,a))},confirmDialog:function(t){return e(Object($n.b)(t))}}}))((function(e){var t=e.firmLicenses,i=e.isLoading,a=e.open,o=e.participants,s=e.session,l=e.title,d=e.userLicenseLimitations,u=e.getLicenses,v=e.onSaveComplianceReport,f=e.onSuccess,m=e.onClose,y=e.updateParticipantsAndLicenses,g=e.confirmDialog,b=e.selectedParticipantUserLevel,S=s&&s.sessionId,I=s&&s.sessionLicenses&&s.sessionLicenses.map((function(e){return e.licenseId})),O=E(p.Kd.ManagePortalTeam),C=Object(r.useRef)(I);C.current=I;var x=function(e,t){return n.a.createElement(h.Row,{size:"max",crossAxisAlignment:"middle",mainAxisAlignment:"center"},n.a.createElement(h.Column,{mainAxisAlignment:"middle",size:"max",crossAxisAlignment:"center"},n.a.createElement(h.Expanded,{flex:0},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit"},e)),t))},j=Object(r.useState)(),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(Array()),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(r.useState)(!1),F=Object(c.a)(L,2),B=F[0],R=F[1],U=Object(r.useCallback)((function(e){var t=new Array;s&&s.sessionLicenses&&s.sessionLicenses.forEach((function(i){var r=[],n=[],a=new p.fe;if(1===o.length){var s,l,c=null===b||void 0===b||null===(s=b.userLicenseCreditValues)||void 0===s?void 0:s.filter((function(e){return e.licenseId===i.licenseId})),d=null===b||void 0===b||null===(l=b.userLicensePropertyValues)||void 0===l?void 0:l.filter((function(e){return e.licenseId===i.licenseId})),u=null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===i.licenseId})),h=null===u||void 0===u?void 0:u.licenseCredits;h&&h.forEach((function(e){var t=null===c||void 0===c?void 0:c.find((function(t){return t.creditId===e.creditId})),i=new p.ee;i.creditId=e.creditId,i.creditName=e.name,i.creditValue=t?t.value:0,r.push(i)})),o[0].isCreditAdjusted?d&&d.forEach((function(e){var t,r=null===u||void 0===u||null===(t=u.licenseProperties)||void 0===t?void 0:t.filter((function(t){return t.propertyId===e.propertyId}));r&&r.forEach((function(t){var r,a=null===(r=i.sessionLicenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId})),o=new p.ge;o.propertyId=t.propertyId,o.propertyLabel=null===a||void 0===a?void 0:a.propertyLabel,o.propertyValue=i.licenseId===me&&17===t.propertyId||(i.licenseId===de||i.licenseId===ye)&&9===t.propertyId||i.licenseId===ye&&14===t.propertyId?"".concat(e.valueInt):t.isForInstructorValidation&&i.licenseId!==ye&&i.licenseId!==me?"".concat(e.valueChar):"".concat(e.valueBit),n.push(o)}))})):n=i.sessionLicenseProperties}else{var v=null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===i.licenseId})),f=null===v||void 0===v?void 0:v.licenseCredits,m=new Array;f&&f.forEach((function(e){var t,r,n=null===(t=i.sessionLicenseCredits)||void 0===t||null===(r=t.find((function(t){return t.creditId===e.creditId})))||void 0===r?void 0:r.creditValue;m.push(new p.ee({creditId:e.creditId,creditName:e.name,creditValue:null!==n&&void 0!==n?n:0}))})),r=m,n=i.sessionLicenseProperties}a.licenseId=i&&i.licenseId,a.name=i.name,a.sessionLicenseCredits=r,a.sessionLicenseProperties=n,t.push(a)})),D(t),R(!0)}),[o,b,s]),G=Object(r.useCallback)((function(){var e=new Array;null===t||void 0===t?u().then((function(t){t?(e=t.filter((function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.includes(e.licenseId)})),T(e),e.length>0?U(e):R(!1)):R(!1)})):(e=t.filter((function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.includes(e.licenseId)})),T(e),e.length>0?U(e):R(!1))}),[t,U,u]);Object(r.useEffect)((function(){G()}),[G]);var q={initialValues:{licenseCreditsList:function(){var e={};return k&&(null===k||void 0===k?void 0:k.length)>0&&k.forEach((function(t){var i={};t&&t.sessionLicenseCredits&&t.sessionLicenseCredits.forEach((function(e){var r,n,a,o=null===k||void 0===k||null===(r=k.find((function(e){return e.licenseId===t.licenseId})))||void 0===r||null===(n=r.sessionLicenseCredits)||void 0===n||null===(a=n.find((function(t){return t.creditId===e.creditId})))||void 0===a?void 0:a.creditValue;o=void 0===o?0:parseFloat(o.toString()),i=Object(J.a)(Object(J.a)({},i),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId),o))})),e=Object(J.a)(Object(J.a)({},e),i)})),e}(),licensePropsList:function(){var e={};return P&&(null===P||void 0===P?void 0:P.length)>0&&P.forEach((function(t){var i,r,n={},a=Array(),o=Array(),s=Array(),l=Array(),c=null===(i=t.licenseProperties)||void 0===i?void 0:i.filter((function(e){return e.isUserLevelAdjustable&&!e.isForInstructorValidation}));c&&c.forEach((function(e){var i,r,l,c=null===k||void 0===k||null===(i=k.find((function(e){return e.licenseId===t.licenseId})))||void 0===i||null===(r=i.sessionLicenseProperties)||void 0===r||null===(l=r.find((function(t){return t.propertyId===e.propertyId})))||void 0===l?void 0:l.propertyValue;if(5!==e.typeId)void 0===c&&(c=""),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_").concat(e.propertyId),c));else if("true"===c){var d,u,h={id:null!==(d=e.propertyId)&&void 0!==d?d:0,name:t.licenseId===X?null===(u=e.label)||void 0===u?void 0:u.replace("Accounting",""):e.label};null!==e.licensePropertyGroupId?o.push(h):t.licenseId===X&&e.propertyId&&e.propertyId>2?s.push(h):a.push(h)}}));var d=null===(r=t.licenseProperties)||void 0===r?void 0:r.filter((function(e){return e.isUserLevelAdjustable&&e.isForInstructorValidation}));d&&d.forEach((function(e){var i,r,a,o=null===k||void 0===k||null===(i=k.find((function(e){return e.licenseId===t.licenseId})))||void 0===i||null===(r=i.sessionLicenseProperties)||void 0===r||null===(a=r.find((function(t){return t.propertyId===e.propertyId})))||void 0===a?void 0:a.propertyValue;if(5!==e.typeId)void 0===o&&(o=""),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_").concat(e.propertyId),o));else if("true"===o){var s,c={id:null!==(s=e.propertyId)&&void 0!==s?s:0,name:e.label};l.push(c)}})),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_checkbox_properties"),a)),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_grouped_properties"),o)),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_FOS_qualifiers"),s)),n=Object(J.a)(Object(J.a)({},n),{},Object(Sa.a)({},"".concat(S,"-").concat(t.licenseId,"_instructor_properties"),l)),e=Object(J.a)(Object(J.a)({},e),n)})),e}()},validationSchema:Object(yn.object)().shape({licenseCreditsList:Object(yn.object)().shape(function(){var e={};return P&&(null===P||void 0===P?void 0:P.length)>0&&P.forEach((function(t){t.licenseCredits&&t.licenseCredits.forEach((function(i){var r=Object(yn.number)().min(0,"Invalid input.").typeError("Invalid input.");e["".concat(S,"-").concat(t.licenseId,"_").concat(i.creditId)]=r}))})),e}()),licensePropsList:Object(yn.object)().shape(function(){var e={};return P&&(null===P||void 0===P?void 0:P.length)>0&&P.forEach((function(t){t.licenseProperties&&t.licenseProperties.forEach((function(i){if(i.isForInstructorValidation&&1===i.typeId){var r=Object(yn.number)().min(0,"Invalid input.").typeError("Invalid input.");e["".concat(S,"-").concat(t.licenseId,"_").concat(i.propertyId)]=r}}))})),e}())}),onSubmit:function(e){var t=e.licenseCreditsList,i=e.licensePropsList,r=new Array,n=new Array,a=!1,l=0,c=0,d=0,u=0;k.forEach((function(e){t&&Object.keys(t).forEach((function(i){var n=i.split("_")[0],a=parseInt(i.split("_")[1],10),o=t[i];n==="".concat(S,"-").concat(e.licenseId)&&void 0!==a&&null!==a&&(e.licenseId===de&&(l+=parseFloat(o)),r.push(new p.Me({sessionParticipantId:0,creditId:a,licenseId:e.licenseId,value:parseFloat(o)>0?parseFloat(o):0})))})),i&&Object.keys(i).forEach((function(t){var r=t.split("-")[1].split("_")[0];if(void 0!==t.split("_")[1])if("checkbox"!==t.split("_")[1]&&"grouped"!==t.split("_")[1]&&"FOS"!==t.split("_")[1]&&"instructor"!==t.split("_")[1]||r!=="".concat(e.licenseId)){var a=parseInt(t.split("_")[1],10),o=i[t],s=parseInt(r,10);r==="".concat(e.licenseId)&&null!==a&&""!==o&&"null"!==o&&(s===de&&(10===a?c=parseInt(o,10):11===a?d=parseInt(o,10):12===a&&(u=parseInt(o,10))),(s===ye||s===de)&&9===a||s===me&&17===a||s===ye&&14===a?null!==o&&n.push(new p.Ne({sessionParticipantId:0,licenseId:s,propertyId:a,valueInt:parseInt(o,10)})):n.push(new p.Ne({sessionParticipantId:0,licenseId:s,propertyId:a,valueChar:String(o)})))}else{i[t].forEach((function(e){n.push(new p.Ne({sessionParticipantId:0,licenseId:parseInt(r,10),propertyId:e.id,valueBit:!0}))}))}}))}));var h=0;if(c>0||d>0||u>0){var b=c+d,E=6*b;u>0&&(E=u),h=function(e){var t=e-Math.floor(e);return t=t>=.75?.75:t>=.5?.5:t>=.25?.25:0,t=Math.floor(e)+t}((b+E)/60),a=l!==h}var I=null===o||void 0===o?void 0:o.map((function(e){return e&&e.sessionParticipantId})),O=new Array;O.push.apply(O,n);var C=function(e){var t=new Array;return P&&(null===P||void 0===P?void 0:P.length)>0&&P.forEach((function(i){var r,n,a=null===(r=i.licenseProperties)||void 0===r?void 0:r.filter((function(e){return!e.isUserLevelAdjustable})),o=s&&s.sessionLicenses&&(null===(n=s.sessionLicenses.find((function(e){return e.licenseId===i.licenseId})))||void 0===n?void 0:n.sessionLicenseProperties);a&&(null===a||void 0===a?void 0:a.length)>0&&a.forEach((function(r){var n=null===o||void 0===o?void 0:o.find((function(e){return e.propertyId===r.propertyId}));if(n){var a=new p.Ne({sessionParticipantId:e,propertyId:n.propertyId,licenseId:i.licenseId});switch(r.typeId){case 1:a.valueChar=n.propertyValue;break;case 2:a.valueInt=parseInt("".concat(n.propertyValue),10);break;case 3:a.valueDate=fn()(n.propertyValue).isValid()?new Date("".concat(n.propertyValue)):void 0;break;case 4:a.valueDecimal=parseInt("".concat(n.propertyValue),10);break;case 5:a.valueBit="true"===n.propertyValue}a&&t.push(a)}}))})),t}(0);O.push.apply(O,Object(Oi.a)(C));var x=function(e,t){var i=!1,r=e.filter((function(t){return t.sessionParticipantId===e[0].sessionParticipantId})),n=t.filter((function(e){return e.sessionParticipantId===t[0].sessionParticipantId}));return s&&s.sessionLicenses&&s.sessionLicenses.forEach((function(e){var t,a=e.sessionLicenseCredits,o=null!==(t=e.sessionLicenseProperties&&e.sessionLicenseProperties.filter((function(e){return null!==e.propertyValue})))&&void 0!==t?t:[],s=r.filter((function(t){return t.licenseId===e.licenseId})),l=n.filter((function(t){return t.licenseId===e.licenseId}));o.length!==l.length?i=!0:(o&&o.forEach((function(t){var r=-1!==l.findIndex((function(e){return e.propertyId===t.propertyId}));(e.licenseId===me&&17===t.propertyId||(e.licenseId===ye||e.licenseId===de)&&9===t.propertyId)&&(r=-1!==l.findIndex((function(e){return e.propertyId===t.propertyId&&"".concat(e.valueInt)===t.propertyValue}))),r||(i=!0)})),!i&&a&&(a.length!==s.length?i=!0:a.forEach((function(e){var t=s.find((function(t){return t.creditId===e.creditId}));(null===t||void 0===t?void 0:t.value)!==e.creditValue&&(i=!0)}))))})),i}(r,O);a?g({message:"The minutes entered in the Teaching Category for Illinois Law calculate to ".concat(h," credits. This does not equal the total Illinois Law credits entered. Would you like to continue?"),title:"Confirm Update",OnConfirm:function(){y(I,S,r,O,x).then((function(){f&&f(),v&&v(),m()}))}}):y(I,S,r,O,x).then((function(){f&&f(),v&&v(),m()}))}};return n.a.createElement(h.SideDrawer,{colorMode:"dark",size:"lg",open:a,onClose:m},n.a.createElement(sn.SideDrawerHeader,{titleBar:{title:"Adjust Credits",subtitle:l}}),null===P||void 0===P?n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Box,null,n.a.createElement(h.Box,{pb:2},n.a.createElement(h.Skeleton,{height:35,width:"100%",variant:"rect",style:{borderRadius:"4px"}})),n.a.createElement(h.Box,{pb:2},n.a.createElement(h.Skeleton,{height:35,width:"100%",variant:"rect",style:{borderRadius:"4px"}})),n.a.createElement(h.Box,{pb:2},n.a.createElement(h.Skeleton,{height:35,width:"100%",variant:"rect",style:{borderRadius:"4px"}})))):n.a.createElement(n.a.Fragment,null,!B&&n.a.createElement(n.a.Fragment,null,n.a.createElement(sn.SideDrawerBody,{maxWidth:!1},n.a.createElement(h.Alert,{type:"info",variant:"standard"},"Session does not have any associated Licenses."))),B&&n.a.createElement(mn.Formik,{key:"creditAdjustmentForm",initialValues:q.initialValues,onSubmit:q.onSubmit,validationSchema:q.validationSchema,enableReinitialize:!0},(function(e){return n.a.createElement(h.Form,{formikContext:!0,id:"creditAdjustment",key:"creditAdjustmentForm"},n.a.createElement(sn.SideDrawerBody,{maxWidth:!1,bgColor:"white"},null===P||void 0===P?void 0:P.sort((function(e,t){if(void 0!==e.name&&void 0!==t.name){if(e.namet.name)return 1}return 0})).map((function(t){var r,a,l,c,u,v,p,f,m,y,g=null===(r=t.licenseProperties)||void 0===r?void 0:r.filter((function(e){return e.isUserLevelAdjustable&&!e.isForInstructorValidation&&e.isDisplayedInThirdPartyCourse})),b=new Array,E=new Array,I=new Array,C=0,j="";g&&(C=null!==(p=null===(f=g.find((function(e){return null!==e.licensePropertyGroupId})))||void 0===f?void 0:f.licensePropertyGroupId)&&void 0!==p?p:0,j=null!==(m=null===(y=g.find((function(e){return e.licensePropertyGroupId===C})))||void 0===y?void 0:y.licensePropertyGroupLabel)&&void 0!==m?m:"",C&&g.map((function(e){if(5===e.typeId&&e.licensePropertyGroupId===C){var t,i={id:null!==(t=e.propertyId)&&void 0!==t?t:0,name:e.label};return E.push(i),E}return null})),g.map((function(e){var i,r,n={id:null!==(i=e.propertyId)&&void 0!==i?i:0,name:t.licenseId===X?null===(r=e.label)||void 0===r?void 0:r.replace("Accounting",""):e.label};return 5!==e.typeId||null!==e.licensePropertyGroupId||t.licenseId===X&&e.propertyId&&e.propertyId>2?t.licenseId===X&&e.propertyId&&e.propertyId>2?(I.push(n),I):null:(b.push(n),b)})));var w=new Array,T=null===(a=t.licenseProperties)||void 0===a?void 0:a.filter((function(e){return e.isForInstructorValidation&&5===e.typeId}));T&&T.map((function(e){var t,i={id:null!==(t=e.propertyId)&&void 0!==t?t:0,name:e.label};return w.push(i),w}));var A,N,D=T&&T.length>0?T[0].licensePropertyGroupLabel:"",L=null!==(l=!O||d&&d.length>0&&!d.includes(null===t||void 0===t?void 0:t.licenseId))&&void 0!==l&&l;return n.a.createElement(h.Grid,{container:!0,spacing:"form",key:"".concat(t.licenseId,".license_information_form")},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Box,{mt:1},n.a.createElement(h.Card,{background:"grey",variant:"outlined"},n.a.createElement(h.CardHeader,{title:n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"h6"},t.name),t.licenseId===le&&n.a.createElement(h.Box,{ml:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"*Enter the total number of credits as either Regular or In-House/Self-Study.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"The portion of total credits that count towards the sub-requirement should be entered in the remaining credit categories.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"(Note: the same credits may count towards more than one sub-requirement.)")))),t.licenseId===ce&&n.a.createElement(h.Box,{ml:2},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"*Enter the total number of credits as General.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"The portion of General credits that count towards the sub-requirement should be entered in the remaining credit categories.")),n.a.createElement(h.Typography,{variant:"caption"},n.a.createElement("i",null,"(Note: the same credit may count towards more than one sub-requirement.)"))))),action:L?n.a.createElement(h.Typography,{variant:"body1",color:"textSecondary",colorMode:"light"},"Reset to Session Credits"):n.a.createElement(h.Link,{variant:"body1",color:"primary",onClick:function(){!function(t){var i=null===s||void 0===s?void 0:s.sessionLicenses,r={},n={};i&&(null===i||void 0===i?void 0:i.length)>0&&i.forEach((function(a){var o=null===P||void 0===P?void 0:P.find((function(e){return e.licenseId===a.licenseId}));if(o){var s,l,c,d={},u={},h=Array(),v=new Array,p=new Array,f=null!==(s=null===(l=a.sessionLicenseCredits)||void 0===l?void 0:l.map((function(e){return e.creditId})))&&void 0!==s?s:[];o.licenseCredits&&o.licenseCredits.forEach((function(i){var r=null;if(a.licenseId!==t.licenseId){var n="".concat(S,"-").concat(a.licenseId,"_").concat(i.creditId);r=e.values.licenseCreditsList[n]}else if(f.includes(i.creditId)){var o,s,l=null===(o=a.sessionLicenseCredits)||void 0===o?void 0:o.find((function(e){return e.creditId===i.creditId}));r=null!==(s=null===l||void 0===l?void 0:l.creditValue)&&void 0!==s?s:0}else r=0;d=Object(J.a)(Object(J.a)({},d),{},Object(Sa.a)({},"".concat(S,"-").concat(a.licenseId,"_").concat(i.creditId),r))})),r=Object(J.a)(Object(J.a)({},r),d);var m=null===(c=o.licenseProperties)||void 0===c?void 0:c.filter((function(e){return e.isUserLevelAdjustable}));if(m&&m.filter((function(e){return!e.isForInstructorValidation})).forEach((function(r){var n,o,s,l=null===i||void 0===i||null===(n=i.find((function(e){return e.licenseId===a.licenseId})))||void 0===n||null===(o=n.sessionLicenseProperties)||void 0===o||null===(s=o.find((function(e){return e.propertyId===r.propertyId})))||void 0===s?void 0:s.propertyValue;if(a.licenseId!==t.licenseId){var c=e.values.licensePropsList["".concat(S,"-").concat(a.licenseId,"_checkbox_properties")],d=e.values.licensePropsList["".concat(S,"-").concat(a.licenseId,"_grouped_properties")],u=e.values.licensePropsList["".concat(S,"-").concat(a.licenseId,"_FOS_qualifiers")];c.forEach((function(e){null!==r.licensePropertyGroupId||a.licenseId===X&&r.propertyId&&r.propertyId>2||-1===h.findIndex((function(t){return t.id===e.id}))&&h.push(e)})),d.forEach((function(e){null!==r.licensePropertyGroupId&&-1===v.findIndex((function(t){return t.id===e.id}))&&v.push(e)})),u.forEach((function(e){null===r.licensePropertyGroupId&&a.licenseId===X&&r.propertyId&&r.propertyId>2&&-1===p.findIndex((function(t){return t.id===e.id}))&&p.push(e)}))}else if("true"===l){var f,m,y={id:null!==(f=r.propertyId)&&void 0!==f?f:0,name:a.licenseId===X?null===(m=r.label)||void 0===m?void 0:m.replace("Accounting",""):r.label};null!==r.licensePropertyGroupId?v.push(y):a.licenseId===X&&r.propertyId&&r.propertyId>2?p.push(y):h.push(y)}})),u=Object(J.a)(Object(J.a)({},u),{},Object(Sa.a)({},"".concat(S,"-").concat(a.licenseId,"_checkbox_properties"),h)),u=Object(J.a)(Object(J.a)({},u),{},Object(Sa.a)({},"".concat(S,"-").concat(a.licenseId,"_grouped_properties"),v)),u=Object(J.a)(Object(J.a)({},u),{},Object(Sa.a)({},"".concat(S,"-").concat(a.licenseId,"_FOS_qualifiers"),p)),a.licenseId===de||a.licenseId===ye||a.licenseId===me){var y,g,b,E,I,O=a.licenseId===me?17:9,C=null!==(y=null===i||void 0===i||null===(g=i.find((function(e){return e.licenseId===a.licenseId})))||void 0===g||null===(b=g.sessionLicenseProperties)||void 0===b||null===(E=b.find((function(e){return e.propertyId===O})))||void 0===E?void 0:E.propertyValue)&&void 0!==y?y:null,x=null!==(I=e.values.licensePropsList["".concat(S,"-").concat(a.licenseId,"_").concat(a.licenseId===me?17:9)])&&void 0!==I?I:null;u=Object(J.a)(Object(J.a)({},u),{},Object(Sa.a)({},"".concat(S,"-").concat(a.licenseId,"_").concat(O),a.licenseId===t.licenseId?C:x))}n=Object(J.a)(Object(J.a)({},n),u)}})),e.setValues({licenseCreditsList:r,licensePropsList:n})}(t)}},"Reset to Session Credits")}),n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},x("Credits")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},(null===t||void 0===t?void 0:t.licenseCredits)&&(null===t||void 0===t||null===(c=t.licenseCredits)||void 0===c?void 0:c.map((function(e){var r,a,o,s=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}(null!==(r=e.name)&&void 0!==r?r:""),l=null!==(a=null===(o=k.filter((function(e){return e.licenseId===t.licenseId}))[0].sessionLicenseCredits)||void 0===o?void 0:o.filter((function(t){return t.creditId===e.creditId}))[0].creditValue)&&void 0!==a?a:0;return e.isArchived?e.isArchived&&l>0?n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,key:"licenseCreditsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId)},n.a.createElement(h.Row,null,n.a.createElement(h.TextField,{fullWidth:!0,id:"licenseCreditsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId),label:s,type:"text",formikContext:!0,loading:i,maxLabelLength:20,disabled:L}),n.a.createElement(h.Box,{mb:2,ml:.5},n.a.createElement(h.Tooltip,{title:"This credit type has been archived.",placement:"top",style:{maxWidth:10}},n.a.createElement("span",null,"\xa0",n.a.createElement(h.SystemIcon,{icon:"Help"})))))):n.a.createElement(n.a.Fragment,null):n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,key:"licenseCreditsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId)},n.a.createElement(h.TextField,{fullWidth:!0,id:"licenseCreditsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId),label:s,type:"text",formikContext:!0,loading:i,maxLabelLength:20,disabled:L}))}))))),(b&&b.length>0||E&&E.length>0)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},x("Properties")),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},b&&b.length>0&&n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_select_properties"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_checkbox_properties"),label:"Qualifiers",fullWidth:!0,multiple:!0,options:b||[],formikContext:!0,loading:i,disabled:L})),E&&E.length>0&&n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_grouped_properties"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_grouped_properties"),label:j,fullWidth:!0,multiple:!0,options:E||[],formikContext:!0,loading:i,disabled:L})),I&&I.length>0&&n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_FOS_qualifiers"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_FOS_qualifiers"),label:"Jurisdictional Qualifiers",fullWidth:!0,multiple:!0,options:I||[],formikContext:!0,loading:i,disabled:L})),t.licenseId===ye&&n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_",14,"_",2),stretchContent:!0},n.a.createElement(h.SelectField,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_",14),label:"Participation Method",fullWidth:!0,formikContext:!0,loading:i,maxLabelLength:20,disabled:L},n.a.createElement(h.MenuItem,{key:0,value:""}),(A=null!==(u=t.licenseId)&&void 0!==u?u:0,N=14,A===ye&&14===N?[{label:"Group Participation",value:1},{label:"Self-Study",value:2}]:[]).map((function(e){return n.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)}))))))),o.find((function(e){return e.isInstructor}))&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0}),n.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},n.a.createElement(h.Grid,{container:!0,spacing:1},null===(v=t.licenseProperties)||void 0===v?void 0:v.filter((function(e){return e.isUserLevelAdjustable&&e.isForInstructorValidation})).map((function(e){return 1===e.typeId?n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,alignment:"top-left",key:"".concat(t.licenseId,"_").concat(e.propertyId,"_").concat(e.typeId),stretchContent:!0},n.a.createElement(h.TextField,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.propertyId),label:e.label,type:"text",fullWidth:!0,formikContext:!0,loading:i,disabled:L})):n.a.createElement(n.a.Fragment,null)})),w&&w.length>0&&n.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_instructor_properties"),stretchContent:!0},n.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_instructor_properties"),label:D,fullWidth:!0,multiple:!0,options:w||[],formikContext:!0,loading:i,disabled:L})))))))))))}))),n.a.createElement(sn.SideDrawerFooter,{key:"EditDrawerFooter"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:3}),n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"center-right",stretchContent:!0},n.a.createElement(h.Button,{color:"default",type:"reset",onClick:function(){m()},variant:"outlined"},"Cancel")),n.a.createElement(h.Grid,{item:!0,xs:3,alignment:"center-left",stretchContent:!0},n.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",disabled:!O},"Save")),n.a.createElement(h.Grid,{item:!0,xs:3}))))}))))}));function gd(){gd=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var bd=function(e){var t=e.onConfirmation,i=e.onClose,a=e.open,o=Object(r.useState)(!1),s=Object(c.a)(o,2),d=s[0],u=s[1],v=function(){var e=Object(l.a)(gd().mark((function e(){return gd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!0),e.t0=t,!e.t0){e.next=5;break}return e.next=5,t();case 5:u(!1),i();case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n.a.createElement(hn.a,{open:a,onClose:i,maxWidth:"xs",fullWidth:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:"Download Certificates",onClose:i}}),n.a.createElement(un.DialogBody,{maxWidth:!1},n.a.createElement(h.Backdrop,{open:d},n.a.createElement(h.CircularProgress,{color:"secondary"})),n.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},n.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},n.a.createElement(h.Typography,{variant:"subtitle2",weight:"regular"},"This action will download all certificates for the third-party courses in your filtered display. Do you want to continue?")))),n.a.createElement(un.DialogFooter,null,n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},n.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){i()},fullWidth:!0},"No")),n.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},n.a.createElement(h.Button,{disabled:d,color:"primary",variant:"contained",type:"submit",fullWidth:!0,onClick:function(){return v()}},"Yes")))))},Sd=function(e){var t,i,a=e.year,o=e.columns,s=e.records,l=e.summaryRecords,d=Object(r.useState)(10),u=Object(c.a)(d,2),v=u[0],p=u[1],f=Object(r.useState)(),m=Object(c.a)(f,2),y=m[0],g=m[1],b=Object(r.useState)(!1),S=Object(c.a)(b,2),E=S[0],I=S[1];Object(r.useEffect)((function(){var e=j.a.take(s,v);p(v),g(e)}),[s,v,p]);return n.a.createElement(h.Widget,null,n.a.createElement(h.ExpandableCard,{onCardExpand:function(){var e=j.a.take(s,10);p(10),g(e)},expanded:a===fn()().year(),variant:"none",summary:n.a.createElement(A.a,{title:n.a.createElement(h.Typography,{variant:"h6"},a)}),details:n.a.createElement(P.a,{dense:!0},n.a.createElement(h.DataGrid,{advanced:!0,loading:E,columns:o,data:y,hideRowCountDisplay:!0,hideRowsPerPage:!0,onSortBy:function(e,t){I(!0),g(j.a.orderBy(y,[e],[t?"asc":"desc"])),I(!1)},pageSize:l.recordCount}),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(h.Box,{mt:2},v<(null!==(t=null===s||void 0===s?void 0:s.length)&&void 0!==t?t:0)?n.a.createElement(h.Button,{color:"primary",variant:"outlined",size:"small",onClick:function(){p(v+10)}},"Show More"):n.a.createElement(n.a.Fragment,null,(null!==(i=null===s||void 0===s?void 0:s.length)&&void 0!==i?i:0)<=10?n.a.createElement(n.a.Fragment,null):n.a.createElement(h.Button,{color:"primary",variant:"outlined",size:"small",onClick:function(){p(10)}},"Show Less")))))}))},Ed=Object(s.b)((function(e){var t;return{userId:null===(t=e.users.loggedUser)||void 0===t?void 0:t.userId,loggedUser:e.users.loggedUser,reportTokens:e.reports.reportTokens}}),(function(e){return{addNotification:function(t){return e(Object(M.a)(t))},deleteParticipant:function(t,i){return e(function(e,t){return function(i){var r=new p.xb({sessionId:t,sessionParticipantIdList:e,sendEmailConfirmation:!0});return q.R.delete(void 0,r).then((function(e){return i(Object(M.a)({message:"Session participant successfully deleted.",variant:"success"})),e})).catch((function(e){i(Object(M.b)(e))}))}}(t,i))},downloadFile:function(t){return e((i=t,function(e){var t=ji(i);q.D.downloadFile(void 0,new p.Hb({file:t})).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");return i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove(),Promise.resolve()})).catch((function(t){throw e(Object(M.b)(t)),t}))}));var i},downloadMultipleCertificates:function(t){return e(Object(Js.a)(t))},getTranscripts:function(t){return e(function(e){return function(t){return q.ab.getAllPortalUserCompletedTranscriptSummary(void 0,p.kc.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(M.b)(e))}))}}(t))},getScreenDescription:function(t){return e(Object(Vr.c)(t))},getSessionDetails:function(t){return e(function(e){return function(t){return t(Li(null)),t(Pi(!0)),q.S.get(e,void 0).then((function(e){return t(Li(e)),t(Pi(!1)),e})).catch((function(){t(Li()),t(Pi(!1))}))}}(t))},getSessionParticipantAdjustedCredits:function(t){return e(function(e){return function(t){return q.R.getSessionParticipantAdjustedCredit(void 0,new p.fd({sessionParticipantId:e})).then((function(e){return e})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},showConfirmation:function(t){return e(Object($n.b)(t))},exportUserTranscripts:function(t,i){return e(function(e,t){return function(i){return("csv"===t?q.ab.exportUserTranscriptCsv(void 0,p.kc.fromJS(e)):q.ab.exportUserTranscriptExcel(void 0,p.kc.fromJS(e))).then((function(e){var i=window.URL.createObjectURL(new Blob([e.data])),r=document.createElement("a");r.href=i,r.setAttribute("download",e.fileName||"userTranscripts.".concat(t)),document.body.appendChild(r),r.click(),r.remove()})).catch((function(e){i(Object(M.b)(e))}))}}(t,i))},setReport:function(t){return e(Object(jn.h)(t))},getReportId:function(t){return e(Object(jn.e)(t))},getReportFilters:function(t){return e(Object(jn.f)(t))},exportReport:function(t,i,r){return e(Object(jn.b)(t,i,r))}}}))(Object($a.a)((function(e){var t,i,a,o,l,d,u,v=e.addNotification,f=e.deleteParticipant,m=e.downloadFile,y=e.downloadMultipleCertificates,g=e.getScreenDescription,b=e.getSessionDetails,S=e.getSessionParticipantAdjustedCredits,I=e.getTranscripts,O=e.location,C=e.loggedUser,j=e.userId,w=e.showConfirmation,T=e.exportUserTranscripts,N=e.getReportId,k=e.getReportFilters,D=e.exportReport,F=e.reportTokens,B=e.setReport,R=Object(V.useTheme)(),U=Object(V.useMediaQuery)(R.breakpoints.down("xs")),G=null!==(t=cd.a.parse(O.search)["?licenseId"])&&void 0!==t?t:0,q=C&&C.userRole,M=Object(r.useState)(),z=Object(c.a)(M,2),W=z[0],_=z[1],Y=Object(r.useState)(!1),$=Object(c.a)(Y,2),H=$[0],K=$[1],Q=Object(r.useState)(!1),Z=Object(c.a)(Q,2),ee=Z[0],te=Z[1],ie=E(p.Kd.ManagePortalTeam),re=Object(s.c)((function(e){return e.users.authenticatedUser})),ne=(null!==(i=re&&re.userRole&&re.userRole[0].subRoleId)&&void 0!==i?i:0)===p.re.AdministrativeAssistant,ae={userId:j,page:1,pageSize:-1,filterBy:[],searchCriteria:[+G>0?"License: ".concat(G):"Type: 0"]},oe=Object(r.useState)(Object(J.a)({},ae)),se=Object(c.a)(oe,2),le=se[0],ce=se[1];Object(r.useEffect)((function(){j!==le.userId&&ce(Object(J.a)(Object(J.a)({},le),{},{userId:j,page:1,pageSize:-1,filterBy:[],searchCriteria:[+G>0?"License: ".concat(G):"Type: 0"]}))}),[le,j,G]);var de=Object(r.useState)(!1),ue=Object(c.a)(de,2),he=ue[0],ve=ue[1],pe=Object(r.useState)(),fe=Object(c.a)(pe,2),me=fe[0],ye=fe[1],ge=Object(r.useState)(),be=Object(c.a)(ge,2),Se=be[0],Ee=be[1],Ie=Object(r.useState)({open:!1,sessionParticipantId:0}),Oe=Object(c.a)(Ie,2),Ce=Oe[0],xe=Oe[1],je=Object(r.useState)(!1),we=Object(c.a)(je,2),Pe=we[0],Te=we[1],Ae=Object(r.useState)(void 0),Ne=Object(c.a)(Ae,2),ke=Ne[0],De=Ne[1],Le=Object(r.useState)({open:!1,userId:0,sessionDetails:[],records:[],forBulkPrint:!1}),Je=Object(c.a)(Le,2),Fe=Je[0],Be=Je[1],Re=Object(r.useState)(!1),Ue=Object(c.a)(Re,2),Ge=Ue[0],qe=Ue[1],Me=Object(r.useState)(),ze=Object(c.a)(Me,2),We=ze[0],Ve=ze[1],_e=Object(r.useState)(),Ye=Object(c.a)(_e,2),$e=Ye[0],He=Ye[1],Ke=Object(r.useState)(""),Qe=Object(c.a)(Ke,2),Ze=Qe[0],Xe=Qe[1],et=Object(r.useState)(!1),tt=Object(c.a)(et,2),it=tt[0],rt=tt[1],nt=Object(r.useState)(),at=Object(c.a)(nt,2),ot=at[0],st=at[1],lt=Array();Object(r.useEffect)((function(){ye(void 0),Ee(void 0),ve(!0),I(le).then((function(e){void 0!==e&&(ye(e),Ee(e.userTranscripts)),ve(!1)}))}),[I,le]),Object(r.useEffect)((function(){g(p.Md.Transcripts).then((function(e){return _(e)}))}),[g,_,q]);var ct=function(e){var t;if("TypeAndLicense"===e){var i,r,n=null===le||void 0===le||null===(i=le.searchCriteria)||void 0===i?void 0:i.find((function(e){return e.includes("Type")})),a=null===n||void 0===n?void 0:n.substring(n.indexOf(":")+2),o=null===le||void 0===le||null===(r=le.searchCriteria)||void 0===r?void 0:r.find((function(e){return e.includes("License")})),s=null===o||void 0===o?void 0:o.substring(o.indexOf(":")+2);return null!==a&&void 0!==a?a:s}var l=null===le||void 0===le||null===(t=le.searchCriteria)||void 0===t?void 0:t.find((function(t){return t.includes("".concat(e))})),c=null===l||void 0===l?void 0:l.substring(l.indexOf(":")+1);return null===c||void 0===c?void 0:c.trim()},dt=Object(r.useCallback)((function(e){var t,i,r,n=null===e||void 0===e?void 0:e.certificateDisplayStatusId,a=null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,o=null!==(i=null===e||void 0===e?void 0:e.sessionParticipantId)&&void 0!==i?i:0;if((null===C||void 0===C||null===(r=C.userLicense)||void 0===r?void 0:r.map((function(e){return e.licenseId}))).push(X),n!==p.u.Upload&&n!==p.u.Certificate||xe({open:!0,sessionParticipantId:o}),n===p.u.Print){var s,l=p.me.fromJS({sessionId:a,isInstructor:null!==(s=null===e||void 0===e?void 0:e.isInstructor)&&void 0!==s&&s});Be({open:!0,userId:null!==j&&void 0!==j?j:0,forBulkPrint:!1,sessionDetails:[l],records:[e]})}}),[C,j]),ut=function(){var e=Array(),t=Array();null===Se||void 0===Se||Se.map((function(i){var r,n=i.certificateDisplayStatusId;0!==(null===i||void 0===i?void 0:i.sessionParticipantId)&&n===p.u.Print&&(t.push(i),e.push(null!==(r=i.sessionParticipantId)&&void 0!==r?r:0))})),0===e.length?v({message:"No records selected.",variant:"warning"}):function(e){var t;(null===C||void 0===C||null===(t=C.userLicense)||void 0===t?void 0:t.map((function(e){return e.licenseId}))).push(X);var i=Array(),r=0;e&&e.forEach((function(e){var t,n,a;r=null!==(t=e.userId)&&void 0!==t?t:0,i.push(p.me.fromJS({sessionId:null!==(n=e.sessionId)&&void 0!==n?n:0,isInstructor:null!==(a=e.isInstructor)&&void 0!==a&&a}))})),Be({open:!0,userId:r,sessionDetails:null!==i&&void 0!==i?i:[],records:e,forBulkPrint:!0})}(t)},ht=function(){var e=Array(),t=Array();if(null===Se||void 0===Se||Se.map((function(i){var r,n=i.certificateDisplayStatusId;0!==(null===i||void 0===i?void 0:i.sessionParticipantId)&&n===p.u.Certificate&&(t.push(i),e.push(null!==(r=i.sessionParticipantId)&&void 0!==r?r:0))})),0===e.length)v({message:"No records selected.",variant:"warning"});else{var i=Array(),r=0;t&&t.forEach((function(e){var t,n;r=null!==(t=e.userId)&&void 0!==t?t:0,i.push(null!==(n=e.sessionParticipantId)&&void 0!==n?n:0)})),st({sessionParticipantDetails:i,userId:r}),rt(!0)}},vt=Object(r.useCallback)((function(){ce(Object(J.a)(Object(J.a)({},le),{},{page:1,pageSize:-1}))}),[le]),pt=Object(r.useState)({open:!1,sessionId:0,completionDate:void 0,participantId:0}),ft=Object(c.a)(pt,2),mt=ft[0],yt=ft[1],gt=Object(r.useCallback)((function(e,t){b(t).then((function(i){var r,n=null===i||void 0===i||null===(r=i.sessionParticipant)||void 0===r?void 0:r.find((function(i){return i.sessionId===t&&i.sessionParticipantId===e}));He(n),S(e).then((function(e){Ve(e),qe(!0)}))}))}),[b,S]),bt=Object(r.useCallback)((function(e,t){w({message:"Are you sure you want to delete the selected participant?",title:"Confirm Delete Action",warning:"License credits and properties associated to the participant will be deleted.",OnConfirm:function(){f([e],t).then((function(){vt()}))}})}),[f,vt,w]),St=Object(r.useState)(!1),Et=Object(c.a)(St,2),It=Et[0],Ot=Et[1],Ct=Object(r.useState)({name:"",userId:0}),xt=Object(c.a)(Ct,2),jt=xt[0],wt=xt[1],Pt=null!==(a="".concat(null===C||void 0===C?void 0:C.firstName," ").concat(null!==(o=null===C||void 0===C?void 0:C.middleName)&&void 0!==o?o:""," ").concat(null===C||void 0===C?void 0:C.lastName))&&void 0!==a?a:"",Tt=function(e,t){wt({name:e,userId:t}),Ot(!0)},At=(null===le||void 0===le?void 0:le.searchCriteria)&&"Type: 0"!==(null===le||void 0===le?void 0:le.searchCriteria[0]),Nt=Object(r.useState)(0),kt=Object(c.a)(Nt,2),Dt=kt[0],Lt=kt[1],Jt=function(e){if("pdf"!==e)return T(Object(J.a)(Object(J.a)({},le),{},{pageSize:-1}),e);N("Transcript Report").then((function(e){e&&(B({name:e.name}),k(e.id).then((function(t){var i=Object(zr.v4)(),r=[];return t.forEach((function(e){var t,i,n,a,o,s,l,c="";switch(e.sourceFieldName){case"@filter_employeename":c="".concat(null===C||void 0===C?void 0:C.firstName," ").concat(null===C||void 0===C?void 0:C.lastName);break;case"@filter_employee":c="".concat(null===C||void 0===C?void 0:C.userId);break;case"@filter_optiontype":var d=null===le||void 0===le||null===(t=le.searchCriteria)||void 0===t?void 0:t.find((function(e){return e.includes("Type")})),u=null===le||void 0===le||null===(i=le.searchCriteria)||void 0===i?void 0:i.find((function(e){return e.includes("License")}));if(d&&void 0===u)switch("".concat(d.split(": ")[1])){case"0":c="1";break;case"-1":c="2";break;case"-2":c="3";break;default:c=""}else c="0";break;case"@filter_license":var h=null===le||void 0===le||null===(n=le.searchCriteria)||void 0===n?void 0:n.find((function(e){return e.includes("License")}));c="".concat(h?h.split(": ")[1]:"");break;case"@filter_datefrom":var v=null===le||void 0===le||null===(a=le.searchCriteria)||void 0===a?void 0:a.find((function(e){return e.includes("StartDate")}));c="".concat(v?v.split(": ")[1]:"");break;case"@filter_dateto":var p=null===le||void 0===le||null===(o=le.searchCriteria)||void 0===o?void 0:o.find((function(e){return e.includes("EndDate")}));c="".concat(p?p.split(": ")[1]:"")}r.push({key:e.id,value:c,sourceFieldName:null!==(s=e.sourceFieldName)&&void 0!==s?s:"",name:null!==(l=e.alias)&&void 0!==l?l:""})})),D({reportId:e.id,filters:r,token:null===F||void 0===F?void 0:F.token,tenantId:null===F||void 0===F?void 0:F.tenantId,fileSessionKey:i},"pdf","".concat(null===C||void 0===C?void 0:C.firstName," ").concat(null===C||void 0===C?void 0:C.lastName," Transcript Report"))})))}))},Ft=Object(r.useCallback)((function(){var e=[{Header:"Completed",accessor:"completionDate",width:100,wrapText:!0,showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(h.Typography,{variant:"body1"},Object(Zt.e)(t.completionDate),t.shouldDisplayDateRange&&t.endDate&&Object(Zt.e)(t.endDate)!==Object(Zt.e)(t.startDate)&&" - ".concat(Object(Zt.e)(t.endDate)||""))}},{width:15,accessor:"formatId",showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original;return n.a.createElement(n.a.Fragment,null,0!==(null===r||void 0===r?void 0:r.formatId)?n.a.createElement(h.Tooltip,{title:null!==(t="Webcast"===r.formatPortalCategory?"Webinar":r.formatPortalCategory)&&void 0!==t?t:"",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(kn,{format:null!==(i=r.formatPortalCategory)&&void 0!==i?i:"",type:"duotone",color:"inherit",size:"sm"}))):n.a.createElement(h.SystemIcon,{icon:"Activities",type:"duotone",size:"sm"}))},disableSortBy:!0},{Header:"Course / Activity",width:350,wrapText:!0,accessor:"title",showOnMobile:!0,Cell:function(e){var t=e.row.original,i=0===t.activityId&&(null===t||void 0===t?void 0:t.title)!==(null===t||void 0===t?void 0:t.sessionTitle);return n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,null,n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"body1"},"".concat(null===t||void 0===t?void 0:t.title).concat(i?" : ":"")),i&&n.a.createElement(h.Typography,{variant:"body1"},null===t||void 0===t?void 0:t.sessionTitle),n.a.createElement(h.Typography,{variant:"body1"},null===t||void 0===t?void 0:t.providerName),n.a.createElement(h.Row,{crossAxisAlignment:"middle"},0!==(null===t||void 0===t?void 0:t.sessionId)&&n.a.createElement(n.a.Fragment,null,0!==(null===t||void 0===t?void 0:t.locationId)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{style:{marginBottom:"2px",marginRight:"8px",textAlign:"center",width:"20px"}},n.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),n.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},null===t||void 0===t?void 0:t.location)),!0===(null===t||void 0===t?void 0:t.isInstructor)&&n.a.createElement(n.a.Fragment,null,0!==(null===t||void 0===t?void 0:t.locationId)&&n.a.createElement("div",{style:{marginLeft:"16px",marginRight:"16px"}},"|"),n.a.createElement(h.Tooltip,{title:"Instructed",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"duotone",size:"xs"})))))))))}},{Header:"Credits",width:250,wrapText:!0,showOnMobile:!0,Cell:function(e){var t,i,r,a=e.row.original,o=a.userLicenseCreditValues,s=a.userLicensePropertyValues,l=a.completionDate,c=a.sessionLicenses,d=Array();Number(Dt)<=0?d=null!==o&&void 0!==o?o:[]:(d=null!==(i=null===o||void 0===o?void 0:o.filter((function(e){return e.licenseId===Number(Dt)})))&&void 0!==i?i:[],Object(x.isEmpty)(d)&&(d=null!==(r=null===o||void 0===o?void 0:o.filter((function(e){return e.licenseId===X})))&&void 0!==r?r:[]));return n.a.createElement(n.a.Fragment,null,0!==(null===o||void 0===o?void 0:o.length)&&n.a.createElement(h.Typography,{variant:"body1"},function(e,t,i,r){if(e){var a=Object(x.uniq)(e.map((function(e){return e.licenseId})));return null===a||void 0===a?void 0:a.map((function(a){var o,s,l,c=e.filter((function(e){return e.licenseId===a})),d=c[0].licenseFullName,u=c[0].licenseStatus,v=c&&c[0].expirationDate,f=i.find((function(e){return e.licenseId===a&&"Reciprocal"===e.propertyLabel&&!0===e.valueBit})),m=r.length&&(null===r||void 0===r||null===(o=r.find((function(e){return e.licenseId===a})))||void 0===o||null===(s=o.sessionLicenseProperties)||void 0===s?void 0:s.find((function(e){return"Approval Code"===e.propertyLabel}))),y=m&&!Object(x.isEmpty)(m.propertyValue)?"".concat(m.propertyLabel,": ").concat(m.propertyValue):"",g=null===(l=c.filter((function(e){var t;return(null!==(t=e.value)&&void 0!==t?t:0)>0})))||void 0===l?void 0:l.map((function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Typography,{variant:"body1"},e.value," ",e.creditName))}));return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{style:{display:"flex",flexDirection:"row"}},n.a.createElement(h.Typography,null,d),f&&n.a.createElement(h.Typography,{variant:"caption",color:"default",component:"span"},n.a.createElement("i",null," (Reciprocal)")),u===p.Dd.Denied&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},n.a.createElement("i",null," (Denied)")),u===p.Dd.Pending&&n.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},n.a.createElement("i",null," (Pending)"))),n.a.createElement("div",{style:{marginLeft:"32px"}},v&&null!==v&&Object(Zt.f)(v)<=Object(Zt.f)(t)||Object(x.isEmpty)(g)?"[No Credits]":g,!Object(x.isEmpty)(y)&&n.a.createElement(h.Typography,{variant:"body1"},y)))}))}}(null!==(t=d)&&void 0!==t?t:[],null!==l&&void 0!==l?l:new Date,null!==s&&void 0!==s?s:[],null!==c&&void 0!==c?c:[])))}},{Header:"Materials",width:150,wrapText:!0,showOnMobile:!0,Cell:function(e){var t=e.row.original,i=null===t||void 0===t?void 0:t.sessionMaterials;return n.a.createElement(n.a.Fragment,null,0!==(null===i||void 0===i?void 0:i.length)&&n.a.createElement(h.Column,{flex:1},i&&i.map((function(e){var t,i,r;return n.a.createElement(h.Row,{flex:1,key:"".concat(e.fileId,"_mtrl")},n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement(Qn,{fileExtension:null!==(t=null===(i=e.libraryFile)||void 0===i?void 0:i.extension)&&void 0!==t?t:"",color:"primary",type:"duotone",size:"sm"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.Link,{style:{whiteSpace:"pre-wrap"},onClick:function(){var t;return m("".concat((null===(t=e.libraryFile)||void 0===t?void 0:t.fileId)||0))}},null===(r=e.libraryFile)||void 0===r?void 0:r.title)))}))))}},{Header:"Certificate",width:90,accessor:"certificateDisplayStatusId",showOnMobile:!0,Cell:function(e){var t=e.row.original,i=t.certificateDisplayStatusId;return n.a.createElement(n.a.Fragment,null,i!==p.u.NotApplicable?n.a.createElement(h.Tooltip,{title:i===p.u.Upload?"Upload Certificate":"View Certificate",placement:"bottom"},n.a.createElement("span",null,n.a.createElement(h.IconButton,{onClick:function(){return dt(t)}},n.a.createElement(dd,{status:i,color:i===p.u.Upload?"secondary":"primary",type:"duotone",size:"md"})))):n.a.createElement(h.Typography,{variant:"body1",color:void 0},"-"))},align:"center"},{Header:"Evaluations",width:100,accessor:"evaluationDisplayStatusId",showOnMobile:!0,Cell:function(e){var t=e.row.original;return n.a.createElement(n.a.Fragment,null,(null===t||void 0===t?void 0:t.evaluationDisplayStatusId)===p.Lb.NotApplicable?n.a.createElement(n.a.Fragment,null):n.a.createElement(h.Button,{size:"small",variant:"text",color:"primary",onClick:function(){var e,i;(i=null===(e=t.evaluation)||void 0===e?void 0:e.sessionEvaluationId)&&i>0&&(De(i),Te(!0))}},(null===t||void 0===t?void 0:t.evaluationDisplayStatusId)===p.Lb.ViewEvaluation?"View Evaluation":"Evaluate"))}},{Header:"",width:50,accessor:"transcriptId",showOnMobile:!0,Cell:function(e){var t,i,r,a,o,s=e.row.original,l=void 0!==(null===s||void 0===s?void 0:s.cancelledDate),c=null!==(t=null===s||void 0===s?void 0:s.withRetro)&&void 0!==t&&t,d=null!==(i=null===s||void 0===s?void 0:s.isIndividualSessionDateAllowed)&&void 0!==i&&i,u=null===s||void 0===s?void 0:s.sessionParticipantStatusId,v=null!==(r=null===s||void 0===s?void 0:s.sessionParticipantId)&&void 0!==r?r:0,f=null!==(a=null===s||void 0===s?void 0:s.sessionId)&&void 0!==a?a:0,m=null!==(o=s.completionDate)&&void 0!==o?o:void 0;return n.a.createElement(n.a.Fragment,null,ie&&!(null===s||void 0===s?void 0:s.isInHouse)&&(null===re||void 0===re?void 0:re.userName)===(null===s||void 0===s?void 0:s.createdby)?n.a.createElement(Ea,{menu:[{label:"Adjust Credits",disable:p.ke.Validated!==u||l||c,icon:n.a.createElement(h.SystemIcon,{icon:"AdjustedCredits"}),onClick:function(){Xe(null===s||void 0===s?void 0:s.title),gt(v,f)},disabledTooltip:c&&"You cannot edit this record because credits are being applied retroactively. You must first remove the retroactive credits before you can edit this record."},{label:"Update Completion Date",icon:n.a.createElement(h.SystemIcon,{icon:"Calendar"}),disable:!(p.ke.Validated===u||p.ke.Failed===u)||!d||l||c,onClick:function(){!function(e,t,i){yt({open:!0,sessionId:i,completionDate:t,participantId:e})}(v,m,f)},disabledTooltip:c&&"You cannot edit this record because credits are being applied retroactively. You must first remove the retroactive credits before you can edit this record."},{label:"Delete Participation",icon:n.a.createElement(h.SystemIcon,{icon:"Delete"}),disable:l||c,onClick:function(){bt(v,f)},disabledTooltip:c&&"You cannot edit this record because credits are being applied retroactively. You must first remove the retroactive credits before you can edit this record."}]}):n.a.createElement(n.a.Fragment,null))},disableSortBy:!0}];return re&&C&&re.userId!==C.userId?e.filter((function(e){return"evaluationDisplayStatusId"!==e.accessor})):e}),[re,m,gt,bt,dt,ie,Dt,C]),Bt=Object(r.useMemo)((function(){return n.a.createElement(n.a.Fragment,null,me&&0!==me.recordCount?n.a.createElement(n.a.Fragment,null,me.yearGrouping&&me.yearGrouping.map((function(e){return n.a.createElement(h.Grid,{item:!0,xs:12,key:e},n.a.createElement(Sd,{year:e,columns:Ft(),records:Se&&Se.filter((function(t){return t.yearGrouping===e})),summaryRecords:me}))}))):n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignContent:"center",alignItems:"center",alignment:"center"},n.a.createElement(h.Widget,null,n.a.createElement("div",null,n.a.createElement("div",{style:{width:"100%",minHeight:"64px",backgroundColor:"#F1F1F1"}},n.a.createElement("div",{style:{marginLeft:"16px"}},n.a.createElement(A.a,{title:""}))),n.a.createElement("div",{style:{width:"100%"}},n.a.createElement(P.a,null,n.a.createElement(h.Typography,{variant:"body1",align:"center"},"NO RECORDS FOUND")))))))}),[me,Se,Ft]);return n.a.createElement(h.Screen,{maxWidth:"xl",titleBar:{title:(W&&""!==W.title?W.title:"Transcripts")||"Transcripts",description:W?null!==W.shortDescription&&""!==W.shortDescription&&n.a.createElement(h.Column,null,n.a.createElement(h.TextEditorView,{model:L(W.shortDescription)}),null!==W.text&&""!==W.text&&n.a.createElement("div",{style:{marginTop:"32px"}},n.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return K(!0)}},"Show More"))):n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{style:{marginTop:"40px"}},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),n.a.createElement("div",{style:{marginTop:"16px"}},n.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},n.a.createElement("div",{style:{height:"100%"}},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(mn.Formik,{enableReinitialize:!0,validateOnChange:!0,initialValues:{filterType:null!==(l=ct("TypeAndLicense"))&&void 0!==l?l:[0],startDate:null!==(d=ct("StartDate"))&&void 0!==d?d:null,endDate:null!==(u=ct("EndDate"))&&void 0!==u?u:null},validationSchema:Object(yn.object)().shape({filterType:Object(yn.array)().nullable(),startDate:Object(yn.date)().nullable().typeError("Please enter date in ".concat(Object(Zt.l)()," format or select from the calendar")),endDate:Object(yn.date)().nullable().min(Object(yn.ref)("startDate"),"End date should be later than start date").typeError("Please enter date in ".concat(Object(Zt.l)()," format or select from the calendar"))}),onSubmit:function(e){var t=e.filterType,i=e.startDate,r=e.endDate;null!==i&<.push("StartDate: ".concat(Object(Zt.i)(i))),null!==r&<.push("EndDate: ".concat(Object(Zt.i)(r)));var n=t;n>0?lt.push("License: ".concat(t)):lt.push("Type: ".concat(t)),Lt(n),ce(Object(J.a)(Object(J.a)({},le),{},{page:1,searchCriteria:lt}))}},(function(e){var t,i=e.setFieldValue,r=e.submitForm,a=Object(x.debounce)((function(e,t){i("startDate",null!==e&&e.isValid()?e.toDate():t),(null!==e&&e.isValid()||null===t)&&r()}),500),o=Object(x.debounce)((function(e,t){i("endDate",null!==e&&e.isValid()?e.toDate():t),(null!==e&&e.isValid()||null===t)&&r()}),500);return n.a.createElement(h.Form,{id:"user-transcript-filter",formikContext:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form",alignItems:"center"},n.a.createElement(h.Grid,{item:!0,xs:12,sm:3,md:3,key:"Type",stretchContent:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:U?10:12,stretchContent:!0},n.a.createElement(h.SelectField,{formikContext:!0,startAdornment:"Filter By:",id:"filterType",onChange:function(e){return i("filterType",e.target.value),void r()},dense:!0},n.a.createElement(h.MenuItem,{value:0},"All Courses and Activities"),n.a.createElement(h.MenuItem,{value:-1},"All Activities"),n.a.createElement(h.MenuItem,{value:-2},"All Courses"),n.a.createElement(h.MenuItem,{disabled:!0,value:""},n.a.createElement("em",null,n.a.createElement("b",null,"License"))),(null===C||void 0===C?void 0:C.userLicense)&&(null===C||void 0===C||null===(t=C.userLicense)||void 0===t?void 0:t.sort((function(e,t){var i,r,n,a;return(null!==(i=e.name)&&void 0!==i?i:"")>(null!==(r=t.name)&&void 0!==r?r:"")?1:(null!==(n=e.name)&&void 0!==n?n:"")<(null!==(a=t.name)&&void 0!==a?a:"")?-1:0})).map((function(e){return n.a.createElement(h.MenuItem,{key:e.licenseId,value:e.licenseId},n.a.createElement("div",{style:{marginLeft:"32px"}},e.name))}))))),n.a.createElement(h.Hidden,{xsUp:!U},n.a.createElement(h.Grid,{item:!0,xs:2,alignment:"center-right",alignContent:"space-between",alignItems:"flex-end"},n.a.createElement(Ea,{title:U?"":"Actions",icon:n.a.createElement(h.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),menu:[{label:"Download Third-Party Provided Certificates",icon:n.a.createElement(h.SystemIcon,{icon:"Download"}),onClick:ht},{label:"Print Certificates for Firm-Provided Courses",icon:n.a.createElement(h.SystemIcon,{icon:"Print"}),onClick:ut},{label:"Export",icon:n.a.createElement(h.SystemIcon,{icon:"Export"}),onClick:function(){return te(!0)}},{label:"Add Program Attendance",icon:n.a.createElement(h.SystemIcon,{icon:"Add"}),onClick:function(){var e,t;return Tt("".concat(null!==Pt&&void 0!==Pt?Pt:""," (").concat(null!==(e=null===C||void 0===C?void 0:C.email)&&void 0!==e?e:"",")"),null!==(t=null===C||void 0===C?void 0:C.userId)&&void 0!==t?t:0)},hidden:!(ne&&ie&&((null===C||void 0===C?void 0:C.idpId)||"")!==((null===re||void 0===re?void 0:re.idpId)||""))}]}))))),n.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4,key:"DateRange",stretchContent:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form",alignItems:"center"},n.a.createElement(h.Grid,{item:!0,xs:5,key:"startDate",stretchContent:!0},n.a.createElement(h.DateTimeField,{formikContext:!0,id:"startDate",type:"date",placeholder:"Start Date",onChange:function(e,t){return a(e,t)},dense:!0,format:Object(Zt.l)()})),n.a.createElement(h.Grid,{item:!0,xs:5,key:"endDate",stretchContent:!0},n.a.createElement(h.DateTimeField,{formikContext:!0,id:"endDate",type:"date",placeholder:"End Date",onChange:function(e,t){return o(e,t)},dense:!0,format:Object(Zt.l)()})),n.a.createElement(h.Grid,{item:!0,xs:2,key:"clearKey",stretchContent:!0},At&&n.a.createElement(h.Button,{size:"small",variant:"text",color:"primary",onClick:function(){return Lt(0),void ce(Object(J.a)(Object(J.a)({},le),{},{page:1,pageSize:-1,searchCriteria:["Type: 0"]}))}},n.a.createElement(h.SystemIcon,{icon:"ClearFilters",color:"secondary"}))))),n.a.createElement(h.Hidden,{smDown:U},n.a.createElement(h.Grid,{item:!0,xs:12,sm:3,md:5,alignment:"center-right",alignContent:"space-between",alignItems:"flex-end"},n.a.createElement(Ea,{title:"Actions",icon:n.a.createElement(h.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),menu:[{label:"Download Third-Party Provided Certificates",icon:n.a.createElement(h.SystemIcon,{icon:"Download"}),onClick:ht},{label:"Print Certificates for Firm-Provided Courses",icon:n.a.createElement(h.SystemIcon,{icon:"Print"}),onClick:ut},{label:"Export",icon:n.a.createElement(h.SystemIcon,{icon:"Export"}),onClick:function(){return te(!0)}},{label:"Add Program Attendance",icon:n.a.createElement(h.SystemIcon,{icon:"Add"}),onClick:function(){var e,t;return Tt("".concat(null!==Pt&&void 0!==Pt?Pt:""," (").concat(null!==(e=null===C||void 0===C?void 0:C.email)&&void 0!==e?e:"",")"),null!==(t=null===C||void 0===C?void 0:C.userId)&&void 0!==t?t:0)},hidden:!(ne&&ie&&((null===C||void 0===C?void 0:C.idpId)||"")!==((null===re||void 0===re?void 0:re.idpId)||""))}]})))))}))),he?n.a.createElement(n.a.Fragment,null,[2020,2019,2018,2017].map((function(e){return n.a.createElement(h.Grid,{item:!0,xs:12,key:e},n.a.createElement(h.Widget,null,n.a.createElement(h.ExpansionPanel,{disabled:!0,summary:n.a.createElement(n.a.Fragment,null),details:n.a.createElement(n.a.Fragment,null)})))}))):n.a.createElement(n.a.Fragment,null,Bt)),Ce.open&&n.a.createElement(md,{open:Ce.open,sessionParticipantId:Ce.sessionParticipantId,onClose:function(){xe({open:!1,sessionParticipantId:0})},onSuccess:function(){return vt()}}),Fe.open&&n.a.createElement(pd,{open:Fe.open,onClose:function(){Be({open:!1,userId:0,sessionDetails:[],records:[],forBulkPrint:!1})},records:Fe.records,sessionDetails:Fe.sessionDetails,userId:Fe.userId,isBulkPrint:Fe.forBulkPrint}),Pe&&ke&&ke>0&&n.a.createElement(mo,{open:Pe,sessionEvaluationId:ke,onClose:function(){Te(!1)},onSubmit:function(){ye(void 0),Ee(void 0),ve(!0),I(le).then((function(e){void 0!==e&&(ye(e),Ee(e.userTranscripts)),ve(!1)})),Te(!1)}}),mt&&n.a.createElement(fd,{open:mt.open,participantId:mt.participantId,completionDate:mt.completionDate,title:"Update Completion Date",onClose:function(){yt({open:!1,sessionId:0,completionDate:void 0,participantId:0})},sessionId:mt.sessionId,onSuccess:function(){vt()}}),Ge&&n.a.createElement(yd,{open:Ge,participants:[$e||{}],onSuccess:function(){return vt()},onClose:function(){return qe(!1)},title:"Adjust Credits for ".concat(Ze),selectedParticipantUserLevel:We}),It&&n.a.createElement(ed,{open:It,onClose:function(){wt({name:"",userId:0}),Ot(!1),Lt(0),ce(Object(J.a)(Object(J.a)({},le),{},{page:1,pageSize:-1,searchCriteria:["Type: 0"]}))},setOpen:Ot,name:jt.name,userId:jt.userId}),it&&n.a.createElement(bd,{open:it,onClose:function(){rt(!1)},onConfirmation:function(){return y(ot)}})),n.a.createElement(dn,{open:H,onClose:function(){return K(!1)},title:(W&&""!==W.title?W.title:"Transcripts")||"Transcripts",description:null===W||void 0===W?void 0:W.text}),ee&&n.a.createElement(hd,{open:ee,exportToCsv:function(){return Jt("csv")},exportToXls:function(){return Jt("xlsx")},exportToPdf:function(){return Jt("pdf")},pdfDisabled:null===F,onClose:function(){te(!1)}}))}))),Id=i(1042),Od=i(322),Cd=i.n(Od),xd=function(e){var t=e.items;if(void 0===t)return n.a.createElement(n.a.Fragment,null);if(t&&t.length<=1)return n.a.createElement("span",null,t[0]);var i=t[0],r=t.splice(1,t.length);return n.a.createElement(h.Row,null,n.a.createElement(h.Expanded,{flex:0,mr:1},n.a.createElement("span",null,i,",")),n.a.createElement(h.Tooltip,{title:r.join(" \u2022 ")},n.a.createElement("span",null," +",r.length)))},jd=function(){var e=new Date,t=Object(Zt.h)(e).getDate(),i=Object(Zt.h)(e).getMonth()+1,r=Object(Zt.h)(e).getDay();if(i<3||i>11)return!1;if(i>3&&i<11)return!0;var n=t-r;return 3===i?n>=8:11===i&&n<=0},wd=function(e){var t=e.onClose,i=e.open,r=e.setOpenImageUpload,a=e.onDelete,o=e.hasDelete,s=e.isDeleting;return n.a.createElement(h.Dialog,{open:i,onClose:t,maxWidth:"xs",fullWidth:!0},n.a.createElement(un.DialogHeader,{titleBar:{title:"Edit Avatar",onClose:t}}),n.a.createElement(un.DialogBody,null,n.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},n.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){r(!0),t()}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"Camera",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Upload Avatar"}))))))),o&&n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.Card,{variant:"outlined"},n.a.createElement(h.CardActionArea,{onClick:function(){return a&&a()}},n.a.createElement(h.ListItem,null,n.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1,flex:1},n.a.createElement(h.SystemIcon,{icon:"Delete",size:"lg",color:"primary"})),n.a.createElement(h.Expanded,null,n.a.createElement(h.ListItemText,{primary:"Remove Avatar"})),n.a.createElement(h.Box,{m:1,flex:1},s&&n.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))))))},Pd=Object(s.b)((function(e){return{passwordPolicy:e.generalSettings.passwordPolicy}}),(function(e){return{changePassword:function(t){return e(Object(C.b)(t))}}}))((function(e){var t=e.disabled,i=e.passwordPolicy,a=e.changePassword,o=Object(s.c)((function(e){return e.users.loggedUser})),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],v=d[1],f=Object(r.useRef)();Object(r.useEffect)((function(){o&&v(!1)}),[o,v]),Object(r.useEffect)((function(){u&&f.current&&f.current.resetForm()}),[f,u]);var m=function(){var e=Object(yn.string)().required("Required").min(null===i||void 0===i?void 0:i.minimumLength,"Password must be at least ".concat(null===i||void 0===i?void 0:i.minimumLength," characters long"));return(null===i||void 0===i?void 0:i.requireNumbers)&&(e=e.matches(/\d/,"Must contain least one number")),(null===i||void 0===i?void 0:i.requireSymbols)&&(e=e.matches(/[^a-zA-Z\d:]/,"Must contain least one special character")),(null===i||void 0===i?void 0:i.requireUppercase)&&(e=e.matches(/[A-Z]/,"Must contain least one uppercase character")),(null===i||void 0===i?void 0:i.requireLowercase)&&(e=e.matches(/[a-z]/,"Must contain least one lowercase character")),e},y={initialValues:{newPassword:"",confirmPassword:"",oldPassword:""},validationSchema:Object(yn.object)().shape({oldPassword:m(),newPassword:m(),confirmPassword:m().when("newPassword",{is:function(e){return!!(e&&e.length>0)},then:Object(yn.string)().oneOf([Object(yn.ref)("newPassword")],"Passwords does not match")})}),onSubmit:function(e,t){var i=e.oldPassword,r=e.newPassword,n=e.confirmPassword,o=new p.w({oldPassword:i,newPassword:r,confirmPassword:n});a(o).then((function(e){e?(t.setSubmitting(!e),v(!e)):(t.setSubmitting(!1),v(!0))}))}};return n.a.createElement(mn.Formik,{initialValues:y.initialValues,validationSchema:y.validationSchema,onSubmit:y.onSubmit,enableReinitialize:!0,validateOnChange:!1,innerRef:f},(function(e){return n.a.createElement("div",{id:"userPasswordForm"},n.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(null===o||void 0===o?void 0:o.userName)||""===(null===o||void 0===o?void 0:o.userName)?n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{style:{backgroundColor:"#E5F3FA",height:40}},n.a.createElement(h.Box,{color:"#026799",marginTop:.75,marginBottom:.5,marginLeft:1},n.a.createElement(h.Typography,{variant:"body1",align:"left",style:{color:"#026799"}},n.a.createElement(h.SystemIcon,{icon:"Info",size:"sm"}),"\xa0\xa0\xa0A temporary password will be sent when finished. Email is required.")))):u?n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",background:"default"},n.a.createElement(h.CardContent,null,n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{required:!0,id:"oldPassword",label:"Current Password",type:"new-password",fullWidth:!0})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{required:!0,id:"newPassword",label:"New Password",type:"new-password",fullWidth:!0})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{required:!0,id:"confirmPassword",label:"Confirm New Password",type:"new-password",fullWidth:!0})),u&&n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Button,{color:"default",variant:"outlined",onClick:function(){return v(!1)}},"Cancel"),n.a.createElement(h.Button,{variant:"outlined",color:"primary",loading:e.isSubmitting,disabled:!e.dirty,onClick:function(){e.submitForm()}},"Save"))))))):n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.TextField,{label:"Password",value:"**********",disabled:!0,endAdornment:n.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){v(!0)},disabled:t},n.a.createElement(h.Tooltip,{title:"Change your password."},n.a.createElement("span",null,"Change")))}))))}))})),Td=Object(s.b)(null,(function(e){return{uploadSignature:function(t,i){return e(function(e,t){return function(i){var r={data:e.data,fileName:e.name};return q.D.uploadUsersignature(t,void 0,r).then((function(e){return e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},deleteSignature:function(t){return e(function(e){return function(t){return q.D.deleteUserSignature(void 0,p.Cb.fromJS(new p.Cb({userId:e}))).then((function(){return Promise.resolve()})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))}}}))((function(e){var t=e.isLoading,i=e.userId,a=e.uploadSignature,o=e.deleteSignature,s=e.logoUrl,l=E(p.Kd.ViewPortalUserPreference),d=Object(r.useState)(!1),u=Object(c.a)(d,2),v=u[0],f=u[1],m=Object(r.useState)(null),y=Object(c.a)(m,2),g=y[0],b=y[1],S=Object(r.useState)(s),I=Object(c.a)(S,2),O=I[0],C=I[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(!1),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Cd()();return Object(r.useEffect)((function(){t||C(s)}),[t,s]),n.a.createElement(h.Box,{marginTop:2},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"h5"},"Signature"),n.a.createElement(h.Typography,{variant:"caption",color:"textSecondary"},"Add signature for auto-population"))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"bottom-left"},n.a.createElement(h.Column,null,(null===g||void 0===g?void 0:g.data)?n.a.createElement("img",{alt:"Change Signature",src:URL.createObjectURL(null===g||void 0===g?void 0:g.data),title:"Change Signature",width:"270px",height:"auto"}):t?n.a.createElement(h.Skeleton,{variant:"rect",width:320,height:80}):n.a.createElement(n.a.Fragment,null,O&&!Object(x.isEmpty)(O)?n.a.createElement("img",{src:O,alt:"Change Signature",title:"Change Signature",width:"270px",height:"auto"}):n.a.createElement(h.Card,{background:"grey",variant:"outlined"},n.a.createElement(h.CardContent,{style:{width:"270px",height:"auto"},onClick:function(){f(l)},title:"Add Signature",color:"red"},n.a.createElement(h.Grid,{container:!0},n.a.createElement(h.Grid,{item:!0,alignment:"center"},n.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"center"},n.a.createElement(h.Typography,{color:"default",variant:"h5"},"[Add Here]"))))))),n.a.createElement(h.Row,{mainAxisAlignment:"end"},n.a.createElement(h.Box,{m:.5},n.a.createElement(h.ButtonGroup,{disabled:!l||t,variant:"outlined",color:"primary"},n.a.createElement(h.Button,{size:"small",color:"primary",disabled:void 0===O||null===O,loading:P,onClick:function(){T(!0),o(i).then((function(){L("Signature Deleted","success"),T(!1),b(null),C(void 0)}))}},n.a.createElement(h.SystemIcon,{icon:"Delete"})),n.a.createElement(h.Button,{size:"small",color:"primary",loading:k,onClick:function(){f(!0)}},n.a.createElement(h.SystemIcon,{icon:"Edit"}))))))),n.a.createElement(h.Grid,{item:!0,xs:12})),n.a.createElement(h.ImageUpload,{onClose:function(){f(!1)},open:v,cropper:{minHeight:40,minWidth:160,crop:{width:50,height:50,unit:"px",x:0,y:0}},onSave:function(e){var t={data:e.croppedImageBlob.blob,name:e.rawImageDetails.path,url:e.rawImageDetails.preview.substring(5)};D(!0),a(t,i).then((function(){L("Signature Uploaded","success"),D(!1),b(t),C(t.url)}))}}))})),Ad=Object(V.makeStyles)((function(e){return{large:{width:e.spacing(8),height:e.spacing(8)}}})),Nd=Object(s.b)((function(e){return{timezones:e.systemTables.timezones,dateFormats:e.systemTables.dateFormats}}),(function(e){return{getSystemTables:function(){return e(Object(C.e)())},getUserPreferences:function(){return e(Object(C.h)())},uploadAvatar:function(t,i){return e(function(e,t){return function(i,r){var n={data:e.data,fileName:e.name},a=r().users,o=a.loggedUser,s=a.authenticatedUser;return q.D.uploadUserAvatar(t,void 0,n).then((function(e){return o&&o.userId===t&&i(Object(Js.d)(e)),s&&s.userId===t&&i(Object(Js.b)(e)),e})).catch((function(e){throw i(Object(M.b)(e)),e}))}}(t,i))},deleteAvatar:function(t){return e(function(e){return function(t,i){var r=i().users,n=r.loggedUser,a=r.authenticatedUser;return q.D.deleteUserAvatar(void 0,p.yb.fromJS(new p.yb({userId:e}))).then((function(){return n&&n.userId===e&&t(Object(Js.d)(null)),a&&a.userId===e&&t(Object(Js.b)(null)),Promise.resolve()})).catch((function(e){throw t(Object(M.b)(e)),e}))}}(t))},updateUserPreferences:function(t){return e(Object(C.i)(t))}}})),kd=[{path:"/",exact:!0,title:"Root",component:gc},{path:"/signin",exact:!0,title:"Sign In",component:$r},{path:"/expire",exact:!0,title:"Expire",component:en},{path:"/signout",exact:!0,title:"Sign Out",component:nn},{path:"/signedout",exact:!0,title:"Signed Out",component:on},{path:"/redirect",exact:!0,title:"Home",component:Qr},{path:"/home",exact:!0,title:"Home",icon:{source:"system",value:"Home"},component:xs,private:!0,showInNavMenu:!0},{path:"/course-catalog",exact:!0,title:"Course Catalog",icon:{source:"system",value:"Courses"},component:lo,private:!0,showInNavMenu:!0},{path:"/course-calendar",exact:!0,title:"Course Calendar",icon:{source:"system",value:"Calendar"},component:Wa,private:!0,showInNavMenu:!0},{path:"/course-player",exact:!0,title:"Course Media Player",icon:{source:"system",value:"Courses"},component:Ao,private:!0,showInNavMenu:!1},{path:"/learning-package-player",exact:!0,title:"Learning Package Player",icon:{source:"system",value:"Courses"},component:No,private:!1,showInNavMenu:!1,routes:[{path:"/closeWindow",exact:!1,title:"Reports",private:!1,showInNavMenu:!1,component:ko}]},{path:"/user-courses",exact:!1,title:"My Courses",icon:{source:"system",value:"MyCourses"},component:yc,private:!0,showInNavMenu:!0},{path:"/compliance",exact:!0,title:"Compliance",icon:{source:"system",value:"Cem-Compliance"},component:zn,private:!0,showInNavMenu:!0},{path:"/learning-plans",exact:!1,title:"Learning Plans",icon:{source:"system",value:"LearningPlans"},component:Zl,private:!0,showInNavMenu:!0},{path:"/development-plans",exact:!0,title:"Development Plans",icon:{source:"system",value:"DevelopmentPlan"},component:Os,private:!0,showInNavMenu:!0},{path:"/transcripts",exact:!0,title:"Transcripts",icon:{source:"system",value:"Transcript"},component:Ed,private:!0,showInNavMenu:!0},{path:"/users",exact:!0,title:"System Users",icon:{source:"system",value:"User"},component:xs,private:!0,showInNavMenu:!1,routes:[{path:"/preference",exact:!0,title:"User Preferences",icon:{source:"system",value:"User"},private:!0,showInNavMenu:!1,component:Object($a.a)(Nd((function(e){var t,i,a,o,l=e.history,d=e.dateFormats,u=e.timezones,v=e.getUserPreferences,f=e.getSystemTables,m=e.uploadAvatar,y=e.deleteAvatar,g=e.updateUserPreferences,b=Ad(),S=Cd()(),E=Object(s.c)((function(e){return e.users.authenticatedUser})),I=Object(r.useState)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(),w=Object(c.a)(j,2),P=w[0],T=w[1],A=Object(r.useState)(!1),k=Object(c.a)(A,2),D=k[0],L=k[1],J=Object(r.useState)(!1),F=Object(c.a)(J,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),q=G[0],M=G[1],z=null===E||void 0===E||null===(t=E.userRelationship)||void 0===t||null===(i=t.filter((function(e){return e.relationshipTypeId===p.Sd.AdministrativeAssistant})))||void 0===i?void 0:i.map((function(e){return"".concat(e.sourceFirstName," ").concat(e.sourceLastName)}));Object(r.useEffect)((function(){x(!0),f(),v().then((function(e){T(e),x(!1)}))}),[E,f,v,T,x]);var W=function(){var e;M(!0),y(null!==(e=null===E||void 0===E?void 0:E.userId)&&void 0!==e?e:0).then((function(){M(!1),R(!1),S("Avatar is removed.","success")}))},V=function(){var e,t,i,r,a,o,s;return n.a.createElement(n.a.Fragment,null,n.a.createElement(h.ImageUpload,{onClose:function(){L(!1)},open:D,cropper:{minHeight:175,minWidth:175,crop:{width:175,height:175,unit:"px",x:0,y:0,aspect:1}},onSave:function(e){var t={data:e.croppedImageBlob.blob,name:e.rawImageDetails.path};m(t,null===E||void 0===E?void 0:E.userId).then((function(){S("Avatar is uploaded and saved.","success")}))}}),n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{item:!0,xs:12,md:5},n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.Box,{m:1},C?n.a.createElement(h.Skeleton,{width:50,height:50,variant:"circle"}):n.a.createElement(h.IconButton,{onClick:function(){return null==(null===E||void 0===E?void 0:E.userAvatar)?L(!0):R(!0)}},n.a.createElement(h.Tooltip,{title:null==(null===E||void 0===E?void 0:E.userAvatar)?"Upload Avatar":"Change/Remove Avatar",placement:"bottom"},n.a.createElement(h.Avatar,{variant:"circular",className:b.large},null==(null===E||void 0===E?void 0:E.userAvatar)?"".concat((null===E||void 0===E?void 0:E.firstName)&&(null===E||void 0===E?void 0:E.firstName[0])).concat((null===E||void 0===E?void 0:E.lastName)&&(null===E||void 0===E?void 0:E.lastName[0])):n.a.createElement("img",{src:null===(e=E.userAvatar)||void 0===e?void 0:e.userAvatarThumbnailURl,alt:"Loading...",width:"100%"}))))),n.a.createElement(h.Column,{crossAxisAlignment:"left"},C?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Skeleton,{width:250,height:20,variant:"rect"})),n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Skeleton,{width:250,height:50,variant:"rect"})),n.a.createElement(h.Box,{mb:1},n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}))):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{mb:1.5},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"primary"},null===E||void 0===E?void 0:E.email),n.a.createElement(h.Typography,{variant:"h5",style:{color:"#013E5C"}},null===E||void 0===E?void 0:E.firstName," ",null===E||void 0===E?void 0:E.lastName)),n.a.createElement(h.Chip,{variant:"outlined",color:(null===E||void 0===E?void 0:E.inactiveDate)?"error":"success",label:(null===E||void 0===E?void 0:E.inactiveDate)?"Inactive":"Active"}))))),n.a.createElement(h.Grid,{item:!0,xs:12,md:2},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Personnel ID"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},null===E||void 0===E?void 0:E.personnelId))),n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Hired Date"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},Object(N.c)(null===E||void 0===E?void 0:E.hireDate)))),n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Office"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},null!==(t=null===E||void 0===E||null===(i=E.location)||void 0===i?void 0:i.name)&&void 0!==t?t:"-"))))),n.a.createElement(h.Grid,{item:!0,xs:12,md:2},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Departments"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(xd,{items:(null===E||void 0===E?void 0:E.userType)===p.Re.Client?["N/A"]:(null===E||void 0===E?void 0:E.userDepartment)&&(null===E||void 0===E?void 0:E.userDepartment.length)>0?null===E||void 0===E||null===(r=E.userDepartment)||void 0===r?void 0:r.map((function(e){return e.name})):["-"]})))),n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Practice Areas"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(xd,{items:(null===E||void 0===E?void 0:E.userType)===p.Re.Client?["N/A"]:(null===E||void 0===E?void 0:E.userPracticeArea)&&(null===E||void 0===E?void 0:E.userPracticeArea.length)>0?null===E||void 0===E||null===(a=E.userPracticeArea)||void 0===a?void 0:a.map((function(e){return e.name})):["-"]})))),n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Levels"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(xd,{items:(null===E||void 0===E?void 0:E.userType)===p.Re.Client?["N/A"]:(null===E||void 0===E?void 0:E.userLevel)&&(null===E||void 0===E?void 0:E.userLevel.length)>0?null===E||void 0===E||null===(o=E.userLevel)||void 0===o?void 0:o.map((function(e){return e.name})):["-"]})))))),n.a.createElement(h.Grid,{item:!0,xs:12,md:2},n.a.createElement(h.Column,{crossAxisAlignment:"left"},n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Class Year"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(xd,{items:(null===E||void 0===E?void 0:E.userType)===p.Re.Client?["N/A"]:(null===E||void 0===E?void 0:E.userClassYear)&&(null===E||void 0===E?void 0:E.userClassYear.length)>0?null===E||void 0===E||null===(s=E.userClassYear)||void 0===s?void 0:s.map((function(e){return e.name})):["-"]})))),(null===E||void 0===E?void 0:E.userType)===p.Re.Administrator&&n.a.createElement(h.Box,{mb:2},n.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Administrative Assistant"),n.a.createElement(h.Box,{mt:1},C?n.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):n.a.createElement(h.Typography,{variant:"body1"},n.a.createElement(xd,{items:z&&z.length>0?z:["-"]}))))))))},_=function(){return n.a.createElement(h.Grid,{spacing:"form",container:!0},n.a.createElement(h.Grid,{item:!0,xs:12}),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"h5"},"Security"),n.a.createElement(h.Typography,{variant:"caption",color:"textSecondary"},"Login"))),n.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",stretchContent:!0},C?n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Skeleton,{width:215,height:50,variant:"rect"})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Skeleton,{width:215,height:50,variant:"rect"}))):n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.TextField,{formikContext:!0,fullWidth:!0,id:"userName",label:"Login ID",disabled:!0})),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(Pd,{disabled:null===(null===E||void 0===E?void 0:E.userName)||""===(null===E||void 0===E?void 0:E.userName)||void 0!==(null===E||void 0===E?void 0:E.inactiveDate)})))),n.a.createElement(h.Grid,{item:!0,xs:12}))},Y=function(){return n.a.createElement(h.Grid,{spacing:"form",container:!0},n.a.createElement(h.Grid,{item:!0,xs:12}),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(h.Column,null,n.a.createElement(h.Typography,{variant:"h5"},"Date & Time Zone"),n.a.createElement(h.Typography,{variant:"caption",color:"textSecondary"},"Set default time zone and date format"))),n.a.createElement(h.Grid,{item:!0,md:8,xs:12,alignment:"top-left",stretchContent:!0},n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.SelectField,{label:"Date Format",formikContext:!0,id:"dateFormat",fullWidth:!0,variant:"outlined",loading:C},d&&d.map((function(e){return n.a.createElement(h.MenuItem,{key:e.dateFormatId,value:e.name},e.name)})))),n.a.createElement(h.Grid,{item:!0,xs:12},n.a.createElement(h.SelectField,{label:"Time Zone",formikContext:!0,id:"timezone",fullWidth:!0,variant:"outlined",loading:C},u&&u.map((function(e){return n.a.createElement(h.MenuItem,{key:e.timezoneId,value:e.timezoneId},jd()?e.dstName:e.name)})))),n.a.createElement(h.Grid,{item:!0,xs:12}))),n.a.createElement(h.Grid,{item:!0,xs:12}))},$={initialValues:{userName:E&&E.userName,dateFormat:null!==(a=null===P||void 0===P?void 0:P.dateFormat)&&void 0!==a?a:"",timezone:null!==(o=null===P||void 0===P?void 0:P.timezone)&&void 0!==o?o:""},validationSchema:Object(yn.object)().shape({language:Object(yn.string)().nullable(),dateFormat:Object(yn.string)().nullable(),timezone:Object(yn.string)().nullable()}),onSubmit:function(e,t){var i=e.dateFormat,r=e.timezone;t.setSubmitting(!0);var n=new p.He({dateFormat:i,timezone:r});g(n).then((function(e){t.setSubmitting(!1),T(e)}))}};return n.a.createElement(mn.Formik,{initialValues:$.initialValues,validationSchema:$.validationSchema,onSubmit:$.onSubmit,enableReinitialize:!0},(function(e){var t;return n.a.createElement(h.Screen,{titleBar:{title:"User Preferences",actionRow:n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Button,{variant:"outlined",size:"small",color:"default",onClick:function(){l&&l.goBack()}},"Back"),n.a.createElement(h.Box,{m:1},n.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",disabled:!e.dirty,onClick:function(){return e.submitForm()},loading:e.isSubmitting},"Save")))}},n.a.createElement(V,null),n.a.createElement(h.Divider,null),n.a.createElement(h.Grid,{container:!0,spacing:"form"},n.a.createElement(h.Grid,{item:!0,md:6,sm:12,stretchContent:!0},n.a.createElement(Y,null)),n.a.createElement(h.Grid,{item:!0,md:6,sm:12,stretchContent:!0},n.a.createElement(Td,{isLoading:C,userId:null!==(t=E&&E.userId)&&void 0!==t?t:0,logoUrl:null===P||void 0===P?void 0:P.signatureUrl}))),n.a.createElement(h.Divider,null),n.a.createElement(_,null),n.a.createElement(h.Divider,null),B&&n.a.createElement(wd,{open:B,onClose:function(){return R(!1)},setOpenImageUpload:function(e){return L(e)},hasDelete:null!==(null===E||void 0===E?void 0:E.userAvatar),onDelete:W,isDeleting:q}))}))})))},{path:"/admin",exact:!0,title:"My Portal",icon:{source:"system",value:"User"},private:!0,showInNavMenu:!1,component:Id.a}]},{path:"/team-view",exact:!0,title:"Team View",icon:{source:"system",value:"People"},component:sd,private:!0,showInNavMenu:!0},{path:"/instructor-view",exact:!0,title:"Instructor View",icon:{source:"system",value:"Cem-Webinar"},component:Pl,private:!0,showInNavMenu:!0},{path:"/certificatetemplate/preview/:licenseId/session/:sessionId/user/:userId/:isInstructor",exact:!0,title:"Certificate Template Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Ii},{path:"/certificatetemplate/preview/user/:userId",exact:!0,title:"Certificate Template Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Si},{path:"/attendanceform/print/:attendanceFormId/session/:sessionId",exact:!0,title:"Attendance Form Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:$},{path:"/evaluationform/print/:evaluationId/:courseId/:sessionId",exact:!0,title:"Evaluation Form Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Gr},{path:"/help",exact:!0,title:"CE Manager Help",icon:void 0,private:!1,showInNavMenu:!1,component:qr},{path:"/developmentPlan/print",exact:!0,title:"Development Plan Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Ko},{path:"/developmentrecord/print",exact:!0,title:"Development Record Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:ms},{path:"/developmentoverallreflection/print",exact:!0,title:"Development Overall Reflection Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Es},{path:"/developmentPlan/developmentLearningRecord/print/:isConfirmed",exact:!0,title:"Development Plan Learning Record Preview",icon:void 0,private:!1,showInNavMenu:!1,component:$o},{path:"/printComplianceReport/print",exact:!0,title:"Compliance Report",icon:void 0,private:!1,showInNavMenu:!1,component:Vn},{path:"/report/compliance/:guid",exact:!0,title:"Compliance Report",icon:void 0,private:!1,showInNavMenu:!1,component:Tc},{path:"/report/learning-plans/:guid",exact:!0,title:"Learning Plan Report",icon:void 0,private:!1,showInNavMenu:!1,component:Jc},{path:"/report/transcript/:guid",exact:!0,title:"Transcript Report",icon:void 0,private:!1,showInNavMenu:!1,component:qc},{path:"/announcement/:guid",exact:!0,title:"Announcement",icon:void 0,private:!1,showInNavMenu:!1,component:xc},{path:"/session/:guid",exact:!0,title:"Session",icon:void 0,private:!1,showInNavMenu:!1,component:xc},{path:"/invite/:guid",exact:!0,title:"Session Invite",icon:void 0,private:!1,showInNavMenu:!1,component:xc},{path:"/certificate/:guid",exact:!0,title:"Certificate",icon:void 0,private:!1,showInNavMenu:!1,component:Pc},{path:"/evaluation/:guid",exact:!0,title:"Evaluation Request",icon:void 0,private:!1,showInNavMenu:!1,component:kc},{path:"/decline-evaluation/:guid",exact:!0,title:"Decline Confirmation",icon:void 0,private:!1,showInNavMenu:!1,component:Nc},{path:"/registration/:guid",exact:!0,title:"Registration",icon:void 0,private:!1,showInNavMenu:!1,component:xc},{path:"/schedule/registration/:guid",exact:!0,title:"Registration",icon:void 0,private:!1,showInNavMenu:!1,component:xc},{path:"/materials/:guid",exact:!0,title:"Materials",icon:void 0,private:!1,showInNavMenu:!1,component:Bc},{path:"/learning-plan/:guid",exact:!0,title:"Learning Plan Registration",icon:void 0,private:!1,showInNavMenu:!1,component:Lc},{path:"/attendance-sheet/:guid",exact:!0,title:"Attendance Sheet",icon:void 0,private:!1,showInNavMenu:!1,component:wc}],Dd=[{label:"User",items:[{label:"Preferences",path:"/users/preference",icon:n.a.createElement(h.SystemIcon,{icon:"Preferences"})}]}],Ld=[{label:"User",items:[{label:"Admin View",path:"/users/admin",icon:n.a.createElement(h.SystemIcon,{icon:"Admin"})},{label:"Preferences",path:"/users/preference",icon:n.a.createElement(h.SystemIcon,{icon:"Preferences"})}]}],Jd=Dd,Fd=Object(s.b)(null,(function(e){return{getTeamViewUsers:function(t,i,r){return e(nd(t,i,r))},setLoggedUser:function(t){return e(Object(Hc.b)(t))}}}))(Object(d.o)((function(e){var t,i,a,o,l,d,u,v,f=e.getTeamViewUsers,m=e.setLoggedUser,y=e.history,g=e.onClose,b=e.open,S=Object(s.c)((function(e){return e.users.authenticatedUser})),I=S&&S.userRole,O=Object(s.c)((function(e){return e.users.loggedUser})),C=null!==(t=Object(s.c)((function(e){return e.users.isImpersonated}))?null===O||void 0===O?void 0:O.userId:null===S||void 0===S?void 0:S.userId)&&void 0!==t?t:0,x=null!==(i=I&&I[0].subRoleId)&&void 0!==i?i:0,j={userId:null!==(a=null===S||void 0===S?void 0:S.userId)&&void 0!==a?a:0,subRoleId:null!==(o=I&&I[0].subRoleId)&&void 0!==o?o:0,page:1,pageSize:6,filterBy:[],searchCriteria:[]},w=ad(),P=Object(r.useState)(Object(J.a)({},j)),T=Object(c.a)(P,2),A=T[0],N=T[1],k=Object(r.useState)(!1),D=Object(c.a)(k,2),L=D[0],F=D[1],B=Object(r.useState)(),R=Object(c.a)(B,2),U=R[0],G=R[1],q=Object(r.useState)(),M=Object(c.a)(q,2),z=M[0],W=M[1],V="true"===(null===(l=Object(s.c)((function(e){var t,i;return null===(t=e.generalSettings.firm)||void 0===t||null===(i=t.firmSettings)||void 0===i?void 0:i.filter((function(e){return"EnableDevelopmentPlanRecord"===e.key}))[0].value})))||void 0===l?void 0:l.toLowerCase()),_=E(p.Kd.ViewPortalCourseCalendar),Y=E(p.Kd.ViewPortalUserCourses),$=E(p.Kd.ViewPortalUserCompliance),H=E(p.Kd.ViewPortalLearningPlans),K=E(p.Kd.ViewPortalTranscripts);Object(r.useEffect)((function(){W(void 0),G(void 0),F(!0),f(C,x,A).then((function(e){void 0!==e&&(W(e),G(e.users)),F(!1)}))}),[f,A,x,C]);var Q=function(e){y.push("/".concat(e)),g()};return n.a.createElement(h.SideDrawer,{size:"sm",open:b,onClose:g,colorMode:"light"},n.a.createElement(sn.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"People"},title:"Team View"}}),n.a.createElement(sn.SideDrawerBody,{maxWidth:"sm"},n.a.createElement(h.Grid,{container:!0,spacing:"card"},n.a.createElement(h.Grid,{key:S&&(null===S||void 0===S?void 0:S.userId),item:!0,xs:12,stretchContent:!0},n.a.createElement(rd,{avatar:{source:null===S||void 0===S||null===(d=S.userAvatar)||void 0===d?void 0:d.userAvatarThumbnailURl,initials:"".concat(null===S||void 0===S||null===(u=S.firstName)||void 0===u?void 0:u.substr(0,1)).concat(null===S||void 0===S||null===(v=S.lastName)||void 0===v?void 0:v.substr(0,1))},fullName:"".concat(null===S||void 0===S?void 0:S.firstName," ").concat(null===S||void 0===S?void 0:S.lastName),buttonLabel:((null===S||void 0===S?void 0:S.idpId)||"")===((null===O||void 0===O?void 0:O.idpId)||"")?"Unselect":"Select",onSelect:function(){m((null===S||void 0===S?void 0:S.idpId)||"").then((function(){g()}))},size:"sm"})),n.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Divider,{style:{height:"2px"}})),L?[1,2,3,4,5,6].map((function(e){return n.a.createElement(h.Grid,{key:e,item:!0,xs:12,stretchContent:!0},n.a.createElement(h.Card,{variant:"outlined",status:"default"},n.a.createElement(h.CardHeader,{classes:{title:w.cardTitle,subheader:w.cardSubheader},title:n.a.createElement(h.Skeleton,{height:32}),subheader:n.a.createElement(h.Skeleton,{width:"40%"})}),n.a.createElement(h.CardContent,{classes:{root:w.cardContent},noTopPadding:!0},n.a.createElement(h.Skeleton,{width:"60%"}))))})):n.a.createElement(n.a.Fragment,null,z&&0!==z.recordCount?n.a.createElement(n.a.Fragment,null,U&&(null===U||void 0===U?void 0:U.map((function(e){var t,i,r,a=function(){var t,i;if((null===e||void 0===e||null===(t=e.userDepartment)||void 0===t?void 0:t.length)||(null===e||void 0===e||null===(i=e.userPosition)||void 0===i?void 0:i.length)){var r,a,o,s,l,c,d=(null===e||void 0===e?void 0:e.userDepartment)&&(null===e||void 0===e||null===(r=e.userDepartment)||void 0===r?void 0:r.map((function(e){return e.name}))),u=(null===e||void 0===e?void 0:e.userPosition)&&(null===e||void 0===e||null===(a=e.userPosition)||void 0===a?void 0:a.map((function(e){return e.name}))),v=d&&d[0],p=d&&d.splice(1,d.length),f=u&&u[0],m=u&&u.splice(1,u.length);return n.a.createElement(h.Row,null,n.a.createElement(h.Typography,{variant:"subtitle2"},(null===e||void 0===e?void 0:e.location)&&(null===e||void 0===e?void 0:e.location),0!==(null===e||void 0===e||null===(o=e.userDepartment)||void 0===o?void 0:o.length)&&n.a.createElement(n.a.Fragment,null,1===(null===e||void 0===e||null===(s=e.userDepartment)||void 0===s?void 0:s.length)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,null===e||void 0===e?void 0:e.userDepartment[0].name)):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,v,","),n.a.createElement(h.Tooltip,{title:p.join(" \u2022 ")},n.a.createElement("span",null," +",p&&p.length)))),0!==(null===e||void 0===e||null===(l=e.userPosition)||void 0===l?void 0:l.length)&&n.a.createElement(n.a.Fragment,null,1===(null===e||void 0===e||null===(c=e.userPosition)||void 0===c?void 0:c.length)?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,null===e||void 0===e?void 0:e.userPosition[0].name)):n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),n.a.createElement("span",null,f,","),n.a.createElement(h.Tooltip,{title:m.join(" \u2022 ")},n.a.createElement("span",null," +",m&&m.length))))))}return n.a.createElement(h.Typography,{variant:"subtitle2"},(null===e||void 0===e?void 0:e.location)&&(null===e||void 0===e?void 0:e.location))},o=function(){return n.a.createElement(h.Row,{crossAxisAlignment:"middle"},n.a.createElement(h.ButtonGroup,{disabled:((null===e||void 0===e?void 0:e.idpId)||"")!==((null===O||void 0===O?void 0:O.idpId)||""),size:"small",fullWidth:!0,orientation:"horizontal",variant:"outlined",color:"primary"},$&&n.a.createElement(h.Tooltip,{title:"Compliance",placement:"bottom"},n.a.createElement(h.Button,{disabled:"compliance"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("compliance")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",color:"inherit",type:"light",size:"sm"})))),H&&n.a.createElement(h.Tooltip,{title:"Learning Plans",placement:"bottom"},n.a.createElement(h.Button,{disabled:"learning-plans"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("learning-plans")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"LearningPlans",color:"inherit",type:"light",size:"sm"})))),V&&e.hasPortalDevelopmentPlanAccess&&e.hasUKLicense&&n.a.createElement(h.Tooltip,{title:"Development Plans",placement:"bottom"},n.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return Q("development-plans")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"DevelopmentPlan",color:"inherit",type:"light",size:"sm"})))),K&&n.a.createElement(h.Tooltip,{title:"Transcripts",placement:"bottom"},n.a.createElement(h.Button,{disabled:"transcripts"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("transcripts")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Transcript",color:"inherit",type:"light",size:"sm"})))),_&&n.a.createElement(h.Tooltip,{title:"Course Calendar",placement:"bottom"},n.a.createElement(h.Button,{disabled:"course-calendar"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("course-calendar")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"Calendar",color:"inherit",type:"light",size:"sm"})))),Y&&n.a.createElement(h.Tooltip,{title:"Courses",placement:"bottom"},n.a.createElement(h.Button,{disabled:"user-courses"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("user-courses")}},n.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},n.a.createElement(h.SystemIcon,{icon:"MyCourses",color:"inherit",type:"light",size:"sm"}))))))};return n.a.createElement(h.Grid,{key:e.userId,item:!0,xs:12,stretchContent:!0},n.a.createElement(rd,{actions:n.a.createElement(o,null),avatar:{source:null===e||void 0===e||null===(t=e.userAvatar)||void 0===t?void 0:t.userAvatarThumbnailURl,initials:null!==(i=null===e||void 0===e?void 0:e.initials)&&void 0!==i?i:""},details:n.a.createElement(a,null),email:null===e||void 0===e?void 0:e.email,fullName:null!==(r=null===e||void 0===e?void 0:e.name)&&void 0!==r?r:"",buttonLabel:((null===e||void 0===e?void 0:e.idpId)||"")===((null===O||void 0===O?void 0:O.idpId)||"")?"Unselect":"Select",onSelect:function(){m(((null===e||void 0===e?void 0:e.idpId)||"")===((null===O||void 0===O?void 0:O.idpId)||"")?(null===S||void 0===S?void 0:S.idpId)||"":(null===e||void 0===e?void 0:e.idpId)||"").then((function(){g()}))},size:"sm"}))}))),n.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},n.a.createElement(Ya.a,{count:Math.ceil(((null===z||void 0===z?void 0:z.recordCount)||0)/((null===A||void 0===A?void 0:A.pageSize)||6)),defaultPage:(null===A||void 0===A?void 0:A.page)||1,onChange:function(e,t){return function(e){N(Object(J.a)(Object(J.a)({},A),{},{page:e}))}(t)}}))):n.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},n.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},n.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No users found.")))))))}))),Bd=Object(s.b)((function(){return{}}),(function(){return{}}))(Object(d.o)((function(e){var t,i,a,o=e.disableChangeProfile,l=void 0===o||o,d=e.match,u=Object(s.c)((function(e){return e.users.authenticatedUser})),v=Object(s.c)((function(e){return e.users.loggedUser})),p=d.url.indexOf("registration")>0,f=d.url.indexOf("invite")>0,m=d.url.indexOf("learning-plans")>0,y=d.url.indexOf("report/compliance")>0,g=d.url.indexOf("report/learning-plans")>0,b=d.url.indexOf("report/transcript")>0,S=p||f||m||y||g||b,E=Object(r.useState)(!1),I=Object(c.a)(E,2),O=I[0],C=I[1];return u&&v&&(null===u||void 0===u?void 0:u.userId)!==(null===v||void 0===v?void 0:v.userId)&&!S?n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Box,{borderRadius:26,bgcolor:"#FFF",color:"#000"},n.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},n.a.createElement(h.Avatar,{src:null===v||void 0===v||null===(t=v.userAvatar)||void 0===t?void 0:t.userAvatarThumbnailURl,style:{height:52,width:52}},"".concat(null===v||void 0===v||null===(i=v.firstName)||void 0===i?void 0:i.substr(0,1)).concat(null===v||void 0===v||null===(a=v.lastName)||void 0===a?void 0:a.substr(0,1))),n.a.createElement(h.Column,{mainAxisAlignment:"middle"},n.a.createElement(h.Box,{ml:1.5,mr:3},n.a.createElement(h.Typography,{color:"default",variant:"caption"},"Viewing"),n.a.createElement(h.Typography,{color:"default",variant:"body1",weight:"bold"},"".concat(null===v||void 0===v?void 0:v.firstName," ").concat(null===v||void 0===v?void 0:v.lastName)))),!1===l&&n.a.createElement(n.a.Fragment,null,n.a.createElement(h.Divider,{orientation:"vertical",flexItem:!0,style:{marginTop:8,marginBottom:8}}),n.a.createElement(h.Button,{color:"primary",variant:"text",size:"small",onClick:function(){return C(!0)}},"Change Profile")))),O&&n.a.createElement(Fd,{open:O,onClose:function(){return C(!1)}})):n.a.createElement(n.a.Fragment,null)}))),Rd=i(447);function Ud(){Ud=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(j){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof u?t:u,a=Object.create(n.prototype),o=new O(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return x()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=S(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(j){return{type:"throw",arg:j}}}e.wrap=l;var d={};function u(){}function h(){}function v(){}var p={};s(p,n,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,n)&&(p=m);var y=v.prototype=u.prototype=Object.create(p);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=c(e[n],e,a);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function S(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;I(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}var Gd=Object(s.b)((function(e){return{authentication:e.authentication,isUserAccessTokenAdded:e.authentication.isUserAccessTokenAdded}}),(function(e){return{verifyUser:function(t){return e(C.j(t))},getUserPermissionSet:function(t){return e(Object(S.a)(t))},checkUserAccessToken:function(t){return e(C.c(t))},setIsExpired:function(t){return e(O.a(t))}}}))((function(e){var t,i,a,o,S=e.authentication,C=e.verifyUser,x=e.getUserPermissionSet,j=e.checkUserAccessToken,w=e.setIsExpired,P=e.isUserAccessTokenAdded,T=S.authenticated,A=Object(s.c)((function(e){return e.users})),k=A.authenticatedUser,D=A.loggedUser,L=A.isImpersonated,J=Object(s.c)((function(e){var t;return null===(t=e.generalSettings.firm)||void 0===t?void 0:t.firmApplications})),F=Object(s.c)((function(e){return e.portalSettings.branding})),B=Object(s.c)((function(e){return e.permissionSets.userPermissionSets})),R=Object(r.useState)(kd),U=Object(c.a)(R,2),G=U[0],q=U[1],M=null!==(t="SDB17hA5E6D6G4A4A2gKTRe2CG1PGe1DESAe1Kg1EBC1Pe2TKoF4I4B3A10A3B5F6B2B3G3==")?t:void 0,z=new URL(window.location.href).searchParams.get("guid"),W=new URL(window.location.href).searchParams.get("type"),V=L?D:k,_=E(p.Kd.ViewPortalTeamView)&&V&&V.userRole&&[p.re.AdministrativeAssistant,p.re.Supervisor].includes(null!==(i=V.userRole[0].subRoleId)&&void 0!==i?i:0),Y=null===V||void 0===V?void 0:V.hasUKLicense,$=function(e){var t,i=Object.keys(localStorage).find((function(t){return t.includes(e)}));return i&&null!==(t=localStorage.getItem(i))&&void 0!==t?t:""},H=$("idToken"),K=$("accessToken"),Q=$("refreshToken"),Z=H&&K&&Q,X=Object(r.useRef)(E(p.Kd.ViewPortalCourseCatalog)),ee=Object(r.useRef)(E(p.Kd.ViewPortalCourseCalendar)),te=Object(r.useRef)(E(p.Kd.ViewPortalUserCourses)),ie=Object(r.useRef)(E(p.Kd.ViewPortalUserCompliance)),re=Object(r.useRef)(E(p.Kd.ViewPortalLearningPlans)),ne=Object(r.useRef)(E(p.Kd.ViewPortalDevelopmentPlans)),ae=Object(r.useRef)(E(p.Kd.ViewPortalTranscripts)),oe=Object(r.useRef)(E(p.Kd.ViewPortalInstructorView)),se=Object(r.useRef)(!1);se.current=_;var le="true"===(null===(a=Object(s.c)((function(e){var t,i;return null===(t=e.generalSettings.firm)||void 0===t||null===(i=t.firmSettings)||void 0===i?void 0:i.filter((function(e){return"EnableDevelopmentPlanRecord"===e.key}))[0].value})))||void 0===a?void 0:a.toLowerCase());(null===D||void 0===D?void 0:D.userId)!==(null===k||void 0===k?void 0:k.userId)&&(Y=null===D||void 0===D?void 0:D.hasUKLicense);var ce=Object(r.useCallback)(Object(l.a)(Ud().mark((function e(){var t,i;return Ud().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=kd,i=function(e){return t=t.filter((function(t){return t.path!==e}))},X.current||i("/course-catalog"),ee.current||i("/course-calendar"),te.current||i("/user-courses"),re.current||i("/learning-plans"),ie.current||i("/compliance"),ae.current||i("/transcripts"),oe.current||i("/instructor-view"),se.current||i("/team-view"),(!le||(null===D||void 0===D?void 0:D.hasPortalDevelopmentPlanAccess)&&ne.current&&Y)&&le||i("/development-plans"),e.abrupt("return",t);case 12:case"end":return e.stop()}}),e)}))),[Y,le,D]);Object(r.useEffect)((function(){var e;if(Z&&!1===L&&D&&k&&D.idpId!==k.idpId)x(null!==(e=k.idpId)&&void 0!==e?e:"").then(function(){var e=Object(l.a)(Ud().mark((function e(t){return Ud().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X.current=t.includes(p.Kd.ViewPortalCourseCatalog),ee.current=t.includes(p.Kd.ViewPortalCourseCalendar),te.current=t.includes(p.Kd.ViewPortalUserCourses),ie.current=t.includes(p.Kd.ViewPortalUserCompliance),re.current=t.includes(p.Kd.ViewPortalLearningPlans),ne.current=t.includes(p.Kd.ViewPortalDevelopmentPlans),ae.current=t.includes(p.Kd.ViewPortalTranscripts),oe.current=t.includes(p.Kd.ViewPortalInstructorView),e.t0=q,e.next=11,ce();case 11:e.t1=e.sent,(0,e.t0)(e.t1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());else if(Z&&D){var t;x(null!==(t=D.idpId)&&void 0!==t?t:"").then(function(){var e=Object(l.a)(Ud().mark((function e(t){return Ud().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X.current=t.includes(p.Kd.ViewPortalCourseCatalog),ee.current=t.includes(p.Kd.ViewPortalCourseCalendar),te.current=t.includes(p.Kd.ViewPortalUserCourses),ie.current=t.includes(p.Kd.ViewPortalUserCompliance),re.current=t.includes(p.Kd.ViewPortalLearningPlans),ne.current=t.includes(p.Kd.ViewPortalDevelopmentPlans),ae.current=t.includes(p.Kd.ViewPortalTranscripts),oe.current=t.includes(p.Kd.ViewPortalInstructorView),e.t0=q,e.next=11,ce();case 11:e.t1=e.sent,(0,e.t0)(e.t1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}),[D,x,ce,L,k,Z]);var de=function(){Object(I.a)().then((function(e){u.a.configure(e),u.a.currentSession().then((function(){u.a.currentAuthenticatedUser().then((function(e){O.k(e.signInUserSession.accessToken),O.b(1e3*e.signInUserSession.accessToken.getExpiration())}))}))}))},ue=Object(r.useCallback)((function(){var e=Hr();""!==e&&null!==e&&void 0!==e||(e=localStorage.getItem("userLoginSessionId")||""),j(e).then((function(e){w(!1===e)})).catch((function(){w(!0)}))}),[j,w]);Object(r.useEffect)((function(){Z&&T&&V&&!0===P&&ue()}),[T,V,ue,P,Z]),Object(r.useEffect)((function(){!(null===V||void 0===V?void 0:V.emailVerified)&&(null===V||void 0===V?void 0:V.userName)&&T&&!L&&C(null===V||void 0===V?void 0:V.userName)}),[T,V,L,C]),Object(r.useEffect)((function(){S.accessToken&&S.jwtExpiration0?e:void 0}(),paths:{home:"/home",signIn:"/signin",signOut:"/signout",signedOut:"/signedout",expire:z?"/expire?guid=".concat(z,"&type=").concat(W):"/expire"},routes:G,createErrorRoutes:!T||null!=B,customToolbar:n.a.createElement(he,null),customHeader:n.a.createElement(Bd,{disableChangeProfile:L}),state:{companyName:"Text"===(null===F||void 0===F?void 0:F.headerType)||""!==(null===F||void 0===F?void 0:F.headerText)?null===F||void 0===F?void 0:F.headerText:void 0,companyLogoUrl:"Logo"===(null===F||void 0===F?void 0:F.headerType)?null===F||void 0===F?void 0:F.logoUrl:void 0,authenticated:T,expired:S.isExpired,theme:v.Micron.CeManager,user:{name:"".concat(null===k||void 0===k?void 0:k.firstName," ").concat(null===k||void 0===k?void 0:k.lastName),initials:"".concat(Object(N.i)(null===k||void 0===k?void 0:k.firstName)).concat(Object(N.i)(null===k||void 0===k?void 0:k.lastName)),avatar:null===k||void 0===k||null===(o=k.userAvatar)||void 0===o?void 0:o.userAvatarThumbnailURl,menu:(null===k||void 0===k?void 0:k.userType)===p.Re.Administrator?Ld:Jd,hideSignOutLink:(null===k||void 0===k?void 0:k.userName)!==(null===D||void 0===D?void 0:D.userName)},brandingColor:F&&null!==F.color?F.color:"#013E5C"},locales:{en:{translations:y},en_acctg:{translations:m},en_legal:{translations:g},cn:{translations:f},fre:{translations:b}},keys:{froalaLicense:M},events:{onPageChanged:function(e){"/signout"!==e.location.pathname&&(S.accessToken&&S.jwtExpiration2&&void 0!==arguments[2]&&arguments[2];return function(o){var s=new n.f({learningPlanId:e,participantList:t,sendEmailConfirmation:i});return r.y.add(void 0,s).then((function(){o(Object(a.a)({message:"You have been sucessfully registered to the learning plan.",variant:"success"}))})).catch((function(e){o(Object(a.a)({message:e.detail,variant:"error"}))}))}},f=function(e,t){return function(i){return r.A.getLearningPlanRegistrationLinkDetailsByGuid(void 0,n.Lc.fromJS({guid:e,userId:t})).then((function(e){return e})).catch((function(e){throw i(Object(a.b)(e)),e}))}}},187:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var r=function(e){return{type:"SET_LOGGED_USER",payload:e}},n=function(e){return{type:"SET_AUTHENTICATED_USER",payload:e}}},199:function(e,t,i){"use strict";i.d(t,"a",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"d",(function(){return m})),i.d(t,"b",(function(){return y}));i(138),i(353);var r=i(173),n=i(207),a=i(250),o=(i(155),i(128)),s=i(15),l=i(187),c=i(133),d=i(68),u=i(210),h=i(204),v=i(102),p=function(e,t,i){return function(n){var o;n(Object(l.b)(null)),n(Object(l.a)(null)),n(r.n(e)),n(g((null===e||void 0===e?void 0:e.idpId)||"-",null!==t&&void 0!==t?t:"")),n(a.a(t)),n(Object(h.b)()),n(Object(c.c)(!0)),n(Object(d.a)(null!==(o=null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.idpId)&&void 0!==o?o:"-")),n(Object(u.c)("admin"===i)),n(Object(v.g)())}},f=function(e){return function(t){t(r.n(e)),t(o.g((null===e||void 0===e?void 0:e.idpId)||"-")),t(a.a()),t(Object(h.b)()),t(Object(c.c)(!0)),t(Object(d.a)((null===e||void 0===e?void 0:e.idpId)||"-")),t(Object(v.g)())}},m=function(){return function(e){e(n.b(null)),e(Object(l.b)(null)),e(r.o())}},y=function(e,t,i){return function(n){var o;return n(r.n(e)),n(g((null===e||void 0===e?void 0:e.idpId)||"-",null!==t&&void 0!==t?t:"")),n(a.a()),n(Object(h.b)()),n(Object(c.c)(!0)),n(Object(d.a)(null!==(o=null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.idpId)&&void 0!==o?o:"-")),n(Object(u.c)("admin"===i)),n(Object(v.g)()),!0}},g=function(e,t){return function(i){return s.ab.getByIdpId(""===t?e:t,void 0).then((function(t){s.ab.getByIdpId(e,void 0).then((function(e){return i(Object(l.b)(t)),i(Object(l.a)(e)),t}))})).catch((function(e){throw e}))}}},200:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));var r=i(252),n=function(){return{type:r.a,payload:null}},a=function(e){return{type:r.b,payload:e}}},204:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s}));var r=i(134),n=i(15),a=i(34),o=function(){return function(e){return e(r.a(null)),n.E.getAllFirmLicenses(void 0).then((function(t){return e(r.a(t.licenses)),t.licenses})).catch((function(t){throw e(r.a([])),e(Object(a.b)(t)),t}))}},s=function(){return function(e){return e(r.c(null)),n.E.getUserLicenseLimitation(void 0).then((function(t){e(r.c(t))})).catch((function(){e(r.c([]))}))}}},207:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));var r=i(251),n=function(e){return{type:r.a,payload:e}},a=function(e){return{type:r.b,payload:e}}},208:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a}));var r="GET_FIRM_LICENSES",n="SET_SELECTED_FIRM_LICENSES",a="SET_USER_LICENSE_LIMITATIONS"},210:function(e,t,i){"use strict";i(515);var r=i(326);i.d(t,"b",(function(){return r.a})),i.d(t,"c",(function(){return r.b})),i.d(t,"d",(function(){return r.d}));i(143);var n=i(248);i.d(t,"a",(function(){return n.a}))},226:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var r="ADD_NOTIFICATION",n="REMOVE_NOTIFICATION"},229:function(e,t,i){"use strict";var r=i(320);i.d(t,"a",(function(){return r.a}))},230:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return s}));var r=i(172),n=function(e){return{type:r.a,payload:e}},a=function(e){return{type:r.d,payload:e}},o=function(e){return{type:r.c,payload:e}},s=function(e){return{type:r.b,payload:e}}},248:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return c}));var r=i(326),n=i(15),a=i(7),o=i(34),s=function(e){return function(t){return n.ab.getByIdpId(e,void 0).then((function(e){return t(r.c(e)),e})).catch((function(e){throw e}))}},l=function(e){var t=Array(),i=Array();i.push("UserStatus: 1");var r=null!==e&&void 0!==e?e:new a.zc({filterBy:t,searchCriteria:i,sortBy:"firstName",page:1,pageSize:-1});return function(e){return n.ab.getAll(void 0,a.zc.fromJS(r)).then((function(e){return e})).catch((function(t){return e(Object(o.b)(t)),t}))}},c=function(e){return function(t){return n.R.mergeCertificate(void 0,a.Hd.fromJS(e)).then((function(e){var t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=t,i.setAttribute("download",e.fileName||"file"),document.body.appendChild(i),i.click(),i.remove()})).catch((function(){t(Object(o.a)({message:"Invalid File",variant:"warning"}))}))}}},250:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var r=i(207),n=i(15),a=i(16),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){return t(r.b(null)),n.I.getUserPermissionSets(e,void 0).then((function(e){return t(r.b(e)),e})).catch((function(e){t(r.b([])),t(Object(a.b)(e))}))}}},251:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var r="SET_PERMISSION_SETS",n="SET_USER_PERMISSIONS"},252:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var r="SHOW_CONFIRM",n="CLOSE_CONFIRM"},253:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var r="SET_FORMATS",n="SET_LOADING"},254:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var r="SET_DEVELOPMENT_PLANS",n="SET_PRINT_REQUEST"},260:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return a})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return s}));var r=i(171),n=function(e){return{type:r.b,payload:e}},a=function(e){return{type:r.a,payload:e}},o=function(e){return{type:r.d,payload:e}},s=function(e){return{type:r.c,payload:e}}},31:function(e,t,i){"use strict";var r=i(12);t.a=function(e,t){return Object(r.a)(Object(r.a)({},e),t)}},320:function(e,t,i){"use strict";i.d(t,"a",(function(){return R}));var r=i(185),n=i(1030),a=i(1032),o=i(507),s=i(508),l=i(120),c=i(31),d={loading:!1,portalCalendarSessions:null,portalSessionFilterRequestBody:null,savedCalendarFilterId:0,savedCalendarFilters:null,selectedSessionFilters:null,selectedSession:null,NYLocation:["Outside New York State"]},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.a:return Object(c.a)(e,{loading:t.payload});case l.c:return Object(c.a)(e,{portalCalendarSessions:t.payload});case l.d:return Object(c.a)(e,{portalSessionFilterRequestBody:t.payload});case l.f:return Object(c.a)(e,{savedCalendarFilterId:t.payload});case l.e:return Object(c.a)(e,{savedCalendarFilters:t.payload});case l.h:return Object(c.a)(e,{selectedSessionFilters:t.payload});case l.g:return Object(c.a)(e,{selectedSession:t.payload});case l.b:return Object(c.a)(e,{NYLocation:t.payload});default:return e}},h=i(50),v=i(350),p=i(84),f={filters:[],savedFilterId:0,savedFilters:null,searchOptionTextFilter:"",searchOptionCategories:[],searchOptionFavoritesOnly:!1,searchRequestBody:null,searchResultsLoading:!1,searchResults:null,searchResultsCount:null},m=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case p.b:return Object(c.a)(t,{filters:i.payload});case p.d:return Object(c.a)(t,{savedFilterId:i.payload});case p.c:return Object(c.a)(t,{savedFilters:i.payload});case p.g:return Object(c.a)(t,{searchOptionTextFilter:i.payload});case p.e:return Object(c.a)(t,{searchOptionCategories:i.payload});case p.f:return Object(c.a)(t,{searchOptionFavoritesOnly:i.payload});case p.h:return Object(c.a)(t,{searchRequestBody:i.payload});case p.k:return Object(c.a)(t,{searchResultsLoading:i.payload});case p.i:return Object(c.a)(t,{searchResults:i.payload});case p.j:return Object(c.a)(t,{searchResultsCount:i.payload});case p.a:return Object(c.a)(t,{searchResults:Object(v.a)(Object(h.a)(null!==(e=t.searchResults)&&void 0!==e?e:[]),(function(e){var r=e.findIndex((function(e){return e.courseId===i.payload.courseId}));-1!==r&&(e[r].userFavorite=i.payload.favorite,t.searchOptionFavoritesOnly&&e.splice(r,1))}))});default:return t}},y=i(175),g={courseDetailLoading:!1,courseDetail:null,courseSessionsLoading:!1,courseSessions:null},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case y.c:return Object(c.a)(e,{courseDetailLoading:t.payload});case y.a:return Object(c.a)(e,{courseDetail:t.payload});case y.e:return Object(c.a)(e,{courseSessionsLoading:t.payload});case y.d:return Object(c.a)(e,{courseSessions:t.payload});case y.b:return Object(c.a)(e,{courseDetail:t.payload});default:return e}},S=i(176),E={evaluations:null,formNumberExcludes:null,formNumberStyles:null,requestBody:null,questionTypes:null},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case S.a:return Object(c.a)(e,{evaluations:t.payload});case S.d:return Object(c.a)(e,{formNumberExcludes:t.payload});case S.e:return Object(c.a)(e,{formNumberStyles:t.payload});case S.c:return Object(c.a)(e,{requestBody:t.payload});case S.b:return Object(c.a)(e,{questionTypes:t.payload});default:return e}},O=i(509),C=i(510),x=i(511),j=i(512),w=i(513),P=i(514),T=i(515),A=i(516),N=i(517),k=i(518),D=i(102),L=i(520),J=i(521),F=Object(n.composeWithDevTools)(Object(r.applyMiddleware)((function(e){var t=e.getState;return function(e){return function(i){var r=e(i);return localStorage.setItem("portal-stored-state-v4",JSON.stringify(t())),r}}}),a.a)),B=Object(r.combineReducers)({authentication:o.a,confirm:s.a,catalog:m,catalogDrawer:b,compliance:J.a,developmentPlan:L.a,evaluationForms:I,formats:O.a,generalSettings:N.a,learningPlans:C.a,library:x.a,licenses:j.a,notification:w.a,permissionSets:P.a,reports:D.a,sessions:u,portalSettings:k.a,systemTables:A.a,users:T.a}),R=Object(r.createStore)((function(e,t){return"SIGNOUT"===t.type?(localStorage.clear(),B(void 0,t)):B(e,t)}),function(){var e=localStorage.getItem("portal-stored-state-v4");if(null!==e)return JSON.parse(e)}(),F)},323:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var r="SET_FILES_TO_UPLOAD"},324:function(e,t,i){"use strict";var r=i(0),n=i(22);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return Object(r.useCallback)(Object(n.debounce)(e,t),[e,t])}},325:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var r="SET_SELECTED_COMPLIANCE_REPORT_TO_PRINT"},326:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return a})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"e",(function(){return l}));var r=i(143),n=function(e){return{type:r.d,payload:e}},a=function(e){return{type:r.e,payload:e}},o=function(e){return{type:r.b,payload:e}},s=function(e){return{type:r.c,payload:e}},l=function(e){return{type:r.f,payload:e}}},327:function(e,t,i){"use strict";var r=i(164);i.d(t,"a",(function(){return r.a}))},34:function(e,t,i){"use strict";i.d(t,"a",(function(){return r.a})),i.d(t,"b",(function(){return r.b}));i(513);var r=i(16);i(226)},40:function(e,t,i){"use strict";i.d(t,"l",(function(){return l})),i.d(t,"h",(function(){return d})),i.d(t,"i",(function(){return u})),i.d(t,"j",(function(){return h})),i.d(t,"e",(function(){return v})),i.d(t,"c",(function(){return p})),i.d(t,"g",(function(){return f})),i.d(t,"f",(function(){return m})),i.d(t,"a",(function(){return y})),i.d(t,"b",(function(){return g})),i.d(t,"d",(function(){return b})),i.d(t,"k",(function(){return S}));var r=i(8),n=i(184),a=i(33),o=i.n(a),s=function(){var e=n.a.getItem("preferences");return null!=e?e:{timezone:"",dateFormat:""}},l=function(){var e=s().dateFormat;return""!==e?e:"MM/DD/YYYY"},c=function(e){var t,i="DD"===l().split(/[-./]/g)[0];if("Invalid Date"===(t=o()(e).isValid()?o()(e).toDate():new Date(e)).toString()||i){if(/\d[-./]\d/g.test(e)){var n=e.split(/[-./]/g),a=Object(r.a)(n,3),s=a[0],c=a[1],d=a[2];return i&&parseInt(c,10)>12?new Date("".concat(s,"/").concat(c,"/").concat(d)):parseInt(s,10)>31?new Date("".concat(c,"/").concat(d,"/").concat(s)):new Date("".concat(c,"/").concat(s,"/").concat(d))}if(o()(e).isValid())return o()(e).toDate()}return t},d=function(e){var t=e?e instanceof Date?e:c(e):void 0;if(t){var i=6e4*(t=new Date(t.setHours(0,0,0,0))).getTimezoneOffset();return i=i<0?Math.abs(i):i,new Date(new Date(t).getTime()+i)}return new Date},u=function(e){return d(e).toISOString().split("T")[0].trim()},h=function(e){return function(e){var t=e?e instanceof Date?e:c(e):void 0;if(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()));return new Date(i)}return new Date}(e).toISOString().trim()},v=function(e,t){var i=s().dateFormat,r=null!==i&&void 0!==i?i:"";return void 0!==e&&null!==e?r?o()(e).format(r):t?o()(e).format(t):o()(e).format("MM/DD/YYYY"):"-"},p=function(e){var t="",i="",n="",a=e,o=e.match("[0-9]{2}([-/ .])[0-9]{2}[-/ .][0-9]{4}");if(null!==o){var s=o[0].split(o[1]),c=Object(r.a)(s,3);i=c[0],t=c[1],n=c[2]}if(Number(i)>12){var d=t;t=i,i=d}if(""!==i&&""!==t&&""!==n){var u="".concat(i,"/").concat(t,"/").concat(n),h=v(u,l());a=e.replace(u,h)}return a},f=function(e){var t="DD"===l().split(/[-./]/g)[0];if(void 0!==e&&null!==e){var i=l().includes("/")?"/":l().includes("-")?"-":".";return o()(e).format(t?"DD".concat(i,"MM"):"MM".concat(i,"DD"))}return"-"},m=function(e){return void 0!==e&&null!==e?o()(e).format("YYYY-MM-DD"):"-"},y=function(e,t){var i=new Date(e);return i.setDate(i.getDate()+t),i},g=function(e,t){var i=new Date(e);return i.setMonth(i.getMonth()+t),i},b=function(e,t,i,r){if(void 0===i||void 0===r)return"";var n,a=o()(i,"HH:mm:ss a"),s=o()(r,"HH:mm:ss a"),l=o()(e).set({hour:a.get("hour"),minute:a.get("minute"),second:0,millisecond:0}),c=o()(t).set({hour:s.get("hour"),minute:s.get("minute"),second:0,millisecond:0}),d=o.a.duration(c.diff(l));return(n=parseInt("".concat(d.asMinutes()),10))>0?"".concat(n," minute").concat(1===n?"":"s"):""},S=function(e,t){var i="",r=0;if(""!==e||""!==t){var n=o()(e,"HH:mm:ss a"),a=o()(t,"HH:mm:ss a"),s=o.a.duration(a.diff(n));i=(r=parseInt("".concat(s.asMinutes()),10))>0?"".concat(r," minute").concat(1===r?"":"s"):""}return i}},439:function(e,t,i){"use strict";i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return c}));var r=i(15),n=i(7),a=i(34),o=i(230),s=function(e){return function(t,i){var o,s=i().users.loggedUser,l=null!==(o=(null===s||void 0===s?void 0:s.userRole)&&(null===s||void 0===s?void 0:s.userRole[0].roleId))&&void 0!==o?o:0;return r.J.getScreenInformation(void 0,n.Vc.fromJS({roleId:l,portalScreen:e})).then((function(e){return e})).catch((function(e){throw t(Object(a.b)(e)),e}))}},l=function(e){return function(t){var i=r.J.getPortalBranding(e,void 0);return t(Object(o.a)(void 0)),t(Object(o.b)(!0)),i.then((function(e){t(Object(o.a)(e))})).catch((function(e){t(Object(a.b)(e))}))}},c=function(){return function(e,t){var i=t().users,s=i.loggedUser,l=i.authenticatedUser,c=void 0!==s&&null!==s&&s.userRole?s.userRole[0].roleId:void 0!==l&&null!==l&&l.userRole?l.userRole[0].roleId:0,d=r.J.getRoleElearningSetting(void 0,n.Uc.fromJS({roleId:c}));return e(Object(o.d)(null)),d.then((function(t){var i,r,n,a,s,l,c,d,u,h,v,p,f,m,y,g,b,S,E={departmentIds:null!==(i=t.portalDepartmentFilterIds)&&void 0!==i?i:[],levelIds:null!==(r=t.portalLevelFilterIds)&&void 0!==r?r:[],practiceAreaIds:null!==(n=t.portalPracticeAreaFilterIds)&&void 0!==n?n:[],locationIds:null!==(a=t.portalLocationFilterIds)&&void 0!==a?a:[],providerIds:null!==(s=t.portalProviderFilterIds)&&void 0!==s?s:[],competencyIds:null!==(l=t.portalCompetencyFilterIds)&&void 0!==l?l:[],classYearIds:null!==(c=t.portalClassYearFilterIds)&&void 0!==c?c:[],tagIds:null!==(d=t.portalTagFilterIds)&&void 0!==d?d:[],courseFormatIds:null!==(u=t.portalCourseFormatFilterIds)&&void 0!==u?u:[]},I={departmentIds:null!==(h=t.portalCalendarDepartmentFilterIds)&&void 0!==h?h:[],levelIds:null!==(v=t.portalCalendarLevelFilterIds)&&void 0!==v?v:[],practiceAreaIds:null!==(p=t.portalCalendarPracticeAreaFilterIds)&&void 0!==p?p:[],locationIds:null!==(f=t.portalCalendarLocationFilterIds)&&void 0!==f?f:[],providerIds:null!==(m=t.portalCalendarProviderFilterIds)&&void 0!==m?m:[],competencyIds:null!==(y=t.portalCalendarCompetencyFilterIds)&&void 0!==y?y:[],classYearIds:null!==(g=t.portalCalendarClassYearFilterIds)&&void 0!==g?g:[],tagIds:null!==(b=t.portalCalendarTagFilterIds)&&void 0!==b?b:[],courseFormatIds:null!==(S=t.portalCalendarCourseFormatFilterIds)&&void 0!==S?S:[]};e(Object(o.d)(E)),e(Object(o.c)(I))})).catch((function(t){e(Object(a.b)(t))}))}}},447:function(e,t,i){"use strict";t.a=function(){var e=window.location.hostname.split(".");return e&&e.length>0?e[0]:"localhost"}},507:function(e,t,i){"use strict";var r=i(31),n=i(61),a={authenticated:!1,accessToken:"",idpId:"",jwtExpiration:0,userName:"",isExpired:!1,cancelTokenSource:void 0,cancelToken:void 0};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.o:return Object(r.a)(e,t.payload);case n.p:return Object(r.a)(e,{authenticated:!1,accessToken:"",jwtExpiration:0});case n.a:return Object(r.a)(e,t.payload);case n.n:return Object(r.a)(e,{accessToken:t.payload});case n.b:return Object(r.a)(e,{adminRedirectIdpId:t.payload});case n.k:return Object(r.a)(e,{redirectUrl:t.payload});case n.m:return Object(r.a)(e,{source:t.payload});case n.f:return Object(r.a)(e,{guid:t.payload});case n.j:return Object(r.a)(e,{redirectionType:t.payload});case n.l:return Object(r.a)(e,{refreshToken:t.payload});case n.e:return Object(r.a)(e,{clientId:t.payload});case n.i:return Object(r.a)(e,{jwtExpiration:t.payload});case n.g:return Object(r.a)(e,{isExpired:t.payload});case n.h:return Object(r.a)(e,{isUserAccessTokenAdded:t.payload});case n.d:return Object(r.a)(e,{cancelTokenSource:t.payload});case n.c:return Object(r.a)(e,{cancelToken:t.payload});default:return e}}},508:function(e,t,i){"use strict";var r=i(252),n=i(31),a={message:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return Object(n.a)(e,{message:t.payload});case r.a:return Object(n.a)(e,{message:null});default:return e}}},509:function(e,t,i){"use strict";var r=i(253),n=i(31),a={formats:null,loading:!1};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:return Object(n.a)(e,{formats:t.payload});case r.b:return Object(n.a)(e,{loading:t.payload});default:return e}}},510:function(e,t,i){"use strict";var r=i(135),n=i(31),a={learningPlans:null,selectedLearningPlan:null,recordCount:0,learningPlanLoading:!1,catalogRequestBody:null,requestBody:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:return Object(n.a)(e,{learningPlans:t.payload});case r.f:return Object(n.a)(e,{selectedLearningPlan:t.payload});case r.e:return Object(n.a)(e,{learningPlanLoading:t.payload});case r.b:return Object(n.a)(e,{catalogRequestBody:t.payload});case r.d:return Object(n.a)(e,{requestBody:t.payload});case r.c:return Object(n.a)(e,{recordCount:t.payload});default:return e}}},511:function(e,t,i){"use strict";var r=i(323),n=i(31),a={filesToUpdate:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:return Object(n.a)(e,{filesToUpdate:t.payload});default:return e}}},512:function(e,t,i){"use strict";var r=i(31),n=i(208),a={licenses:null,firmLicenses:null,selectedFirmLicenses:null,selectedLicenseValues:null,trackLicense:!1,userLicenseLimitations:null,loading:!1};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.a:return Object(r.a)(e,{firmLicenses:t.payload});case n.b:return Object(r.a)(e,{selectedFirmLicenses:t.payload});case n.c:return Object(r.a)(e,{userLicenseLimitations:t.payload});default:return e}}},513:function(e,t,i){"use strict";var r=i(226),n=i(31),a={message:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:return Object(n.a)(e,{message:t.payload});case r.b:return Object(n.a)(e,{message:null});default:return e}}},514:function(e,t,i){"use strict";var r=i(31),n=i(251),a={permissionSets:null,userPermissionSets:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.a:return Object(r.a)(e,{permissionSets:t.payload});case n.b:return Object(r.a)(e,{userPermissionSets:t.payload});default:return e}}},515:function(e,t,i){"use strict";var r=i(680),n=i.n(r),a=i(143),o=i(31),s={loggedUser:null,isImpersonated:!1,authenticatedUser:null,multipleCertificatePrintRequest:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.d:return Object(o.a)(e,{loggedUser:t.payload});case a.c:return Object(o.a)(e,{isImpersonated:t.payload});case a.a:return Object(o.a)(e,{authenticatedUser:t.payload});case a.e:return n()(e,{loggedUser:{userAvatar:{$set:t.payload}}});case a.b:return n()(e,{authenticatedUser:{userAvatar:{$set:t.payload}}});case a.f:return Object(o.a)(e,{multipleCertificatePrintRequest:t.payload});default:return e}}},516:function(e,t,i){"use strict";var r=i(150),n=i(31),a={countries:null,states:null,timezones:null,counties:null,dateFormats:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.b:return Object(n.a)(e,{countries:t.payload});case r.d:return Object(n.a)(e,{states:t.payload});case r.e:return Object(n.a)(e,{timezones:t.payload});case r.a:return Object(n.a)(e,{counties:t.payload});case r.c:return Object(n.a)(e,{dateFormats:t.payload});default:return e}}},517:function(e,t,i){"use strict";var r=i(31),n=i(171),a={firm:null,firmName:null,passwordPolicy:null,isPasswordPolicyLoading:!0,learningSettings:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.a:return Object(r.a)(e,{firm:t.payload});case n.b:return Object(r.a)(e,{firmName:t.payload});case n.d:return Object(r.a)(e,{passwordPolicy:t.payload});case n.c:return Object(r.a)(e,{learningSettings:t.payload});default:return e}}},518:function(e,t,i){"use strict";var r=i(14),n=i(172),a={branding:null,courseFilters:null,calendarFilters:null,isInitialLoad:!0};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.a:return Object(r.j)(e,{branding:t.payload});case n.d:return Object(r.j)(e,{courseFilters:t.payload});case n.c:return Object(r.j)(e,{calendarFilters:t.payload});case n.b:return Object(r.j)(e,{isInitialLoad:t.payload});default:return e}}},519:function(e,t,i){"use strict";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===e||void 0===e?void 0:e.replace(/\s+/," ").split(" ").slice(0,2).map((function(e){return e&&e[0].toUpperCase()})).join("")}},520:function(e,t,i){"use strict";var r=i(12),n=i(31),a=i(254),o={devPlanState:null,printRequestBody:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.a:return Object(n.a)(e,Object(r.a)(Object(r.a)({},e),{},{devPlanState:t.payload}));case a.b:return Object(n.a)(e,{printRequestBody:t.payload});default:return e}}},521:function(e,t,i){"use strict";var r=i(31),n=i(325),a={selectedComplianceReportToPrint:null};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.a:return Object(r.a)(e,{selectedComplianceReportToPrint:t.payload});default:return e}}},522:function(e,t,i){"use strict";i.d(t,"c",(function(){return h})),i.d(t,"b",(function(){return v})),i.d(t,"a",(function(){return p}));var r=i(45),n=i(184),a=(i(7),i(15)),o=i(260),s=i(16),l=i(133);function c(){c=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(w){s=function(e,t,i){return e[t]=i}}function l(e,t,i,r){var n=t&&t.prototype instanceof h?t:h,a=Object.create(n.prototype),o=new C(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return j()}for(i.method=n,i.arg=a;;){var o=i.delegate;if(o){var s=E(o,i);if(s){if(s===u)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=d(e,t,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function d(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(w){return{type:"throw",arg:w}}}e.wrap=l;var u={};function h(){}function v(){}function p(){}var f={};s(f,n,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,n)&&(f=y);var g=p.prototype=h.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;this._invoke=function(n,a){function o(){return new t((function(r,o){!function r(n,a,o,s){var l=d(e[n],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}(n,a,r,o)}))}return r=r?r.then(o,o):o()}}function E(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=d(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function x(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;O(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:x(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},e}var d=function(){var e=Object(r.a)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.u.get("v1");case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=Object(r.a)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.ab.getUserPreferences(void 0);case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){var i={dateFormat:"",timezone:""};return null!==n.a.getItem("preferences")&&e&&n.a.removeItem("preferences"),e&&u().then((function(e){var t,r;e&&(i.dateFormat=null!==(t=e.dateFormat)&&void 0!==t?t:"",i.timezone=null!==(r=e.timezone)&&void 0!==r?r:"")})),t(Object(o.a)(null)),d().then((function(r){var a,s,l;e&&(i.dateFormat=null!==(s=""!==i.dateFormat?i.dateFormat:r.dateFormat)&&void 0!==s?s:"",i.timezone=null!==(l=""!==i.timezone?i.timezone:r.timezone)&&void 0!==l?l:"",n.a.setItem("preferences",i));return t(Object(o.a)(r)),t(Object(o.b)(null!==(a=null===r||void 0===r?void 0:r.name)&&void 0!==a?a:"")),r})).catch((function(e){t(Object(s.b)(e))}))}},v=function(){return function(){var e=Object(r.a)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(Object(o.d)(null)),e.next=3,a.H.getPasswordPolicy(void 0).then((function(e){t(Object(o.d)(e))})).catch((function(e){t(Object(s.a)({message:e.detail,variant:"error"}))}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},p=function(){return function(){var e=Object(r.a)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.B.getAll(void 0).then((function(e){return t(Object(l.d)(e)),e})).catch((function(e){t(Object(s.b)(e))}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},61:function(e,t,i){"use strict";i.d(t,"o",(function(){return r})),i.d(t,"p",(function(){return n})),i.d(t,"a",(function(){return a})),i.d(t,"n",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"k",(function(){return l})),i.d(t,"m",(function(){return c})),i.d(t,"f",(function(){return d})),i.d(t,"j",(function(){return u})),i.d(t,"l",(function(){return h})),i.d(t,"e",(function(){return v})),i.d(t,"i",(function(){return p})),i.d(t,"g",(function(){return f})),i.d(t,"h",(function(){return m})),i.d(t,"d",(function(){return y})),i.d(t,"c",(function(){return g}));var r="SIGNIN",n="SIGNOUT",a="INITIALIZE",o="SET_TOKEN",s="SET_ADMINREDIRECTIDPID",l="SET_REDIRECTURL",c="SET_SOURCE",d="SET_GUID",u="SET_REDIRECTION_TYPE",h="SET_REFRESH_TOKEN",v="SET_CLIENT_ID",p="SET_JWTEXPIRATION",f="SET_ISEXPIRED",m="SET_IS_USER_ACCESS_TOKEN_ADDED",y="SET_CANCEL_TOKEN_SOURCE",g="SET_CANCEL_TOKEN"},68:function(e,t,i){"use strict";i(518);var r=i(230);i.d(t,"d",(function(){return r.b}));i(172);var n=i(439);i.d(t,"a",(function(){return n.a})),i.d(t,"b",(function(){return n.b})),i.d(t,"c",(function(){return n.c}))},7:function(e,t,i){"use strict";i.d(t,"a",(function(){return h})),i.d(t,"d",(function(){return v})),i.d(t,"b",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"k",(function(){return m})),i.d(t,"l",(function(){return y})),i.d(t,"m",(function(){return g})),i.d(t,"q",(function(){return b})),i.d(t,"r",(function(){return S})),i.d(t,"s",(function(){return E})),i.d(t,"t",(function(){return I})),i.d(t,"v",(function(){return O})),i.d(t,"x",(function(){return C})),i.d(t,"y",(function(){return x})),i.d(t,"A",(function(){return j})),i.d(t,"z",(function(){return w})),i.d(t,"D",(function(){return P})),i.d(t,"E",(function(){return T})),i.d(t,"J",(function(){return A})),i.d(t,"F",(function(){return N})),i.d(t,"G",(function(){return k})),i.d(t,"H",(function(){return D})),i.d(t,"I",(function(){return L})),i.d(t,"kb",(function(){return J})),i.d(t,"lb",(function(){return F})),i.d(t,"mb",(function(){return B})),i.d(t,"Db",(function(){return R})),i.d(t,"Eb",(function(){return U})),i.d(t,"Fb",(function(){return G})),i.d(t,"Gb",(function(){return q})),i.d(t,"Jb",(function(){return M})),i.d(t,"Kb",(function(){return z})),i.d(t,"Pb",(function(){return W})),i.d(t,"Mb",(function(){return V})),i.d(t,"Nb",(function(){return _})),i.d(t,"Ob",(function(){return Y})),i.d(t,"Qb",(function(){return $})),i.d(t,"Rb",(function(){return H})),i.d(t,"Tb",(function(){return K})),i.d(t,"Sb",(function(){return Q})),i.d(t,"Ub",(function(){return Z})),i.d(t,"Vb",(function(){return X})),i.d(t,"Wb",(function(){return ee})),i.d(t,"md",(function(){return te})),i.d(t,"nd",(function(){return ie})),i.d(t,"od",(function(){return re})),i.d(t,"td",(function(){return ne})),i.d(t,"qd",(function(){return ae})),i.d(t,"sd",(function(){return oe})),i.d(t,"vd",(function(){return se})),i.d(t,"xd",(function(){return le})),i.d(t,"zd",(function(){return ce})),i.d(t,"Bd",(function(){return de})),i.d(t,"Cd",(function(){return ue})),i.d(t,"Ed",(function(){return he})),i.d(t,"Fd",(function(){return ve})),i.d(t,"Jd",(function(){return pe})),i.d(t,"Ld",(function(){return fe})),i.d(t,"Nd",(function(){return me})),i.d(t,"Od",(function(){return ye})),i.d(t,"Pd",(function(){return ge})),i.d(t,"Qd",(function(){return be})),i.d(t,"Rd",(function(){return Se})),i.d(t,"Ud",(function(){return Ee})),i.d(t,"Vd",(function(){return Ie})),i.d(t,"Wd",(function(){return Oe})),i.d(t,"Xd",(function(){return Ce})),i.d(t,"ae",(function(){return xe})),i.d(t,"be",(function(){return je})),i.d(t,"ce",(function(){return we})),i.d(t,"de",(function(){return Pe})),i.d(t,"ne",(function(){return Te})),i.d(t,"je",(function(){return Ae})),i.d(t,"qe",(function(){return Ne})),i.d(t,"se",(function(){return ke})),i.d(t,"te",(function(){return De})),i.d(t,"Qe",(function(){return Le})),i.d(t,"Ie",(function(){return Je})),i.d(t,"Je",(function(){return Fe})),i.d(t,"Le",(function(){return Be})),i.d(t,"Oe",(function(){return Re})),i.d(t,"Pe",(function(){return Ue})),i.d(t,"e",(function(){return et})),i.d(t,"f",(function(){return tt})),i.d(t,"g",(function(){return it})),i.d(t,"h",(function(){return rt})),i.d(t,"i",(function(){return nt})),i.d(t,"j",(function(){return at})),i.d(t,"n",(function(){return r})),i.d(t,"o",(function(){return vt})),i.d(t,"p",(function(){return gt})),i.d(t,"u",(function(){return St})),i.d(t,"w",(function(){return zt})),i.d(t,"B",(function(){return Ut})),i.d(t,"C",(function(){return Oi})),i.d(t,"K",(function(){return nr})),i.d(t,"L",(function(){return ar})),i.d(t,"M",(function(){return or})),i.d(t,"N",(function(){return sr})),i.d(t,"O",(function(){return lr})),i.d(t,"P",(function(){return cr})),i.d(t,"Q",(function(){return dr})),i.d(t,"R",(function(){return ur})),i.d(t,"S",(function(){return hr})),i.d(t,"T",(function(){return vr})),i.d(t,"U",(function(){return pr})),i.d(t,"V",(function(){return fr})),i.d(t,"W",(function(){return mr})),i.d(t,"X",(function(){return yr})),i.d(t,"Y",(function(){return gr})),i.d(t,"Z",(function(){return br})),i.d(t,"ab",(function(){return Sr})),i.d(t,"bb",(function(){return Er})),i.d(t,"cb",(function(){return Ir})),i.d(t,"db",(function(){return Or})),i.d(t,"eb",(function(){return Cr})),i.d(t,"fb",(function(){return xr})),i.d(t,"gb",(function(){return jr})),i.d(t,"hb",(function(){return wr})),i.d(t,"ib",(function(){return Pr})),i.d(t,"jb",(function(){return Ei})),i.d(t,"nb",(function(){return Ur})),i.d(t,"ob",(function(){return Gr})),i.d(t,"pb",(function(){return qr})),i.d(t,"qb",(function(){return Mr})),i.d(t,"rb",(function(){return zr})),i.d(t,"sb",(function(){return Wr})),i.d(t,"tb",(function(){return Vr})),i.d(t,"ub",(function(){return _r})),i.d(t,"vb",(function(){return Yr})),i.d(t,"wb",(function(){return $r})),i.d(t,"xb",(function(){return Hr})),i.d(t,"yb",(function(){return Kr})),i.d(t,"zb",(function(){return Qr})),i.d(t,"Ab",(function(){return Zr})),i.d(t,"Bb",(function(){return Xr})),i.d(t,"Cb",(function(){return en})),i.d(t,"Hb",(function(){return mn})),i.d(t,"Ib",(function(){return ln})),i.d(t,"Lb",(function(){return qn})),i.d(t,"Xb",(function(){return Ea})),i.d(t,"Yb",(function(){return Ia})),i.d(t,"Zb",(function(){return Oa})),i.d(t,"ac",(function(){return Ca})),i.d(t,"bc",(function(){return xa})),i.d(t,"cc",(function(){return ja})),i.d(t,"dc",(function(){return wa})),i.d(t,"ec",(function(){return Pa})),i.d(t,"fc",(function(){return Ta})),i.d(t,"gc",(function(){return Aa})),i.d(t,"hc",(function(){return Na})),i.d(t,"ic",(function(){return ka})),i.d(t,"jc",(function(){return Da})),i.d(t,"kc",(function(){return La})),i.d(t,"lc",(function(){return Ja})),i.d(t,"mc",(function(){return Fa})),i.d(t,"nc",(function(){return Ba})),i.d(t,"oc",(function(){return Ra})),i.d(t,"pc",(function(){return Ua})),i.d(t,"qc",(function(){return Ga})),i.d(t,"rc",(function(){return qa})),i.d(t,"sc",(function(){return Ma})),i.d(t,"tc",(function(){return za})),i.d(t,"uc",(function(){return Wa})),i.d(t,"vc",(function(){return Va})),i.d(t,"wc",(function(){return _a})),i.d(t,"xc",(function(){return Ya})),i.d(t,"zc",(function(){return $a})),i.d(t,"yc",(function(){return Ha})),i.d(t,"Ac",(function(){return Ka})),i.d(t,"Bc",(function(){return Qa})),i.d(t,"Cc",(function(){return Za})),i.d(t,"Dc",(function(){return Xa})),i.d(t,"Ec",(function(){return eo})),i.d(t,"Fc",(function(){return to})),i.d(t,"Gc",(function(){return io})),i.d(t,"Hc",(function(){return ro})),i.d(t,"Ic",(function(){return no})),i.d(t,"Jc",(function(){return ao})),i.d(t,"Kc",(function(){return oo})),i.d(t,"Lc",(function(){return so})),i.d(t,"Mc",(function(){return lo})),i.d(t,"Nc",(function(){return co})),i.d(t,"Oc",(function(){return uo})),i.d(t,"Pc",(function(){return ho})),i.d(t,"Qc",(function(){return vo})),i.d(t,"Rc",(function(){return po})),i.d(t,"Sc",(function(){return fo})),i.d(t,"Tc",(function(){return mo})),i.d(t,"Uc",(function(){return yo})),i.d(t,"Vc",(function(){return go})),i.d(t,"Wc",(function(){return bo})),i.d(t,"Xc",(function(){return So})),i.d(t,"Yc",(function(){return Eo})),i.d(t,"Zc",(function(){return Io})),i.d(t,"ad",(function(){return Oo})),i.d(t,"bd",(function(){return Co})),i.d(t,"cd",(function(){return xo})),i.d(t,"dd",(function(){return jo})),i.d(t,"ed",(function(){return wo})),i.d(t,"fd",(function(){return Po})),i.d(t,"gd",(function(){return To})),i.d(t,"hd",(function(){return Ao})),i.d(t,"id",(function(){return No})),i.d(t,"jd",(function(){return ko})),i.d(t,"kd",(function(){return Do})),i.d(t,"ld",(function(){return Lo})),i.d(t,"pd",(function(){return Rs})),i.d(t,"rd",(function(){return ys})),i.d(t,"ud",(function(){return rl})),i.d(t,"wd",(function(){return ul})),i.d(t,"yd",(function(){return gl})),i.d(t,"Ad",(function(){return vl})),i.d(t,"Dd",(function(){return jl})),i.d(t,"Gd",(function(){return Ml})),i.d(t,"Hd",(function(){return $l})),i.d(t,"Id",(function(){return Yl})),i.d(t,"Kd",(function(){return oc})),i.d(t,"Md",(function(){return cc})),i.d(t,"Sd",(function(){return bc})),i.d(t,"Td",(function(){return zc})),i.d(t,"Yd",(function(){return Gd})),i.d(t,"Zd",(function(){return qd})),i.d(t,"ee",(function(){return xu})),i.d(t,"fe",(function(){return ju})),i.d(t,"ge",(function(){return Pu})),i.d(t,"he",(function(){return qu})),i.d(t,"ie",(function(){return Mu})),i.d(t,"ke",(function(){return ru})),i.d(t,"le",(function(){return eh})),i.d(t,"me",(function(){return ih})),i.d(t,"oe",(function(){return Qu})),i.d(t,"pe",(function(){return hh})),i.d(t,"re",(function(){return sh})),i.d(t,"ue",(function(){return Ah})),i.d(t,"ve",(function(){return Jh})),i.d(t,"we",(function(){return Fh})),i.d(t,"xe",(function(){return Bh})),i.d(t,"ye",(function(){return Rh})),i.d(t,"ze",(function(){return Uh})),i.d(t,"Ae",(function(){return Gh})),i.d(t,"Be",(function(){return qh})),i.d(t,"Ce",(function(){return Wh})),i.d(t,"De",(function(){return Vh})),i.d(t,"Ee",(function(){return _h})),i.d(t,"Fe",(function(){return Yh})),i.d(t,"Ge",(function(){return $h})),i.d(t,"He",(function(){return Hh})),i.d(t,"Ke",(function(){return kh})),i.d(t,"Me",(function(){return Tv})),i.d(t,"Ne",(function(){return Dv})),i.d(t,"Re",(function(){return yv})),i.d(t,"Se",(function(){return up})),i.d(t,"Te",(function(){return hp})),i.d(t,"Ue",(function(){return vp})),i.d(t,"Ve",(function(){return pp})),i.d(t,"We",(function(){return fp})),i.d(t,"Xe",(function(){return mp})),i.d(t,"Ye",(function(){return gp})),i.d(t,"Ze",(function(){return bp})),i.d(t,"af",(function(){return Sp})),i.d(t,"bf",(function(){return Ip}));var r,n=i(110),a=i(111),o=i(562),s=i(2),l=i(4),c=i(5),d=i(28),u=i.n(d),h=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=qe.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/GetById?";if(null===e)throw new Error("The parameter 'accreditationFormId' cannot be null.");void 0!==e&&(n+="accreditationFormId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ge.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getByLicenseIds",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/GetByLicenseIds";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByLicenseIds(e)}))}},{key:"processGetByLicenseIds",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=qe.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ge.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ge.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ge.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ge.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateAccreditationName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/ValidateAccreditationName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateAccreditationName(e)}))}},{key:"processValidateAccreditationName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"uploadFile",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/AccreditationForm/UploadFile?";if(null===e)throw new Error("The parameter 'isPublic' cannot be null.");void 0!==e&&(a+="isPublic="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'file' cannot be null.");o.append("file",i.data,i.fileName?i.fileName:"file");var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadFile(e)}))}},{key:"processUploadFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getLibraryFileById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AccreditationForm/GetLibraryFileById?";if(null===e)throw new Error("The parameter 'libraryFileId' cannot be null.");void 0!==e&&(n+="libraryFileId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLibraryFileById(e)}))}},{key:"processGetLibraryFileById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),v=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ye.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Activity/Get/{activityId}?";if(void 0===e||null===e)throw new Error("The parameter 'activityId' must be defined.");if(a=a.replace("{activityId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'userId' cannot be null.");void 0!==t&&(a+="userId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ve.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ve.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ve.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ve.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ve.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ve.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateActivityTitle",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Activity/ValidateActivityTitle?";if(null===e)throw new Error("The parameter 'activityId' cannot be null.");if(void 0!==e&&(a+="activityId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'name' cannot be null.");void 0!==t&&(a+="name="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateActivityTitle(e)}))}},{key:"processValidateActivityTitle",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getActivityDevelopmentRecordCredit",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Activity/GetActivityDevelopmentRecordCredit";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetActivityDevelopmentRecordCredit(e)}))}},{key:"processGetActivityDevelopmentRecordCredit",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(We.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),p=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ke.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllAvailableActivityParticipants",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/GetAllAvailableActivityParticipants";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllAvailableActivityParticipants(e)}))}},{key:"processGetAllAvailableActivityParticipants",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"add",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/Add";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAdd(e)}))}},{key:"processAdd",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(He.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(He.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(He.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivityParticipant/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),f=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivitySavedFilter/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ze.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivitySavedFilter/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qe.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivitySavedFilter/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qe.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Qe.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivitySavedFilter/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qe.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Qe.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivitySavedFilter/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateActivitySavedFilterName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ActivitySavedFilter/ValidateActivitySavedFilterName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateActivitySavedFilterName(e)}))}},{key:"processValidateActivitySavedFilterName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),m=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AffidavitForm/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=st.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AffidavitForm/GetById?";if(null===e)throw new Error("The parameter 'affidavitFormId' cannot be null.");void 0!==e&&(n+="affidavitFormId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ot.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AffidavitForm/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AffidavitForm/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ot.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ot.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AffidavitForm/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ot.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ot.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}}]),e}(),y=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ct.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAffiliationListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/GetAffiliationListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAffiliationListById(e)}))}},{key:"processGetAffiliationListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(lt.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/GetById/{affiliationId}";if(void 0===e||null===e)throw new Error("The parameter 'affiliationId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{affiliationId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=lt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getByCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/GetByCode/{affiliationCode}";if(void 0===e||null===e)throw new Error("The parameter 'affiliationCode' must be defined.");var a={method:"GET",url:n=(n=n.replace("{affiliationCode}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByCode(e)}))}},{key:"processGetByCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=lt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=lt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=lt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=lt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=lt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(lt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateAffiliationName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/ValidateAffiliationName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateAffiliationName(e)}))}},{key:"processValidateAffiliationName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateAffiliationCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Affiliation/ValidateAffiliationCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateAffiliationCode(e)}))}},{key:"processValidateAffiliationCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),g=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"uploadFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AmazonS3/UploadFile";n=n.replace(/[?&]$/,"");var a=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'file' cannot be null.");a.append("file",t.data,t.fileName?t.fileName:"file");var o={data:a,method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:""},cancelToken:i};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUploadFile(e)}))}},{key:"processUploadFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"attachFile",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/AmazonS3/AttachFile?";if(null===e)throw new Error("The parameter 'isPublic' cannot be null.");void 0!==e&&(a+="isPublic="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'file' cannot be null.");o.append("file",i.data,i.fileName?i.fileName:"file");var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processAttachFile(e)}))}},{key:"processAttachFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"uploadMedia",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AmazonS3/UploadMedia";n=n.replace(/[?&]$/,"");var a=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'file' cannot be null.");a.append("file",t.data,t.fileName?t.fileName:"file");var o={data:a,method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:i};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUploadMedia(e)}))}},{key:"processUploadMedia",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"uploadPublicFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AmazonS3/UploadPublicFile";n=n.replace(/[?&]$/,"");var a=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'files' cannot be null.");t.forEach((function(e){return a.append("files",e.data,e.fileName?e.fileName:"files")}));var o={data:a,method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:""},cancelToken:i};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUploadPublicFile(e)}))}},{key:"processUploadPublicFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"deleteFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AmazonS3/DeleteFile";n=n.replace(/[?&]$/,"");var a=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'src' cannot be null.");a.append("src",t.toString());var o={data:a,method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:""},cancelToken:i};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteFile(e)}))}},{key:"processDeleteFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllImages",value:function(e,t){var i=this,r=this.baseUrl+"/api/AmazonS3/GetAllImages",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllImages(e)}))}},{key:"processGetAllImages",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ko.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),b=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=bt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/GetById?";if(null===e)throw new Error("The parameter 'attendanceFormId' cannot be null.");void 0!==e&&(n+="attendanceFormId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ft.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ft.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ft.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=pt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"setAsDefault",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/SetAsDefault";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSetAsDefault(e)}))}},{key:"processSetAsDefault",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ft.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ft.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"validateAttendanceFormName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/ValidateAttendanceFormName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateAttendanceFormName(e)}))}},{key:"processValidateAttendanceFormName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionFormDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/GetSessionFormDetails/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionFormDetails(e)}))}},{key:"processGetSessionFormDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Su.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScheduleSessionFormDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/GetScheduleSessionFormDetails";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetScheduleSessionFormDetails(e)}))}},{key:"processGetScheduleSessionFormDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Su.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getAttendanceFormDetailsByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AttendanceForm/GetAttendanceFormDetailsByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&");var a={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAttendanceFormDetailsByGuid(e)}))}},{key:"processGetAttendanceFormDetailsByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Et.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),S=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AuditLog/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ot.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/AuditLog/GetById/{auditId}";if(void 0===e||null===e)throw new Error("The parameter 'auditId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{auditId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=It.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),E=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CalendarSavedFilter/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CalendarSavedFilter/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CalendarSavedFilter/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=kt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CalendarSavedFilter/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=kt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CalendarSavedFilter/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateCalendarSavedFilterName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CalendarSavedFilter/ValidateCalendarSavedFilterName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCalendarSavedFilterName(e)}))}},{key:"processValidateCalendarSavedFilterName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),I=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CatalogSavedFilter/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CatalogSavedFilter/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ft.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CatalogSavedFilter/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ft.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ft.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CatalogSavedFilter/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ft.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ft.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CatalogSavedFilter/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateCatalogSavedFilterName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CatalogSavedFilter/ValidateCatalogSavedFilterName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCatalogSavedFilterName(e)}))}},{key:"processValidateCatalogSavedFilterName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),O=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=qt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetById?";if(null===e)throw new Error("The parameter 'certificateId' cannot be null.");void 0!==e&&(n+="certificateId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getByLicense",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetByLicense";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByLicense(e)}))}},{key:"processGetByLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getByMultipleLicense",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetByMultipleLicense";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByMultipleLicense(e)}))}},{key:"processGetByMultipleLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ql.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Gt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Gt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"validateCertificateName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/ValidateCertificateName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCertificateName(e)}))}},{key:"processValidateCertificateName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionTemplateDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetSessionTemplateDetails";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionTemplateDetails(e)}))}},{key:"processGetSessionTemplateDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ah.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getMultipleSessionTemplateDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetMultipleSessionTemplateDetails";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetMultipleSessionTemplateDetails(e)}))}},{key:"processGetMultipleSessionTemplateDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Zl.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getSessionTemplateDetailsByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Certificate/GetSessionTemplateDetailsByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&");var a={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionTemplateDetailsByGuid(e)}))}},{key:"processGetSessionTemplateDetailsByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=oh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),C=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getClassYearListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/GetClassYearListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetClassYearListById(e)}))}},{key:"processGetClassYearListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Wt.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/Get/{classYearId}";if(void 0===e||null===e)throw new Error("The parameter 'classYearId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{classYearId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Wt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Wt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Wt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateClassYearName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/ValidateClassYearName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateClassYearName(e)}))}},{key:"processValidateClassYearName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateClassYearCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ClassYear/ValidateClassYearCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateClassYearCode(e)}))}},{key:"processValidateClassYearCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),x=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ht.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getCompetencyListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/GetCompetencyListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCompetencyListById(e)}))}},{key:"processGetCompetencyListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Yt.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/Get/{competencyId}";if(void 0===e||null===e)throw new Error("The parameter 'competencyId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{competencyId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Yt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Yt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Yt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Yt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Yt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Yt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCompetencyName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/ValidateCompetencyName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCompetencyName(e)}))}},{key:"processValidateCompetencyName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCompetencyCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Competency/ValidateCompetencyCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCompetencyCode(e)}))}},{key:"processValidateCompetencyCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllActiveCompetencies",value:function(e,t){var i=this,r=this.baseUrl+"/api/Competency/GetAllActiveCompetencies",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllActiveCompetencies(e)}))}},{key:"processGetAllActiveCompetencies",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push($t.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),j=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getStatistics",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/GetStatistics";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetStatistics(e)}))}},{key:"processGetStatistics",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Si.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportStatisticsCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/ExportStatisticsCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportStatisticsCsv(e)}))}},{key:"processExportStatisticsCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportStatisticsExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/ExportStatisticsExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportStatisticsExcel(e)}))}},{key:"processExportStatisticsExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLicenseStatusUserStatistics",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Compliance/GetLicenseStatusUserStatistics";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicenseStatusUserStatistics(e)}))}},{key:"processGetLicenseStatusUserStatistics",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ti.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),w=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Zt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Zt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateComplianceLicenseeSavedFilterName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/ValidateComplianceLicenseeSavedFilterName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateComplianceLicenseeSavedFilterName(e)}))}},{key:"processValidateComplianceLicenseeSavedFilterName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),P=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Country/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=xi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),T=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/County/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),A=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_i.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/Get/{courseId}";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{courseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=rr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseWithCategories",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/GetCourseWithCategories/{courseId}";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{courseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseWithCategories(e)}))}},{key:"processGetCourseWithCategories",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ji.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseDetails",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Course/GetCourseDetails/{courseId}?";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");if(a=a.replace("{courseId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'scheduleId' cannot be null.");void 0!==t&&(a+="scheduleId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetCourseDetails(e)}))}},{key:"processGetCourseDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=qi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/GetCourseSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessions(e)}))}},{key:"processGetCourseSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessionGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/GetCourseSessionGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessionGroup(e)}))}},{key:"processGetCourseSessionGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getPortalCourseSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/GetPortalCourseSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalCourseSessions(e)}))}},{key:"processGetPortalCourseSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=yc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createThirdParty",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/CreateThirdParty";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateThirdParty(e)}))}},{key:"processCreateThirdParty",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createThirdPartySession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/CreateThirdPartySession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateThirdPartySession(e)}))}},{key:"processCreateThirdPartySession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"toggleCourseFavorite",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/ToggleCourseFavorite";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processToggleCourseFavorite(e)}))}},{key:"processToggleCourseFavorite",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Mi.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCourse",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/ValidateCourse";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCourse(e)}))}},{key:"processValidateCourse",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=yp.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCourseMerge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Course/ValidateCourseMerge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCourseMerge(e)}))}},{key:"processValidateCourseMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),N=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ni.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllWithMultiSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetAllWithMultiSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllWithMultiSessions(e)}))}},{key:"processGetAllWithMultiSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Li.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseDetail",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/CourseCatalog/GetCourseDetail/{courseId}?";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");if(a=a.replace("{courseId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'userId' cannot be null.");void 0!==t&&(a+="userId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetCourseDetail(e)}))}},{key:"processGetCourseDetail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ti.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetCourseSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessions(e)}))}},{key:"processGetCourseSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ki.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getCourseDetailByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetCourseDetailByGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseDetailByGuid(e)}))}},{key:"processGetCourseDetailByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ti.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessionsByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetCourseSessionsByGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessionsByGuid(e)}))}},{key:"processGetCourseSessionsByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ki.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getRegistrationCourseDetailByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetRegistrationCourseDetailByGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRegistrationCourseDetailByGuid(e)}))}},{key:"processGetRegistrationCourseDetailByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ti.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessionRegistrationLinkByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetCourseSessionRegistrationLinkByGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessionRegistrationLinkByGuid(e)}))}},{key:"processGetCourseSessionRegistrationLinkByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ki.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getRegistrationCourseDetailByScheduleGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetRegistrationCourseDetailByScheduleGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRegistrationCourseDetailByScheduleGuid(e)}))}},{key:"processGetRegistrationCourseDetailByScheduleGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ti.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessionRegistrationLinkByScheduleyGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCatalog/GetCourseSessionRegistrationLinkByScheduleyGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessionRegistrationLinkByScheduleyGuid(e)}))}},{key:"processGetCourseSessionRegistrationLinkByScheduleyGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ki.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),k=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_t.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=_t.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"addToCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/AddToCollection";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddToCollection(e)}))}},{key:"processAddToCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bi.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllUserCollections",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/CourseCollection/GetAllUserCollections?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'courseId' cannot be null.");void 0!==t&&(a+="courseId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetAllUserCollections(e)}))}},{key:"processGetAllUserCollections",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(_t.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getCourseCollectionById",value:function(e,t,i,r,n){var a=this,o=this.baseUrl+"/api/CourseCollection/GetCourseCollectionById?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(o+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'collectionId' cannot be null.");if(void 0!==t&&(o+="collectionId="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'courseId' cannot be null.");void 0!==i&&(o+="courseId="+encodeURIComponent(""+i)+"&");var s={method:"GET",url:o=o.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==r&&null!==r?""+r:"",Accept:"application/json"},cancelToken:n};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return a.processGetCourseCollectionById(e)}))}},{key:"processGetCourseCollectionById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ri.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserCourseCollectionByCourseId",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/CourseCollection/GetUserCourseCollectionByCourseId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'courseId' cannot be null.");void 0!==t&&(a+="courseId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetUserCourseCollectionByCourseId(e)}))}},{key:"processGetUserCourseCollectionByCourseId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ri.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserCourseCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/GetUserCourseCollection?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserCourseCollection(e)}))}},{key:"processGetUserCourseCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(nv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/GetCollection?";if(null===e)throw new Error("The parameter 'collectionId' cannot be null.");void 0!==e&&(n+="collectionId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCollection(e)}))}},{key:"processGetCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_t.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"removeCourseFromCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/RemoveCourseFromCollection";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processRemoveCourseFromCollection(e)}))}},{key:"processRemoveCourseFromCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllCourseCollectionByCollectionId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/GetAllCourseCollectionByCollectionId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllCourseCollectionByCollectionId(e)}))}},{key:"processGetAllCourseCollectionByCollectionId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=lv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/UpdateCollection";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateCollection(e)}))}},{key:"processUpdateCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_t.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=_t.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"validateCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/ValidateCollection";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCollection(e)}))}},{key:"processValidateCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteCollection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseCollection/DeleteCollection";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteCollection(e)}))}},{key:"processDeleteCollection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),D=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/CourseFormat/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllActive",value:function(e,t){var i=this,r=this.baseUrl+"/api/CourseFormat/GetAllActive",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllActive(e)}))}},{key:"processGetAllActive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseFormat/Get/{courseFormatId}";if(void 0===e||null===e)throw new Error("The parameter 'courseFormatId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{courseFormatId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseFormat/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),L=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseSavedFilter/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Hi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseSavedFilter/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$i.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseSavedFilter/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$i.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=$i.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseSavedFilter/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$i.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=$i.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseSavedFilter/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateCourseSavedFilterName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/CourseSavedFilter/ValidateCourseSavedFilterName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCourseSavedFilterName(e)}))}},{key:"processValidateCourseSavedFilterName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),J=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAllSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Dashboard/GetAllSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessions(e)}))}},{key:"processGetAllSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getReportingPeriodStatistics",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Dashboard/GetReportingPeriodStatistics";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetReportingPeriodStatistics(e)}))}},{key:"processGetReportingPeriodStatistics",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getMarketingEmails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Dashboard/GetMarketingEmails",n={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetMarketingEmails(e)}))}},{key:"processGetMarketingEmails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ho.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getUserFavoriteReports",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Dashboard/GetUserFavoriteReports";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserFavoriteReports(e)}))}},{key:"processGetUserFavoriteReports",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),F=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/DateFormat/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Fr.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),B=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getDeclineListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/GetDeclineListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDeclineListById(e)}))}},{key:"processGetDeclineListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Br.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/Get/{declineCodeId}";if(void 0===e||null===e)throw new Error("The parameter 'declineCodeId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{declineCodeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Br.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Br.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Br.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Br.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Br.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Br.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDeclineCodeName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/ValidateDeclineCodeName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateDeclineCodeName(e)}))}},{key:"processValidateDeclineCodeName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDeclineCodeCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DeclineCode/ValidateDeclineCodeCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateDeclineCodeCode(e)}))}},{key:"processValidateDeclineCodeCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),R=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=rn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getDepartmentListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/GetDepartmentListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDepartmentListById(e)}))}},{key:"processGetDepartmentListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(tn.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/Get/{departmentId}";if(void 0===e||null===e)throw new Error("The parameter 'departmentId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{departmentId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=tn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=tn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(tn.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDepartmentName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/ValidateDepartmentName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateDepartmentName(e)}))}},{key:"processValidateDepartmentName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDepartmentCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Department/ValidateDepartmentCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateDepartmentCode(e)}))}},{key:"processValidateDepartmentCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),U=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentOverallReflection/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=nn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentOverallReflection/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=nn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=nn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentOverallReflection/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=nn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=nn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}}]),e}(),G=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getUserLicenseComplianceProfile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/GetUserLicenseComplianceProfile";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseComplianceProfile(e)}))}},{key:"processGetUserLicenseComplianceProfile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(sn.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getDevelopmentPlanFrameworkId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/GetDevelopmentPlanFrameworkId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDevelopmentPlanFrameworkId(e)}))}},{key:"processGetDevelopmentPlanFrameworkId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getDevelopmentPlanFramework",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/GetDevelopmentPlanFramework";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDevelopmentPlanFramework(e)}))}},{key:"processGetDevelopmentPlanFramework",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(on.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getAllByLicense",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/GetAllByLicense";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllByLicense(e)}))}},{key:"processGetAllByLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"confirm",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentPlan/Confirm";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processConfirm(e)}))}},{key:"processConfirm",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),q=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"createCourseDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/CreateCourseDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateCourseDevelopmentRecord(e)}))}},{key:"processCreateCourseDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteCourseDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/DeleteCourseDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteCourseDevelopmentRecord(e)}))}},{key:"processDeleteCourseDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserUkLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/GetAllUserUkLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserUkLicenses(e)}))}},{key:"processGetAllUserUkLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(op.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"createActivityDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/CreateActivityDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateActivityDevelopmentRecord(e)}))}},{key:"processCreateActivityDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getAllDevelopmentRecords",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/GetAllDevelopmentRecords";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllDevelopmentRecords(e)}))}},{key:"processGetAllDevelopmentRecords",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=vn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"createDevelopmentRecordReflection",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/CreateDevelopmentRecordReflection";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateDevelopmentRecordReflection(e)}))}},{key:"processCreateDevelopmentRecordReflection",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"deleteActivityDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/DeleteActivityDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteActivityDevelopmentRecord(e)}))}},{key:"processDeleteActivityDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteLearningNeedDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/DeleteLearningNeedDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteLearningNeedDevelopmentRecord(e)}))}},{key:"processDeleteLearningNeedDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllDevelopmentRecordLearningNeeds",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/GetAllDevelopmentRecordLearningNeeds";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllDevelopmentRecordLearningNeeds(e)}))}},{key:"processGetAllDevelopmentRecordLearningNeeds",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"createLearningNeedDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/CreateLearningNeedDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateLearningNeedDevelopmentRecord(e)}))}},{key:"processCreateLearningNeedDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"updateDevelopmentRecordCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/UpdateDevelopmentRecordCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateDevelopmentRecordCredits(e)}))}},{key:"processUpdateDevelopmentRecordCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getAllDevelopmentRecordByLicenseIdList",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/GetAllDevelopmentRecordByLicenseIdList";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllDevelopmentRecordByLicenseIdList(e)}))}},{key:"processGetAllDevelopmentRecordByLicenseIdList",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=vn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateCourseDevelopmentRecord",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/DevelopmentRecord/ValidateCourseDevelopmentRecord";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateCourseDevelopmentRecord(e)}))}},{key:"processValidateCourseDevelopmentRecord",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=yp.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),M=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAllEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetAllEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllEmail(e)}))}},{key:"processGetAllEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=jn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEmailById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetEmailById?";if(null===e)throw new Error("The parameter 'emailId' cannot be null.");void 0!==e&&(n+="emailId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEmailById(e)}))}},{key:"processGetEmailById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=On.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllEmailTransactionById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetAllEmailTransactionById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllEmailTransactionById(e)}))}},{key:"processGetAllEmailTransactionById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEmailTokenById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetEmailTokenById?";if(null===e)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==e&&(n+="emailTypeId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEmailTokenById(e)}))}},{key:"processGetEmailTokenById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllEmailType",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetAllEmailType";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllEmailType(e)}))}},{key:"processGetAllEmailType",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Mn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEmailTypeById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetEmailTypeById/{EmailTypeId}";if(void 0===e||null===e)throw new Error("The parameter 'emailTypeId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{EmailTypeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEmailTypeById(e)}))}},{key:"processGetEmailTypeById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllEmailTemplate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetAllEmailTemplate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllEmailTemplate(e)}))}},{key:"processGetAllEmailTemplate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEmailTemplate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetEmailTemplate/{EmailTemplateId}";if(void 0===e||null===e)throw new Error("The parameter 'emailTemplateId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{EmailTemplateId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEmailTemplate(e)}))}},{key:"processGetEmailTemplate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEmailRecipientsBySessionIds",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetEmailRecipientsBySessionIds";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEmailRecipientsBySessionIds(e)}))}},{key:"processGetEmailRecipientsBySessionIds",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(An.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"archiveEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/ArchiveEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchiveEmail(e)}))}},{key:"processArchiveEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"createEmailCommand",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/CreateEmailCommand";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateEmailCommand(e)}))}},{key:"processCreateEmailCommand",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=On.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=On.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createEmailByRecipient",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/CreateEmailByRecipient";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateEmailByRecipient(e)}))}},{key:"processCreateEmailByRecipient",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"previewEmailCommand",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/PreviewEmailCommand";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processPreviewEmailCommand(e)}))}},{key:"processPreviewEmailCommand",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"reprocessEmailCommand",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/ReprocessEmailCommand";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processReprocessEmailCommand(e)}))}},{key:"processReprocessEmailCommand",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=On.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createEmailTemplate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/CreateEmailTemplate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateEmailTemplate(e)}))}},{key:"processCreateEmailTemplate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=kn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateEmailTemplate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/UpdateEmailTemplate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmailTemplate(e)}))}},{key:"processUpdateEmailTemplate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=kn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"assignTemplate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/AssignTemplate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignTemplate(e)}))}},{key:"processAssignTemplate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gn.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateEmailStatus",value:function(e,t){var i=this,r=this.baseUrl+"/api/Email/UpdateEmailStatus",n={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUpdateEmailStatus(e)}))}},{key:"processUpdateEmailStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteEmailTemplate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/DeleteEmailTemplate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteEmailTemplate(e)}))}},{key:"processDeleteEmailTemplate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getSavedEmailTemplateById",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Email/GetSavedEmailTemplateById?";if(null===e)throw new Error("The parameter 'key' cannot be null.");if(void 0!==e&&(a+="key="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==t&&(a+="emailTypeId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetSavedEmailTemplateById(e)}))}},{key:"processGetSavedEmailTemplateById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"sendSessionParticipantRegistrationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendSessionParticipantRegistrationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendSessionParticipantRegistrationEmail(e)}))}},{key:"processSendSessionParticipantRegistrationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantRegistrationUpdateEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendSessionParticipantRegistrationUpdateEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendSessionParticipantRegistrationUpdateEmail(e)}))}},{key:"processSendSessionParticipantRegistrationUpdateEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantRegistrationCancellationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendSessionParticipantRegistrationCancellationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendSessionParticipantRegistrationCancellationEmail(e)}))}},{key:"processSendSessionParticipantRegistrationCancellationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendScheduleParticipantRegistrationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendScheduleParticipantRegistrationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendScheduleParticipantRegistrationEmail(e)}))}},{key:"processSendScheduleParticipantRegistrationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendScheduleParticipantRegistrationUpdateEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendScheduleParticipantRegistrationUpdateEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendScheduleParticipantRegistrationUpdateEmail(e)}))}},{key:"processSendScheduleParticipantRegistrationUpdateEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendScheduleParticipantRegistrationCancellationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendScheduleParticipantRegistrationCancellationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendScheduleParticipantRegistrationCancellationEmail(e)}))}},{key:"processSendScheduleParticipantRegistrationCancellationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantWaitlistConfirmationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendSessionParticipantWaitlistConfirmationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendSessionParticipantWaitlistConfirmationEmail(e)}))}},{key:"processSendSessionParticipantWaitlistConfirmationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantWaitlistCancellationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendSessionParticipantWaitlistCancellationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendSessionParticipantWaitlistCancellationEmail(e)}))}},{key:"processSendSessionParticipantWaitlistCancellationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionCancellationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/SendSessionCancellationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendSessionCancellationEmail(e)}))}},{key:"processSendSessionCancellationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getDuplicateEmailRecipient",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Email/GetDuplicateEmailRecipient";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDuplicateEmailRecipient(e)}))}},{key:"processGetDuplicateEmailRecipient",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(hv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),z=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getEthnicityListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/GetEthnicityListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEthnicityListById(e)}))}},{key:"processGetEthnicityListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(zn.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/Get/{ethnicityId}";if(void 0===e||null===e)throw new Error("The parameter 'ethnicityId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{ethnicityId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=zn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zn.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=zn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(zn.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateEthnicityName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/ValidateEthnicityName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateEthnicityName(e)}))}},{key:"processValidateEthnicityName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateEthnicityCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Ethnicity/ValidateEthnicityCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateEthnicityCode(e)}))}},{key:"processValidateEthnicityCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),W=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Evaluation/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$n.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Evaluation/GetById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(_n.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Evaluation/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Evaluation/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_n.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=_n.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Evaluation/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_n.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=_n.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Evaluation/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(_n.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}}]),e}(),V=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationQuestion/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationQuestion/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationQuestion/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"copy",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationQuestion/Copy";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCopy(e)}))}},{key:"processCopy",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),_=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationQuestionType/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Y=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationSection/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationSection/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationSection/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"copy",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/EvaluationSection/Copy";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCopy(e)}))}},{key:"processCopy",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),$=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ia.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getExcuseListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/GetExcuseListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetExcuseListById(e)}))}},{key:"processGetExcuseListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ta.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/Get/{excuseId}";if(void 0===e||null===e)throw new Error("The parameter 'excuseId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{excuseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ta.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ta.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ta.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ta.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ta.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ta.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateExcuseName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/ValidateExcuseName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateExcuseName(e)}))}},{key:"processValidateExcuseName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateExcuseCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Excuse/ValidateExcuseCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateExcuseCode(e)}))}},{key:"processValidateExcuseCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),H=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"exportCoursesToCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Export/ExportCoursesToCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCoursesToCsv(e)}))}},{key:"processExportCoursesToCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),K=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/Get",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=oa.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getSettings",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetSettings",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetSettings(e)}))}},{key:"processGetSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(va.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=oa.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=oa.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSettings",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/UpdateSettings";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSettings(e)}))}},{key:"processUpdateSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getFirmLoginScreenDetails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmLoginScreenDetails",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmLoginScreenDetails(e)}))}},{key:"processGetFirmLoginScreenDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ca.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getFirmNotification",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmNotification",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmNotification(e)}))}},{key:"processGetFirmNotification",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ha.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateFirmNotification",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/UpdateFirmNotification";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFirmNotification(e)}))}},{key:"processUpdateFirmNotification",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ha.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ha.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getFirmNotificationBasicDetails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmNotificationBasicDetails",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmNotificationBasicDetails(e)}))}},{key:"processGetFirmNotificationBasicDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ua.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getStatementSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetStatementSchedule",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetStatementSchedule(e)}))}},{key:"processGetStatementSchedule",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=yh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getReminderSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetReminderSchedule",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetReminderSchedule(e)}))}},{key:"processGetReminderSchedule",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Mc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getDueToReportSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetDueToReportSchedule",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetDueToReportSchedule(e)}))}},{key:"processGetDueToReportSchedule",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gn.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateFirmNotificationStatus",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/UpdateFirmNotificationStatus";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFirmNotificationStatus(e)}))}},{key:"processUpdateFirmNotificationStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getTenantLoginEnabled",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/GetTenantLoginEnabled/{hostName}";if(void 0===e||null===e)throw new Error("The parameter 'hostName' must be defined.");var a={method:"GET",url:n=(n=n.replace("{hostName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetTenantLoginEnabled(e)}))}},{key:"processGetTenantLoginEnabled",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getFirmUsageReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/GetFirmUsageReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetFirmUsageReport(e)}))}},{key:"processGetFirmUsageReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pa.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportFileCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/ExportFileCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportFileCsv(e)}))}},{key:"processExportFileCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportFileExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Firm/ExportFileExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportFileExcel(e)}))}},{key:"processExportFileExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Q=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t){var i=this,r=this.baseUrl+"/api/FirmAnnouncement/Get",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(na.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/FirmAnnouncement/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(na.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(na.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}}]),e}(),Z=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/FormNumberExclude/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ma.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),X=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/FormNumberStyle/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ga.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),ee=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sa.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getGenderListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/GetGenderListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGenderListById(e)}))}},{key:"processGetGenderListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ba.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/Get/{genderId}";if(void 0===e||null===e)throw new Error("The parameter 'genderId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{genderId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ba.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ba.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ba.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ba.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ba.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ba.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateGenderName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/ValidateGenderName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateGenderName(e)}))}},{key:"processValidateGenderName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateGenderCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Gender/ValidateGenderCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateGenderCode(e)}))}},{key:"processValidateGenderCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),te=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Integration/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=us.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllIntegrationJob",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetAllIntegrationJob";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllIntegrationJob(e)}))}},{key:"processGetAllIntegrationJob",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ls.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIntegrationJobById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetIntegrationJobById?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(n+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobById(e)}))}},{key:"processGetIntegrationJobById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=os.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIntegrationLogsById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetIntegrationLogsById?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(n+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationLogsById(e)}))}},{key:"processGetIntegrationLogsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=vs.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllIntegrationTags",value:function(e,t){var i=this,r=this.baseUrl+"/api/Integration/GetAllIntegrationTags",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllIntegrationTags(e)}))}},{key:"processGetAllIntegrationTags",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getIntegrationJobCoursesById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetIntegrationJobCoursesById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobCoursesById(e)}))}},{key:"processGetIntegrationJobCoursesById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=as.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIntegrationJobSessionsById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetIntegrationJobSessionsById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobSessionsById(e)}))}},{key:"processGetIntegrationJobSessionsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ds.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIntegrationJobAttendeesById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetIntegrationJobAttendeesById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobAttendeesById(e)}))}},{key:"processGetIntegrationJobAttendeesById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=rs.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archiveIntegrationJob",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/ArchiveIntegrationJob";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchiveIntegrationJob(e)}))}},{key:"processArchiveIntegrationJob",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"downloadIntegrationJobFeed",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/DownloadIntegrationJobFeed?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(n+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var a={responseType:"blob",method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDownloadIntegrationJobFeed(e)}))}},{key:"processDownloadIntegrationJobFeed",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/GetById?";if(null===e)throw new Error("The parameter 'integrationId' cannot be null.");void 0!==e&&(n+="integrationId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ts.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ts.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ts.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"trigger",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Integration/Trigger";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processTrigger(e)}))}},{key:"processTrigger",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=os.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadPLICertificate",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Integration/DownloadPLICertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(a+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'integraionSessionParticipantCertificateId' cannot be null.");void 0!==t&&(a+="integraionSessionParticipantCertificateId="+encodeURIComponent(""+t)+"&");var o={responseType:"blob",method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/octet-stream"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processDownloadPLICertificate(e)}))}},{key:"processDownloadPLICertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),ie=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"generate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/JurisdictionReport/Generate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGenerate(e)}))}},{key:"processGenerate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),re=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Language/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ms.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),ne=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/Get/{learningPlanId}";if(void 0===e||null===e)throw new Error("The parameter 'learningPlanId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{learningPlanId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$s.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&");var a={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByGuid(e)}))}},{key:"processGetByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=al.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=cl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllDashboard",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetAllDashboard";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllDashboard(e)}))}},{key:"processGetAllDashboard",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=qs.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetAllId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllId(e)}))}},{key:"processGetAllId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ys.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLearningPlanListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetLearningPlanListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLearningPlanListById(e)}))}},{key:"processGetLearningPlanListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=cl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ms.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ms.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Mh.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Mh.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLearningPlanFilterList",value:function(e,t){var i=this,r=this.baseUrl+"/api/LearningPlan/GetLearningPlanFilterList",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetLearningPlanFilterList(e)}))}},{key:"processGetLearningPlanFilterList",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_s.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllActiveLearningPlanNames",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetAllActiveLearningPlanNames";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllActiveLearningPlanNames(e)}))}},{key:"processGetAllActiveLearningPlanNames",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Me.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"validate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/Validate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidate(e)}))}},{key:"processValidate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLearningPlanCatalog",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetLearningPlanCatalog";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLearningPlanCatalog(e)}))}},{key:"processGetLearningPlanCatalog",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ls.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"generateLearningPlanLinkGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GenerateLearningPlanLinkGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGenerateLearningPlanLinkGuid(e)}))}},{key:"processGenerateLearningPlanLinkGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Hs.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLearningPlanRegistrationLinkDetailsByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetLearningPlanRegistrationLinkDetailsByGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLearningPlanRegistrationLinkDetailsByGuid(e)}))}},{key:"processGetLearningPlanRegistrationLinkDetailsByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=nl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateLearningPlanEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/UpdateLearningPlanEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLearningPlanEmailSetting(e)}))}},{key:"processUpdateLearningPlanEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"createLearningPlanNotificationEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/CreateLearningPlanNotificationEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateLearningPlanNotificationEmailSetting(e)}))}},{key:"processCreateLearningPlanNotificationEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qs.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Qs.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateLearningPlanNotificationEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/UpdateLearningPlanNotificationEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLearningPlanNotificationEmailSetting(e)}))}},{key:"processUpdateLearningPlanNotificationEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qs.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Qs.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getLearningPlanNotificationEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlan/GetLearningPlanNotificationEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLearningPlanNotificationEmailSetting(e)}))}},{key:"processGetLearningPlanNotificationEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zs.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),ae=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=el.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"add",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/Add";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAdd(e)}))}},{key:"processAdd",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Xs.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Xs.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getAllAvailableUsers",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/GetAllAvailableUsers";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllAvailableUsers(e)}))}},{key:"processGetAllAvailableUsers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllLearningPlanParticipantRequirements",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/GetAllLearningPlanParticipantRequirements";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllLearningPlanParticipantRequirements(e)}))}},{key:"processGetAllLearningPlanParticipantRequirements",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=il.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exclude",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanParticipant/Exclude";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExclude(e)}))}},{key:"processExclude",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Xs.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),oe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ol.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ms.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Ms.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getAvailableLearningPlanCourses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanCourses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAvailableLearningPlanCourses(e)}))}},{key:"processGetAvailableLearningPlanCourses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Tt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAvailableLearningPlanCoursesById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanCoursesById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAvailableLearningPlanCoursesById(e)}))}},{key:"processGetAvailableLearningPlanCoursesById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Pt.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getAvailableLearningPlanActivities",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanActivities";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAvailableLearningPlanActivities(e)}))}},{key:"processGetAvailableLearningPlanActivities",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=wt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAvailableLearningPlanActivitiesById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanActivitiesById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAvailableLearningPlanActivitiesById(e)}))}},{key:"processGetAvailableLearningPlanActivitiesById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(jt.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getRequirementSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningPlanRequirement/GetRequirementSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRequirementSessions(e)}))}},{key:"processGetRequirementSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(sl.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),se=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/LearningSetting/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(hl.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateLearningSettings",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LearningSetting/UpdateLearningSettings";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLearningSettings(e)}))}},{key:"processUpdateLearningSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(hl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(hl.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}}]),e}(),le=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=fl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLeveListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/GetLeveListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLeveListById(e)}))}},{key:"processGetLeveListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(pl.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/Get/{levelId}";if(void 0===e||null===e)throw new Error("The parameter 'levelId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{levelId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=pl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=pl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(pl.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLevelName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/ValidateLevelName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateLevelName(e)}))}},{key:"processValidateLevelName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLevelCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Level/ValidateLevelCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateLevelCode(e)}))}},{key:"processValidateLevelCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),ce=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLibraryFileListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/GetLibraryFileListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLibraryFileListById(e)}))}},{key:"processGetLibraryFileListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getSessionsByLibraryFileId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/GetSessionsByLibraryFileId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionsByLibraryFileId(e)}))}},{key:"processGetSessionsByLibraryFileId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllMaterials",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/GetAllMaterials";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllMaterials(e)}))}},{key:"processGetAllMaterials",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllFirmLogos",value:function(e,t){var i=this,r=this.baseUrl+"/api/LibraryFile/GetAllFirmLogos",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllFirmLogos(e)}))}},{key:"processGetAllFirmLogos",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(da.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"createFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/CreateFile";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateFile(e)}))}},{key:"processCreateFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createLink",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/CreateLink";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateLink(e)}))}},{key:"processCreateLink",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(gl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(gl.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"uploadFile",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/LibraryFile/UploadFile?";if(null===e)throw new Error("The parameter 'isPublic' cannot be null.");void 0!==e&&(a+="isPublic="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'file' cannot be null.");o.append("file",i.data,i.fileName?i.fileName:"file");var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadFile(e)}))}},{key:"processUploadFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"uploadAudio",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/UploadAudio",a={data:t,method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"multipart/form-data",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUploadAudio(e)}))}},{key:"processUploadAudio",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"uploadCertificateSignature",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/LibraryFile/UploadCertificateSignature?";if(null===e)throw new Error("The parameter 'certificateId' cannot be null.");void 0!==e&&(a+="certificateId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'file' cannot be null.");o.append("file",i.data,i.fileName?i.fileName:"file");var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadCertificateSignature(e)}))}},{key:"processUploadCertificateSignature",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Mt.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Mt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteCertificateSignature",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DeleteCertificateSignature";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteCertificateSignature(e)}))}},{key:"processDeleteCertificateSignature",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"uploadUserAvatar",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/LibraryFile/UploadUserAvatar?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'file' cannot be null.");o.append("file",i.data,i.fileName?i.fileName:"file");var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadUserAvatar(e)}))}},{key:"processUploadUserAvatar",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ev.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ev.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteUserAvatar",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DeleteUserAvatar";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserAvatar(e)}))}},{key:"processDeleteUserAvatar",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"uploadUsersignature",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/LibraryFile/UploadUsersignature?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'file' cannot be null.");o.append("file",i.data,i.fileName?i.fileName:"file");var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadUsersignature(e)}))}},{key:"processUploadUsersignature",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Zv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteUserSignature",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DeleteUserSignature";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserSignature(e)}))}},{key:"processDeleteUserSignature",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"uploadFirmLogo",value:function(e,t,i,r,n){var a=this,o=this.baseUrl+"/api/LibraryFile/UploadFirmLogo?";if(null===e)throw new Error("The parameter 'isPortalLogo' cannot be null.");if(void 0!==e&&(o+="isPortalLogo="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'roleId' cannot be null.");void 0!==t&&(o+="roleId="+encodeURIComponent(""+t)+"&"),o=o.replace(/[?&]$/,"");var s=new FormData;if(null===r||void 0===r)throw new Error("The parameter 'file' cannot be null.");s.append("file",r.data,r.fileName?r.fileName:"file");var l={data:s,method:"POST",url:o,headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:n};return this.instance.request(l).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return a.processUploadFirmLogo(e)}))}},{key:"processUploadFirmLogo",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteFirmLogo",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DeleteFirmLogo";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteFirmLogo(e)}))}},{key:"processDeleteFirmLogo",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/UpdateFile";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFile(e)}))}},{key:"processUpdateFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateFiles",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/UpdateFiles";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFiles(e)}))}},{key:"processUpdateFiles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(gl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(gl.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"createCourses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/CreateCourses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateCourses(e)}))}},{key:"processCreateCourses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Mi.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(Mi.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"deleteFiles",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DeleteFiles";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteFiles(e)}))}},{key:"processDeleteFiles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(gl.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archiveFiles",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/ArchiveFiles";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchiveFiles(e)}))}},{key:"processArchiveFiles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"downloadFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DownloadFile";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDownloadFile(e)}))}},{key:"processDownloadFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadFileFromInvite",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/DownloadFileFromInvite?";if(null===e)throw new Error("The parameter 'fileId' cannot be null.");void 0!==e&&(n+="fileId="+encodeURIComponent(""+e)+"&");var a={responseType:"blob",method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDownloadFileFromInvite(e)}))}},{key:"processDownloadFileFromInvite",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadFileByGuid",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/LibraryFile/DownloadFileByGuid?";if(null===e)throw new Error("The parameter 'fileId' cannot be null.");void 0!==e&&(a+="fileId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processDownloadFileByGuid(e)}))}},{key:"processDownloadFileByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getFileByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFile/GetFileByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetFileByGuid(e)}))}},{key:"processGetFileByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Il.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),de=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFileSetting/Get/{libraryFileId}";if(void 0===e||null===e)throw new Error("The parameter 'libraryFileId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{libraryFileId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(xl.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateLibraryFileSettings",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LibraryFileSetting/UpdateLibraryFileSettings";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLibraryFileSettings(e)}))}},{key:"processUpdateLibraryFileSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(xl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(xl.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}}]),e}(),ue=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllActive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/GetAllActive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllActive(e)}))}},{key:"processGetAllActive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllFirmLicenses",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetAllFirmLicenses",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllFirmLicenses(e)}))}},{key:"processGetAllFirmLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLicense",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/GetLicense?";if(null===e)throw new Error("The parameter 'licenseId' cannot be null.");void 0!==e&&(n+="licenseId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicense(e)}))}},{key:"processGetLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Al.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserLicenseLimitation",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetUserLicenseLimitation",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserLicenseLimitation(e)}))}},{key:"processGetUserLicenseLimitation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getLicensePropertyFields",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/GetLicensePropertyFields/{licenseId}";if(void 0===e||null===e)throw new Error("The parameter 'licenseId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{licenseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicensePropertyFields(e)}))}},{key:"processGetLicensePropertyFields",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLicenseSubfilters",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetLicenseSubfilters",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetLicenseSubfilters(e)}))}},{key:"processGetLicenseSubfilters",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=sa.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=sa.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=sa.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=sa.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"favorite",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/Favorite";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processFavorite(e)}))}},{key:"processFavorite",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignCertificate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/License/AssignCertificate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignCertificate(e)}))}},{key:"processAssignCertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),he=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LicenseSummary/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/LicenseSummary/Get/{licenseId}";if(void 0===e||null===e)throw new Error("The parameter 'licenseId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{licenseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),ve=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_l.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllFirmOffice",value:function(e,t){var i=this,r=this.baseUrl+"/api/Location/GetAllFirmOffice",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllFirmOffice(e)}))}},{key:"processGetAllFirmOffice",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(la.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLocationListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/GetLocationListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLocationListById(e)}))}},{key:"processGetLocationListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Vl.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/Get/{locationId}";if(void 0===e||null===e)throw new Error("The parameter 'locationId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{locationId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Vl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vl.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Vl.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Vl.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLocationName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/ValidateLocationName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateLocationName(e)}))}},{key:"processValidateLocationName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLocationCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Location/ValidateLocationCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateLocationCode(e)}))}},{key:"processValidateLocationCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),pe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getPasswordPolicy",value:function(e,t){var i=this,r=this.baseUrl+"/api/PasswordPolicy/GetPasswordPolicy",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetPasswordPolicy(e)}))}},{key:"processGetPasswordPolicy",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updatePasswordPolicy",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PasswordPolicy/UpdatePasswordPolicy";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePasswordPolicy(e)}))}},{key:"processUpdatePasswordPolicy",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}}]),e}(),fe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getUserPermissionSets",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PermissionSet/GetUserPermissionSets?";if(null===e)throw new Error("The parameter 'idpId' cannot be null.");void 0!==e&&(n+="idpId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserPermissionSets(e)}))}},{key:"processGetUserPermissionSets",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PermissionSet/Get/{roleTypeId}";if(void 0===e||null===e)throw new Error("The parameter 'roleTypeId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{roleTypeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),me=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getBrandingSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/GetBrandingSetting/{roleId}";if(void 0===e||null===e)throw new Error("The parameter 'roleId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{roleId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetBrandingSetting(e)}))}},{key:"processGetBrandingSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getElearningSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/GetElearningSetting/{roleId}";if(void 0===e||null===e)throw new Error("The parameter 'roleId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{roleId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetElearningSetting(e)}))}},{key:"processGetElearningSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getRoleElearningSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/GetRoleElearningSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRoleElearningSetting(e)}))}},{key:"processGetRoleElearningSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScreenInformation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/GetScreenInformation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetScreenInformation(e)}))}},{key:"processGetScreenInformation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateBranding",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/UpdateBranding";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateBranding(e)}))}},{key:"processUpdateBranding",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=hc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/UpdateSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSetting(e)}))}},{key:"processUpdateSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=gc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getPortalBranding",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalSetting/GetPortalBranding/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalBranding(e)}))}},{key:"processGetPortalBranding",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=uc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),ye=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalTeamView/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Cc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getTeamByUserId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PortalTeamView/GetTeamByUserId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetTeamByUserId(e)}))}},{key:"processGetTeamByUserId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Cc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),ge=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=kc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getPositionListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/GetPositionListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPositionListById(e)}))}},{key:"processGetPositionListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Nc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/Get/{positionId}";if(void 0===e||null===e)throw new Error("The parameter 'positionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{positionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Nc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Nc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Nc.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validatePositionCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Position/ValidatePositionCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidatePositionCode(e)}))}},{key:"processValidatePositionCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),be=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Lc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getPracticeAreaListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/GetPracticeAreaListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPracticeAreaListById(e)}))}},{key:"processGetPracticeAreaListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Dc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/Get/{practiceAreaId}";if(void 0===e||null===e)throw new Error("The parameter 'practiceAreaId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{practiceAreaId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Dc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Dc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Dc.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validatePracticeAreaName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/ValidatePracticeAreaName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidatePracticeAreaName(e)}))}},{key:"processValidatePracticeAreaName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validatePracticeAreaCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/PracticeArea/ValidatePracticeAreaCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidatePracticeAreaCode(e)}))}},{key:"processValidatePracticeAreaCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Se=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Uc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getProviderListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/GetProviderListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetProviderListById(e)}))}},{key:"processGetProviderListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Rc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/Get/{providerId}";if(void 0===e||null===e)throw new Error("The parameter 'providerId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{providerId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Rc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rc.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Rc.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Rc.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateProviderName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/ValidateProviderName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateProviderName(e)}))}},{key:"processValidateProviderName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateProviderCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Provider/ValidateProviderCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateProviderCode(e)}))}},{key:"processValidateProviderCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Ee=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=fd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=td.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserFavoriteReports",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetUserFavoriteReports";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserFavoriteReports(e)}))}},{key:"processGetUserFavoriteReports",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(mv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"toggleUserFavoriteReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/ToggleUserFavoriteReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processToggleUserFavoriteReport(e)}))}},{key:"processToggleUserFavoriteReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"createUserReportLog",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/CreateUserReportLog";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserReportLog(e)}))}},{key:"processCreateUserReportLog",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getToken",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Report/GetToken?";if(null===e)throw new Error("The parameter 'userName' cannot be null.");if(void 0!==e&&(a+="userName="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'tenantUniqueName' cannot be null.");void 0!==t&&(a+="tenantUniqueName="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetToken(e)}))}},{key:"processGetToken",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Cd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getNewYorkLawYearEndReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetNewYorkLawYearEndReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNewYorkLawYearEndReport(e)}))}},{key:"processGetNewYorkLawYearEndReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateNewYorkReportContactProfile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/UpdateNewYorkReportContactProfile";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateNewYorkReportContactProfile(e)}))}},{key:"processUpdateNewYorkReportContactProfile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getNewYorkLawActivityTable",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetNewYorkLawActivityTable";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNewYorkLawActivityTable(e)}))}},{key:"processGetNewYorkLawActivityTable",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Sd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getComplianceReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetComplianceReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetComplianceReport(e)}))}},{key:"processGetComplianceReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ed.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getComplianceAuditReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetComplianceAuditReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetComplianceAuditReport(e)}))}},{key:"processGetComplianceAuditReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getMultimediaUsageReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetMultimediaUsageReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetMultimediaUsageReport(e)}))}},{key:"processGetMultimediaUsageReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Kl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getNebraskaCPEReportData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetNebraskaCPEReportData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNebraskaCPEReportData(e)}))}},{key:"processGetNebraskaCPEReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getProgramListNasbaReportData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetProgramListNasbaReportData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetProgramListNasbaReportData(e)}))}},{key:"processGetProgramListNasbaReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Od.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEvaluationSummaryReportData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetEvaluationSummaryReportData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEvaluationSummaryReportData(e)}))}},{key:"processGetEvaluationSummaryReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=rd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIllinoisLawData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetIllinoisLawData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIllinoisLawData(e)}))}},{key:"processGetIllinoisLawData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=cd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIllinoisLawAttendanceReportData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetIllinoisLawAttendanceReportData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIllinoisLawAttendanceReportData(e)}))}},{key:"processGetIllinoisLawAttendanceReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ud.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getIllinoisLawCourseReportData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetIllinoisLawCourseReportData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIllinoisLawCourseReportData(e)}))}},{key:"processGetIllinoisLawCourseReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=vd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getHRExportReportData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetHRExportReportData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetHRExportReportData(e)}))}},{key:"processGetHRExportReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=od.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportMultimediaUsageReportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/ExportMultimediaUsageReportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportMultimediaUsageReportCsv(e)}))}},{key:"processExportMultimediaUsageReportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportMultimediaUsageReportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/ExportMultimediaUsageReportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportMultimediaUsageReportExcel(e)}))}},{key:"processExportMultimediaUsageReportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getCaliforniaLawData",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Report/GetCaliforniaLawData";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCaliforniaLawData(e)}))}},{key:"processGetCaliforniaLawData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Ie=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getRoles",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/GetRoles";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRoles(e)}))}},{key:"processGetRoles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ad.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getRolesDetailed",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/GetRolesDetailed";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRolesDetailed(e)}))}},{key:"processGetRolesDetailed",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ad.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getRolesListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/GetRolesListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRolesListById(e)}))}},{key:"processGetRolesListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ad.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/CreateRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateRole(e)}))}},{key:"processCreateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Pd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/UpdateRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateRole(e)}))}},{key:"processUpdateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Pd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/DeleteRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteRole(e)}))}},{key:"processDeleteRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"mergeRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/MergeRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMergeRole(e)}))}},{key:"processMergeRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignUserToRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/AssignUserToRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignUserToRole(e)}))}},{key:"processAssignUserToRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pd.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"unassignUserFromRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/UnassignUserFromRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUnassignUserFromRole(e)}))}},{key:"processUnassignUserFromRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignApiClientToRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/AssignApiClientToRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignApiClientToRole(e)}))}},{key:"processAssignApiClientToRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pd.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addRoleLicenseLimitation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/AddRoleLicenseLimitation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddRoleLicenseLimitation(e)}))}},{key:"processAddRoleLicenseLimitation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pd.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteRoleLicenseLimitation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/DeleteRoleLicenseLimitation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteRoleLicenseLimitation(e)}))}},{key:"processDeleteRoleLicenseLimitation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Pd.fromJS(a),Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var o=e.data,s=o;return Cp("Bad Request",t,o,i,Ep.fromJS(s))}if(404===t){var l=e.data,c=l;return Cp("Not Found",t,l,i,gh.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getRolesByRoleId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Role/GetRolesByRoleId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRolesByRoleId(e)}))}},{key:"processGetRolesByRoleId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ld.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Oe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllByLocationId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/GetAllByLocationId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllByLocationId(e)}))}},{key:"processGetAllByLocationId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getRoomListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/GetRoomListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRoomListById(e)}))}},{key:"processGetRoomListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Jd.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/Get/{roomId}";if(void 0===e||null===e)throw new Error("The parameter 'roomId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{roomId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Jd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Jd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Jd.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateRoomName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/ValidateRoomName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateRoomName(e)}))}},{key:"processValidateRoomName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateRoomCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Room/ValidateRoomCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateRoomCode(e)}))}},{key:"processValidateRoomCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Ce=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"recalculate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Rules/Recalculate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processRecalculate(e)}))}},{key:"processRecalculate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"recalculateOnDemand",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Rules/RecalculateOnDemand";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processRecalculateOnDemand(e)}))}},{key:"processRecalculateOnDemand",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),xe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"setSavedFilterDefault",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SavedFilterDefault/SetSavedFilterDefault";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSetSavedFilterDefault(e)}))}},{key:"processSetSavedFilterDefault",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ud.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),je=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"createScormRegistration",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/CreateScormRegistration";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateScormRegistration(e)}))}},{key:"processCreateScormRegistration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"createScormRegistrationProgress",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/CreateScormRegistrationProgress";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateScormRegistrationProgress(e)}))}},{key:"processCreateScormRegistrationProgress",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$v.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=$v.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteScormRegistration",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/DeleteScormRegistration";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteScormRegistration(e)}))}},{key:"processDeleteScormRegistration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var o=e.data,s=o;return Cp("Bad Request",t,o,i,Ep.fromJS(s))}if(404===t){var l=e.data,c=l;return Cp("Not Found",t,l,i,gh.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteScormRegistrationProgress",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/DeleteScormRegistrationProgress";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteScormRegistrationProgress(e)}))}},{key:"processDeleteScormRegistrationProgress",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var o=e.data,s=o;return Cp("Bad Request",t,o,i,Ep.fromJS(s))}if(404===t){var l=e.data,c=l;return Cp("Not Found",t,l,i,gh.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getToken",value:function(e,t){var i=this,r=this.baseUrl+"/api/Scorm/GetToken",n={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetToken(e)}))}},{key:"processGetToken",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScormRegistrationLaunchLink",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Scorm/GetScormRegistrationLaunchLink?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(a+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'redirectOnExitUrl' cannot be null.");void 0!==t&&(a+="redirectOnExitUrl="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetScormRegistrationLaunchLink(e)}))}},{key:"processGetScormRegistrationLaunchLink",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScormRegistration",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/GetScormRegistration?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetScormRegistration(e)}))}},{key:"processGetScormRegistration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScormRegistrationByParticipantId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/GetScormRegistrationByParticipantId?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetScormRegistrationByParticipantId(e)}))}},{key:"processGetScormRegistrationByParticipantId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScormRegistrationProgress",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/Scorm/GetScormRegistrationProgress?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(a+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'fromScormCloud' cannot be null.");void 0!==t&&(a+="fromScormCloud="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetScormRegistrationProgress(e)}))}},{key:"processGetScormRegistrationProgress",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Md.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"setApplicationConfiguration",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/SetApplicationConfiguration";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSetApplicationConfiguration(e)}))}},{key:"processSetApplicationConfiguration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"postBackRegistration",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/PostBackRegistration";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processPostBackRegistration(e)}))}},{key:"processPostBackRegistration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"syncParticipantProgress",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Scorm/SyncParticipantProgress";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSyncParticipantProgress(e)}))}},{key:"processSyncParticipantProgress",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),we=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAllSecurityGroups",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/GetAllSecurityGroups";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSecurityGroups(e)}))}},{key:"processGetAllSecurityGroups",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$d.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSecurityGroupsForFilter",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/GetAllSecurityGroupsForFilter";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSecurityGroupsForFilter(e)}))}},{key:"processGetAllSecurityGroupsForFilter",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Yd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSecurityGroupListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/GetSecurityGroupListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSecurityGroupListById(e)}))}},{key:"processGetSecurityGroupListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$d.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"createSecurityGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/CreateSecurityGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateSecurityGroup(e)}))}},{key:"processCreateSecurityGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Vd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSecurityGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/UpdateSecurityGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSecurityGroup(e)}))}},{key:"processUpdateSecurityGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Vd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteSecurityGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/DeleteSecurityGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSecurityGroup(e)}))}},{key:"processDeleteSecurityGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"assignUserToSecurityGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/AssignUserToSecurityGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignUserToSecurityGroup(e)}))}},{key:"processAssignUserToSecurityGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Vd.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignCriteriaUserToSecurityGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/AssignCriteriaUserToSecurityGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignCriteriaUserToSecurityGroup(e)}))}},{key:"processAssignCriteriaUserToSecurityGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"unassignUserFromSecurityGroup",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/UnassignUserFromSecurityGroup";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUnassignUserFromSecurityGroup(e)}))}},{key:"processUnassignUserFromSecurityGroup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateSecurityGroupName",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SecurityGroup/ValidateSecurityGroupName?";if(null===e)throw new Error("The parameter 'securityGroupId' cannot be null.");if(void 0!==e&&(a+="securityGroupId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'name' cannot be null.");void 0!==t&&(a+="name="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateSecurityGroupName(e)}))}},{key:"processValidateSecurityGroupName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSecurityGroupUsersByGroupId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/GetSecurityGroupUsersByGroupId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSecurityGroupUsersByGroupId(e)}))}},{key:"processGetSecurityGroupUsersByGroupId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Kd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllAvailableSecurityGroupUsers",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityGroup/GetAllAvailableSecurityGroupUsers";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllAvailableSecurityGroupUsers(e)}))}},{key:"processGetAllAvailableSecurityGroupUsers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Pe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAllSecurityUsers",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/GetAllSecurityUsers";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSecurityUsers(e)}))}},{key:"processGetAllSecurityUsers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=eu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getSecurityGroupListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/GetSecurityGroupListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSecurityGroupListById(e)}))}},{key:"processGetSecurityGroupListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Xd.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/Get/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zd.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/UpdateSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSecurityUser(e)}))}},{key:"processUpdateSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xd.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Xd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"resetSecurityUserPassword",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/ResetSecurityUserPassword";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processResetSecurityUserPassword(e)}))}},{key:"processResetSecurityUserPassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"addRoleToSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/AddRoleToSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddRoleToSecurityUser(e)}))}},{key:"processAddRoleToSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xd.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massAddRoleToSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/MassAddRoleToSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMassAddRoleToSecurityUser(e)}))}},{key:"processMassAddRoleToSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteRoleFromSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/DeleteRoleFromSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteRoleFromSecurityUser(e)}))}},{key:"processDeleteRoleFromSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"addSecurityGroupToSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/AddSecurityGroupToSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddSecurityGroupToSecurityUser(e)}))}},{key:"processAddSecurityGroupToSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xd.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massAddSecurityGroupToSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/MassAddSecurityGroupToSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMassAddSecurityGroupToSecurityUser(e)}))}},{key:"processMassAddSecurityGroupToSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteSecurityGroupFromSecurityUser",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/DeleteSecurityGroupFromSecurityUser";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSecurityGroupFromSecurityUser(e)}))}},{key:"processDeleteSecurityGroupFromSecurityUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateSecurityUserPassword",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/UpdateSecurityUserPassword";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSecurityUserPassword(e)}))}},{key:"processUpdateSecurityUserPassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"updateBulkSecurityUserPassword",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/UpdateBulkSecurityUserPassword";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateBulkSecurityUserPassword(e)}))}},{key:"processUpdateBulkSecurityUserPassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"toggleSecurityUserApplicationAccess",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/ToggleSecurityUserApplicationAccess";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processToggleSecurityUserApplicationAccess(e)}))}},{key:"processToggleSecurityUserApplicationAccess",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"updateSecurityUserEmailVerification",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/UpdateSecurityUserEmailVerification";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSecurityUserEmailVerification(e)}))}},{key:"processUpdateSecurityUserEmailVerification",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"sendUserVerificationEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SecurityUser/SendUserVerificationEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendUserVerificationEmail(e)}))}},{key:"processSendUserVerificationEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Te=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllSessionByMonth",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionByMonth";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionByMonth(e)}))}},{key:"processGetAllSessionByMonth",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllPortalSessionByMonth",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllPortalSessionByMonth";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllPortalSessionByMonth(e)}))}},{key:"processGetAllPortalSessionByMonth",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=pc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSessions",value:function(e,t){var i=this,r=this.baseUrl+"/api/Session/GetAllSessions",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllSessions(e)}))}},{key:"processGetAllSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSessionsByScheduleId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionsByScheduleId?";if(null===e)throw new Error("The parameter 'scheduleId' cannot be null.");void 0!==e&&(n+="scheduleId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionsByScheduleId(e)}))}},{key:"processGetAllSessionsByScheduleId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/Get/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=au.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getSessionLicenseWithAdjustedParticipant",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetSessionLicenseWithAdjustedParticipant?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(n+="sessionId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionLicenseWithAdjustedParticipant(e)}))}},{key:"processGetSessionLicenseWithAdjustedParticipant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getSessionLicensePCAMIDList",value:function(e,t){var i=this,r=this.baseUrl+"/api/Session/GetSessionLicensePCAMIDList",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetSessionLicensePCAMIDList(e)}))}},{key:"processGetSessionLicensePCAMIDList",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ou.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ou.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ou.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ou.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSessionAndLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionAndLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionAndLicenses(e)}))}},{key:"processUpdateSessionAndLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=au.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=au.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSessionLicenseProperties",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionLicenseProperties";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionLicenseProperties(e)}))}},{key:"processUpdateSessionLicenseProperties",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updatePublishSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdatePublishSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePublishSetting(e)}))}},{key:"processUpdatePublishSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=er.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=er.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSessionEvaluation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionEvaluation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionEvaluation(e)}))}},{key:"processUpdateSessionEvaluation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"cancelSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/CancelSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCancelSession(e)}))}},{key:"processCancelSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=er.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionLicenses(e)}))}},{key:"processUpdateSessionLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ju.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ju.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"sendUpdateEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/SendUpdateEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSendUpdateEmail(e)}))}},{key:"processSendUpdateEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(On.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(er.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"getAllSessionWaitlistedUsers",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionWaitlistedUsers";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionWaitlistedUsers(e)}))}},{key:"processGetAllSessionWaitlistedUsers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=uh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSessionInstructors",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionInstructors";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionInstructors(e)}))}},{key:"processGetAllSessionInstructors",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Gu.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"exportWaitlistsCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportWaitlistsCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportWaitlistsCsv(e)}))}},{key:"processExportWaitlistsCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportWaitlistsExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportWaitlistsExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportWaitlistsExcel(e)}))}},{key:"processExportWaitlistsExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addToSessionWaitlist",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/AddToSessionWaitlist";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddToSessionWaitlist(e)}))}},{key:"processAddToSessionWaitlist",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dh.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionWaitlist",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionWaitlist";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionWaitlist(e)}))}},{key:"processUpdateSessionWaitlist",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dh.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=dh.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteFromSessionWaitlist",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/DeleteFromSessionWaitlist";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteFromSessionWaitlist(e)}))}},{key:"processDeleteFromSessionWaitlist",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSessionInvites",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionInvites";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionInvites(e)}))}},{key:"processGetAllSessionInvites",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ou.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportInvitesCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportInvitesCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportInvitesCsv(e)}))}},{key:"processExportInvitesCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportInvitesExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportInvitesExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportInvitesExcel(e)}))}},{key:"processExportInvitesExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteSessionInvites",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/DeleteSessionInvites";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSessionInvites(e)}))}},{key:"processDeleteSessionInvites",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"declineSessionInvites",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/DeclineSessionInvites";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeclineSessionInvites(e)}))}},{key:"processDeclineSessionInvites",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllSessionEvaluations",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionEvaluations";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionEvaluations(e)}))}},{key:"processGetAllSessionEvaluations",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=yu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportEvaluationsCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportEvaluationsCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportEvaluationsCsv(e)}))}},{key:"processExportEvaluationsCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportEvaluationsExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ExportEvaluationsExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportEvaluationsExcel(e)}))}},{key:"processExportEvaluationsExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetSessionEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionEmailSetting(e)}))}},{key:"processGetSessionEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=lu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"createSessionEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/CreateSessionEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateSessionEmailSetting(e)}))}},{key:"processCreateSessionEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=su.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=su.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSessionEmailSetting",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionEmailSetting";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionEmailSetting(e)}))}},{key:"processUpdateSessionEmailSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=su.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=su.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getAllSessionMedia",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionMedia";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionMedia(e)}))}},{key:"processGetAllSessionMedia",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ju.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteSessionMediaFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/DeleteSessionMediaFile?";if(null===e)throw new Error("The parameter 'sessionMediaFileId' cannot be null.");void 0!==e&&(n+="sessionMediaFileId="+encodeURIComponent(""+e)+"&");var a={method:"DELETE",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSessionMediaFile(e)}))}},{key:"processDeleteSessionMediaFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateSessionMediaFile",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionMediaFile";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionMediaFile(e)}))}},{key:"processUpdateSessionMediaFile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Lu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Lu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateSessionMediaFiles",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionMediaFiles";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionMediaFiles(e)}))}},{key:"processUpdateSessionMediaFiles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Lu.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(Lu.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"createUserFavoriteReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/CreateUserFavoriteReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserFavoriteReport(e)}))}},{key:"processCreateUserFavoriteReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ra.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=ra.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteUserFavoriteSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/DeleteUserFavoriteSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserFavoriteSession(e)}))}},{key:"processDeleteUserFavoriteSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserFavoriteSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetUserFavoriteSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserFavoriteSession(e)}))}},{key:"processGetUserFavoriteSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ra.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getInstructorSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetInstructorSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetInstructorSessions(e)}))}},{key:"processGetInstructorSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tr.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getInstructorSessionById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetInstructorSessionById/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetInstructorSessionById(e)}))}},{key:"processGetInstructorSessionById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=es.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"addInstructorSessionMaterials",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/AddInstructorSessionMaterials";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddInstructorSessionMaterials(e)}))}},{key:"processAddInstructorSessionMaterials",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllSessionSubjectAreaRegulatoryMappings",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionSubjectAreaRegulatoryMappings";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionSubjectAreaRegulatoryMappings(e)}))}},{key:"processGetAllSessionSubjectAreaRegulatoryMappings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(nh.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getAllSessionUnapprovedSubjectAreaCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionUnapprovedSubjectAreaCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionUnapprovedSubjectAreaCredits(e)}))}},{key:"processGetAllSessionUnapprovedSubjectAreaCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Dh.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"approveSessionSubjectAreaCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/ApproveSessionSubjectAreaCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processApproveSessionSubjectAreaCredits(e)}))}},{key:"processApproveSessionSubjectAreaCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"saveSessionEvaluationStatistics",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/SaveSessionEvaluationStatistics";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSaveSessionEvaluationStatistics(e)}))}},{key:"processSaveSessionEvaluationStatistics",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(bu.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getComputedEvaluationStatistics",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetComputedEvaluationStatistics";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetComputedEvaluationStatistics(e)}))}},{key:"processGetComputedEvaluationStatistics",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getEvaluationStatisticsBySessionId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetEvaluationStatisticsBySessionId/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEvaluationStatisticsBySessionId(e)}))}},{key:"processGetEvaluationStatisticsBySessionId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(bu.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getEvaluationStatisticsByQuestionId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetEvaluationStatisticsByQuestionId/{questionId}";if(void 0===e||null===e)throw new Error("The parameter 'questionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{questionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEvaluationStatisticsByQuestionId(e)}))}},{key:"processGetEvaluationStatisticsByQuestionId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=bu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getSessionLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetSessionLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionLicenses(e)}))}},{key:"processGetSessionLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ju.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getAllNYCounty",value:function(e,t){var i=this,r=this.baseUrl+"/api/Session/GetAllNYCounty",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllNYCounty(e)}))}},{key:"processGetAllNYCounty",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(tc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getNYLocation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetNYLocation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNYLocation(e)}))}},{key:"processGetNYLocation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"generateSessionLinkGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GenerateSessionLinkGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGenerateSessionLinkGuid(e)}))}},{key:"processGenerateSessionLinkGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Au.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"clone",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/Clone";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processClone(e)}))}},{key:"processClone",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionSettings",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionSettings";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionSettings(e)}))}},{key:"processUpdateSessionSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=er.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=er.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getSessionSettings",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetSessionSettings";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionSettings(e)}))}},{key:"processGetSessionSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Cu.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getCourseSessionDetailsById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetCourseSessionDetailsById/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessionDetailsById(e)}))}},{key:"processGetCourseSessionDetailsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ki.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessionsDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetCourseSessionsDetails";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetCourseSessionsDetails(e)}))}},{key:"processGetCourseSessionsDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ki.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateMultiSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateMultiSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateMultiSession(e)}))}},{key:"processUpdateMultiSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(p)}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"getAllSessionsByScheduleIdOrSessionId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetAllSessionsByScheduleIdOrSessionId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionsByScheduleIdOrSessionId(e)}))}},{key:"processGetAllSessionsByScheduleIdOrSessionId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"addSessionAttendanceSheets",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/AddSessionAttendanceSheets";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddSessionAttendanceSheets(e)}))}},{key:"processAddSessionAttendanceSheets",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=au.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addToMultiSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/AddToMultiSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddToMultiSession(e)}))}},{key:"processAddToMultiSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"removeFromMultiSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/RemoveFromMultiSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processRemoveFromMultiSession(e)}))}},{key:"processRemoveFromMultiSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createMultiSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/CreateMultiSession";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateMultiSession(e)}))}},{key:"processCreateMultiSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getMultiSessionLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/GetMultiSessionLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetMultiSessionLicenses(e)}))}},{key:"processGetMultiSessionLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ec.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"updateMultiSessionLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateMultiSessionLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateMultiSessionLicenses(e)}))}},{key:"processUpdateMultiSessionLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(p)}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"addSessionInviteUsers",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/AddSessionInviteUsers";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddSessionInviteUsers(e)}))}},{key:"processAddSessionInviteUsers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addBulkSessionMaterials",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/AddBulkSessionMaterials";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddBulkSessionMaterials(e)}))}},{key:"processAddBulkSessionMaterials",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionAttendanceValidated",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Session/UpdateSessionAttendanceValidated";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSessionAttendanceValidated(e)}))}},{key:"processUpdateSessionAttendanceValidated",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}}]),e}(),Ae=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_u.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSessionParticipantIds",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetAllSessionParticipantIds";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionParticipantIds(e)}))}},{key:"processGetAllSessionParticipantIds",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"exportCsv",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/ExportCsv?";if(null===e)throw new Error("The parameter 'isSimultaneous' cannot be null.");void 0!==e&&(a+="isSimultaneous="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/ExportExcel?";if(null===e)throw new Error("The parameter 'isSimultaneous' cannot be null.");void 0!==e&&(a+="isSimultaneous="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"decline",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/Decline";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDecline(e)}))}},{key:"processDecline",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/Validate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidate(e)}))}},{key:"processValidate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateCompletionDate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/UpdateCompletionDate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateCompletionDate(e)}))}},{key:"processUpdateCompletionDate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"updateParticipantAndLicense",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/UpdateParticipantAndLicense";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateParticipantAndLicense(e)}))}},{key:"processUpdateParticipantAndLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateParticipantLicenseCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/UpdateParticipantLicenseCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateParticipantLicenseCredits(e)}))}},{key:"processUpdateParticipantLicenseCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Zu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Zu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateParticipantLicenseProperties",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/UpdateParticipantLicenseProperties";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateParticipantLicenseProperties(e)}))}},{key:"processUpdateParticipantLicenseProperties",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Xu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createParticipantLicenseCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/CreateParticipantLicenseCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateParticipantLicenseCredits(e)}))}},{key:"processCreateParticipantLicenseCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Tv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Tv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createParticipantLicenseProperties",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/CreateParticipantLicenseProperties";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateParticipantLicenseProperties(e)}))}},{key:"processCreateParticipantLicenseProperties",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Dv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Dv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteParticipantLicenseCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/DeleteParticipantLicenseCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteParticipantLicenseCredits(e)}))}},{key:"processDeleteParticipantLicenseCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteParticipantLicenseProperties",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/DeleteParticipantLicenseProperties";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteParticipantLicenseProperties(e)}))}},{key:"processDeleteParticipantLicenseProperties",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createByGuid",value:function(e,t,i,r,n,a){var o=this,s=this.baseUrl+"/api/SessionParticipant/CreateByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");if(void 0!==e&&(s+="sessionId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'isTentative' cannot be null.");if(void 0!==t&&(s+="isTentative="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'isInstructor' cannot be null.");void 0!==i&&(s+="isInstructor="+encodeURIComponent(""+i)+"&"),s=s.replace(/[?&]$/,"");var l={data:JSON.stringify(n),method:"POST",url:s,headers:{"x-api-version":void 0!==r&&null!==r?""+r:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:a};return this.instance.request(l).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return o.processCreateByGuid(e)}))}},{key:"processCreateByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateByGuid",value:function(e,t,i,r,n,a,o,s){var l=this,c=this.baseUrl+"/api/SessionParticipant/UpdateByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");if(void 0!==e&&(c+="sessionId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'participantId' cannot be null.");if(void 0!==t&&(c+="participantId="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'statusId' cannot be null.");if(void 0!==i&&(c+="statusId="+encodeURIComponent(""+i)+"&"),null===r)throw new Error("The parameter 'isApproval' cannot be null.");if(void 0!==r&&(c+="isApproval="+encodeURIComponent(""+r)+"&"),null===n)throw new Error("The parameter 'isUnvalidate' cannot be null.");void 0!==n&&(c+="isUnvalidate="+encodeURIComponent(""+n)+"&"),c=c.replace(/[?&]$/,"");var d={data:JSON.stringify(o),method:"PUT",url:c,headers:{"x-api-version":void 0!==a&&null!==a?""+a:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:s};return this.instance.request(d).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return l.processUpdateByGuid(e)}))}},{key:"processUpdateByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gu.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteByGuid",value:function(e,t,i,r,n){var a=this,o=this.baseUrl+"/api/SessionParticipant/DeleteByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");if(void 0!==e&&(o+="sessionId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'participantId' cannot be null.");void 0!==t&&(o+="participantId="+encodeURIComponent(""+t)+"&"),o=o.replace(/[?&]$/,"");var s={data:JSON.stringify(r),method:"DELETE",url:o,headers:{"x-api-version":void 0!==i&&null!==i?""+i:"","Content-Type":"application/json"},cancelToken:n};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return a.processDeleteByGuid(e)}))}},{key:"processDeleteByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"addToWaitlistByGuid",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/AddToWaitlistByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(a+="sessionId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processAddToWaitlistByGuid(e)}))}},{key:"processAddToWaitlistByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dh.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteFromWaitlist",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/DeleteFromWaitlist?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(a+="sessionId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"DELETE",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processDeleteFromWaitlist(e)}))}},{key:"processDeleteFromWaitlist",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"declineInviteByGuid",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/DeclineInviteByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(a+="sessionId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processDeclineInviteByGuid(e)}))}},{key:"processDeclineInviteByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateInviteByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/UpdateInviteByGuid";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateInviteByGuid(e)}))}},{key:"processUpdateInviteByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getAllAvailableSessionParticipants",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetAllAvailableSessionParticipants";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllAvailableSessionParticipants(e)}))}},{key:"processGetAllAvailableSessionParticipants",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Nt.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getScheduleInstructors",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetScheduleInstructors";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetScheduleInstructors(e)}))}},{key:"processGetScheduleInstructors",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Gu.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getSessionParticipantCertificates",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetSessionParticipantCertificates";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionParticipantCertificates(e)}))}},{key:"processGetSessionParticipantCertificates",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ru.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getPortalSessionParticipantCertificates",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetPortalSessionParticipantCertificates";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalSessionParticipantCertificates(e)}))}},{key:"processGetPortalSessionParticipantCertificates",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ic.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"uploadCertificate",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/UploadCertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");void 0!==e&&(a+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'files' cannot be null.");i.forEach((function(e){return o.append("files",e.data,e.fileName?e.fileName:"files")}));var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadCertificate(e)}))}},{key:"processUploadCertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ru.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(Ru.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"uploadCertificateV2",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/UploadCertificateV2?";if(null===e)throw new Error("The parameter 'participantIndex' cannot be null.");void 0!==e&&(a+="participantIndex="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o=new FormData;if(null===i||void 0===i)throw new Error("The parameter 'files' cannot be null.");i.forEach((function(e){return o.append("files",e.data,e.fileName?e.fileName:"files")}));var s={data:o,method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processUploadCertificateV2(e)}))}},{key:"processUploadCertificateV2",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Bu.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,v=Object(s.a)(u);try{for(v.s();!(h=v.n()).done;){var p=h.value;d.push(Bu.fromJS(p))}}catch(b){v.e(b)}finally{v.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Cp("Bad Request",t,f,i,Ep.fromJS(m))}var y=e.data,g=y;return Cp("Error",t,y,i,gh.fromJS(g))}},{key:"mergeCertificate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/MergeCertificate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMergeCertificate(e)}))}},{key:"processMergeCertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteCertificate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/DeleteCertificate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteCertificate(e)}))}},{key:"processDeleteCertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ru.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"downloadCertificate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/DownloadCertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantCertificateId' cannot be null.");void 0!==e&&(n+="sessionParticipantCertificateId="+encodeURIComponent(""+e)+"&");var a={responseType:"blob",method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDownloadCertificate(e)}))}},{key:"processDownloadCertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadCertificateV2",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/DownloadCertificateV2?";if(null===e)throw new Error("The parameter 'fileId' cannot be null.");void 0!==e&&(n+="fileId="+encodeURIComponent(""+e)+"&");var a={responseType:"blob",method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDownloadCertificateV2(e)}))}},{key:"processDownloadCertificateV2",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionParticipant",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetSessionParticipant";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionParticipant(e)}))}},{key:"processGetSessionParticipant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_u.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAttendanceSheet",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetAttendanceSheet";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAttendanceSheet(e)}))}},{key:"processGetAttendanceSheet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"saveSessionEvaluation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/SaveSessionEvaluation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSaveSessionEvaluation(e)}))}},{key:"processSaveSessionEvaluation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionEvaluationById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetSessionEvaluationById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionEvaluationById(e)}))}},{key:"processGetSessionEvaluationById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=fu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"saveSessionEvaluationAnswers",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/SaveSessionEvaluationAnswers";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSaveSessionEvaluationAnswers(e)}))}},{key:"processSaveSessionEvaluationAnswers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(uu.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionEvaluationByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetSessionEvaluationByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&");var a={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionEvaluationByGuid(e)}))}},{key:"processGetSessionEvaluationByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=fu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"declineSessionEvaluationByGuid",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/DeclineSessionEvaluationByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&");var a={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeclineSessionEvaluationByGuid(e)}))}},{key:"processDeclineSessionEvaluationByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=fu.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"saveSupportingPageSessionEvaluationAnswers",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/SessionParticipant/SaveSupportingPageSessionEvaluationAnswers?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"POST",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processSaveSupportingPageSessionEvaluationAnswers(e)}))}},{key:"processSaveSupportingPageSessionEvaluationAnswers",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(uu.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else n=null;return Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateRegistration",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/UpdateRegistration";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateRegistration(e)}))}},{key:"processUpdateRegistration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getSessionParticipantAdjustedCredit",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetSessionParticipantAdjustedCredit";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionParticipantAdjustedCredit(e)}))}},{key:"processGetSessionParticipantAdjustedCredit",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Fu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"hasSessionParticipants",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/HasSessionParticipants?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(n+="sessionId="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processHasSessionParticipants(e)}))}},{key:"processHasSessionParticipants",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getExistingSessionParticipants",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetExistingSessionParticipants";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetExistingSessionParticipants(e)}))}},{key:"processGetExistingSessionParticipants",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Ku.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getSessionParticipantLocation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetSessionParticipantLocation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionParticipantLocation(e)}))}},{key:"processGetSessionParticipantLocation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Yu.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllSessionParticipantLicense",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetAllSessionParticipantLicense";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllSessionParticipantLicense(e)}))}},{key:"processGetAllSessionParticipantLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(zu.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getUserLicensePropertyValueByParticipant",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/SessionParticipant/GetUserLicensePropertyValueByParticipant";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicensePropertyValueByParticipant(e)}))}},{key:"processGetUserLicensePropertyValueByParticipant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Dv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}}]),e}(),Ne=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/State/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=fh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),ke=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=jh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getTagListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/GetTagListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetTagListById(e)}))}},{key:"processGetTagListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(xh.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/Get/{tagId}";if(void 0===e||null===e)throw new Error("The parameter 'tagId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{tagId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=xh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=xh.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=xh.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=xh.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=xh.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(xh.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/Archive";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/Merge";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateTagName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/ValidateTagName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateTagName(e)}))}},{key:"processValidateTagName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateTagCode",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/Tag/ValidateTagCode";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateTagCode(e)}))}},{key:"processValidateTagCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),De=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Timezone/GetAll",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Th.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Le=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ExportCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ExportExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllUserType",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserType";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserType(e)}))}},{key:"processGetAllUserType",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ap.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllAdmin",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetAllAdmin",n={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllAdmin(e)}))}},{key:"processGetAllAdmin",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Bv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserLicensesCurrentPeriod",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserLicensesCurrentPeriod";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLicensesCurrentPeriod(e)}))}},{key:"processGetAllUserLicensesCurrentPeriod",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=wv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserLicensesPortal",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserLicensesPortal";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLicensesPortal(e)}))}},{key:"processGetAllUserLicensesPortal",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Jv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getAllUserLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLicenses(e)}))}},{key:"processGetAllUserLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Lv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getGlobalWorkUserCompliance",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetGlobalWorkUserCompliance";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserCompliance(e)}))}},{key:"processGetGlobalWorkUserCompliance",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Wo.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserCompletedTranscripts",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserCompletedTranscripts";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserCompletedTranscripts(e)}))}},{key:"processGetAllUserCompletedTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tp.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getGlobalWorkUserCompletedTranscripts",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetGlobalWorkUserCompletedTranscripts";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserCompletedTranscripts(e)}))}},{key:"processGetGlobalWorkUserCompletedTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=$o.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"exportUserTranscriptCsv",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ExportUserTranscriptCsv";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportUserTranscriptCsv(e)}))}},{key:"processExportUserTranscriptCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportUserTranscriptExcel",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ExportUserTranscriptExcel";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),responseType:"blob",method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportUserTranscriptExcel(e)}))}},{key:"processExportUserTranscriptExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var n=e.headers?e.headers["content-disposition"]:void 0,a=n?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(n):void 0,o=a&&a.length>1?a[3]||a[2]:void 0;return o=o?decodeURIComponent(o):(a=n?/filename="?([^"]*?)"?(;|$)/g.exec(n):void 0)&&a.length>1?a[1]:void 0,Promise.resolve({fileName:o,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getTranscriptListById",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetTranscriptListById";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetTranscriptListById(e)}))}},{key:"processGetTranscriptListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=tp.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllPortalUserCompletedTranscriptSummary",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllPortalUserCompletedTranscriptSummary";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllPortalUserCompletedTranscriptSummary(e)}))}},{key:"processGetAllPortalUserCompletedTranscriptSummary",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ac.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllPortalUserCompletedTranscriptSummaryByGuid",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/User/GetAllPortalUserCompletedTranscriptSummaryByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");if(void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'licenseId' cannot be null.");void 0!==t&&(a+="licenseId="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetAllPortalUserCompletedTranscriptSummaryByGuid(e)}))}},{key:"processGetAllPortalUserCompletedTranscriptSummaryByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=ip.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserUpcomingTranscripts",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserUpcomingTranscripts";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserUpcomingTranscripts(e)}))}},{key:"processGetAllUserUpcomingTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserLearningPlans",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserLearningPlans";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLearningPlans(e)}))}},{key:"processGetAllUserLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ev.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserLearningPlansPrint",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserLearningPlansPrint";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLearningPlansPrint(e)}))}},{key:"processGetAllUserLearningPlansPrint",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Ov.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUserUnregisteredLearningPlans",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUserUnregisteredLearningPlans/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserUnregisteredLearningPlans(e)}))}},{key:"processGetAllUserUnregisteredLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=cp.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getGlobalWorkUserLearningPlans",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlans";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserLearningPlans(e)}))}},{key:"processGetGlobalWorkUserLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=qo.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getGlobalWorkUserLearningPlanDrawer",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlanDrawer";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserLearningPlanDrawer(e)}))}},{key:"processGetGlobalWorkUserLearningPlanDrawer",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Uo.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getGlobalWorkUserLearningPlanRequirement",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlanRequirement";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserLearningPlanRequirement(e)}))}},{key:"processGetGlobalWorkUserLearningPlanRequirement",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zo.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/Get/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getByIdpId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByIdpId(e)}))}},{key:"processGetByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserApplicationByIdpId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetUserApplicationByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserApplicationByIdpId(e)}))}},{key:"processGetUserApplicationByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserPreferences",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetUserPreferences",n={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(n).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserPreferences(e)}))}},{key:"processGetUserPreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"addUserLearningPlanParticipation",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/AddUserLearningPlanParticipation";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddUserLearningPlanParticipation(e)}))}},{key:"processAddUserLearningPlanParticipation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=hv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=hv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateLoginId",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/UpdateLoginId";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLoginId(e)}))}},{key:"processUpdateLoginId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=hv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=hv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"massUpdate",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/MassUpdate";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMassUpdate(e)}))}},{key:"processMassUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massUpdateRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/MassUpdateRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMassUpdateRole(e)}))}},{key:"processMassUpdateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updatePreferences",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/UpdatePreferences";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePreferences(e)}))}},{key:"processUpdatePreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=zv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=zv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"deleteUserRelationship",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/DeleteUserRelationship";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserRelationship(e)}))}},{key:"processDeleteUserRelationship",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Wv.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(204===t)return Cp("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Cp("Bad Request",t,d,i,Ep.fromJS(u))}if(404===t){var h=e.data,v=h;return Cp("Not Found",t,h,i,gh.fromJS(v))}var p=e.data,f=p;return Cp("Error",t,p,i,gh.fromJS(f))}},{key:"changePassword",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ChangePassword";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processChangePassword(e)}))}},{key:"processChangePassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"changeStatus",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ChangeStatus";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processChangeStatus(e)}))}},{key:"processChangeStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserEmail",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/User/ValidateUserEmail?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'email' cannot be null.");void 0!==t&&(a+="email="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateUserEmail(e)}))}},{key:"processValidateUserEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserLoginId",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/User/ValidateUserLoginId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'loginId' cannot be null.");void 0!==t&&(a+="loginId="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateUserLoginId(e)}))}},{key:"processValidateUserLoginId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPersonnedlId",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/User/ValidateUserPersonnedlId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'personnelId' cannot be null.");void 0!==t&&(a+="personnelId="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateUserPersonnedlId(e)}))}},{key:"processValidateUserPersonnedlId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPhoneNumber",value:function(e,t,i,r,n){var a=this,o=this.baseUrl+"/api/User/ValidateUserPhoneNumber?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(o+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'phoneNumber' cannot be null.");if(void 0!==t&&(o+="phoneNumber="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'email' cannot be null.");void 0!==i&&(o+="email="+encodeURIComponent(""+i)+"&");var s={method:"POST",url:o=o.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==r&&null!==r?""+r:"",Accept:"application/json"},cancelToken:n};return this.instance.request(s).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserPhoneNumber(e)}))}},{key:"processValidateUserPhoneNumber",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserAndLicenseDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ValidateUserAndLicenseDetails";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateUserAndLicenseDetails(e)}))}},{key:"processValidateUserAndLicenseDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dp.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserDetails",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/ValidateUserDetails";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateUserDetails(e)}))}},{key:"processValidateUserDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dp.fromJS(a),Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteUserLicense",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/User/DeleteUserLicense?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"DELETE",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processDeleteUserLicense(e)}))}},{key:"processDeleteUserLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteUserFromCognito",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/DeleteUserFromCognito";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserFromCognito(e)}))}},{key:"processDeleteUserFromCognito",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteCompletedUserTranscript",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/DeleteCompletedUserTranscript";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteCompletedUserTranscript(e)}))}},{key:"processDeleteCompletedUserTranscript",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"deleteUserLearningPlan",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/User/DeleteUserLearningPlan?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"DELETE",url:a,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processDeleteUserLearningPlan(e)}))}},{key:"processDeleteUserLearningPlan",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getAllUsersByRole",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetAllUsersByRole";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUsersByRole(e)}))}},{key:"processGetAllUsersByRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(tv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getUserLicensesWithRetro",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetUserLicensesWithRetro";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicensesWithRetro(e)}))}},{key:"processGetUserLicensesWithRetro",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateUserLicenses",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/UpdateUserLicenses";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserLicenses(e)}))}},{key:"processUpdateUserLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"batchUpdateUserPassword",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/BatchUpdateUserPassword";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processBatchUpdateUserPassword(e)}))}},{key:"processBatchUpdateUserPassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateEmail",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/UpdateEmail";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmail(e)}))}},{key:"processUpdateEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getLcbcUserCompletedTranscripts",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetLcbcUserCompletedTranscripts";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserCompletedTranscripts(e)}))}},{key:"processGetLcbcUserCompletedTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=As.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLcbcUserCompliance",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetLcbcUserCompliance";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserCompliance(e)}))}},{key:"processGetLcbcUserCompliance",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=js.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLcbcUserLearningPlanDrawer",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetLcbcUserLearningPlanDrawer";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserLearningPlanDrawer(e)}))}},{key:"processGetLcbcUserLearningPlanDrawer",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Es.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLcbcUserLearningPlanRequirement",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetLcbcUserLearningPlanRequirement";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserLearningPlanRequirement(e)}))}},{key:"processGetLcbcUserLearningPlanRequirement",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=xs.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getLcbcUserLearningPlans",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetLcbcUserLearningPlans";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserLearningPlans(e)}))}},{key:"processGetLcbcUserLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Os.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getDuplicateRecordByName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/GetDuplicateRecordByName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDuplicateRecordByName(e)}))}},{key:"processGetDuplicateRecordByName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(vv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateUserIdpIdAndUsername",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/User/UpdateUserIdpIdAndUsername";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserIdpIdAndUsername(e)}))}},{key:"processUpdateUserIdpIdAndUsername",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}if(201===t){var o,s=e.data;return o=void 0!==s?s:null,Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}}]),e}(),Je=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"get",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/UserAccessTokenStore/Get/{userLoginSessionId}?";if(void 0===e||null===e)throw new Error("The parameter 'userLoginSessionId' must be defined.");if(a=a.replace("{userLoginSessionId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'cognitoClientId' cannot be null.");void 0!==t&&(a+="cognitoClientId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Qh.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"check",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserAccessTokenStore/Check/{userLoginSessionId}";if(void 0===e||null===e)throw new Error("The parameter 'userLoginSessionId' must be defined.");var a={method:"GET",url:n=(n=n.replace("{userLoginSessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCheck(e)}))}},{key:"processCheck",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"set",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserAccessTokenStore/Set";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSet(e)}))}},{key:"processSet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserAccessTokenStore/Delete?";if(null===e)throw new Error("The parameter 'userLoginSessionId' cannot be null.");void 0!==e&&(n+="userLoginSessionId="+encodeURIComponent(""+e)+"&");var a={method:"DELETE",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"clear",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserAccessTokenStore/Clear?";if(null===e)throw new Error("The parameter 'userLoginSessionId' cannot be null.");void 0!==e&&(n+="userLoginSessionId="+encodeURIComponent(""+e)+"&");var a={method:"DELETE",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processClear(e)}))}},{key:"processClear",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"clearAllUserLoginSession",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserAccessTokenStore/ClearAllUserLoginSession?";if(null===e)throw new Error("The parameter 'userName' cannot be null.");void 0!==e&&(n+="userName="+encodeURIComponent(""+e)+"&");var a={method:"DELETE",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processClearAllUserLoginSession(e)}))}},{key:"processClearAllUserLoginSession",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Fe=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAllUserCourseSessions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserCourseSession/GetAllUserCourseSessions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserCourseSessions(e)}))}},{key:"processGetAllUserCourseSessions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=dv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getCourseSessionByParticipant",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/UserCourseSession/GetCourseSessionByParticipant/{sessionId}?";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");if(a=a.replace("{sessionId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'userId' cannot be null.");void 0!==t&&(a+="userId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetCourseSessionByParticipant(e)}))}},{key:"processGetCourseSessionByParticipant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Xi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Be=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getUserLicenseComplianceReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseComplianceReport(e)}))}},{key:"processGetUserLicenseComplianceReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=jv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserLicenseComplianceSubPeriod",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceSubPeriod";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseComplianceSubPeriod(e)}))}},{key:"processGetUserLicenseComplianceSubPeriod",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ui.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getUserLicenseComplianceMainPeriods",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceMainPeriods";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseComplianceMainPeriods(e)}))}},{key:"processGetUserLicenseComplianceMainPeriods",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ui.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getUserLicenseComplianceCourseListing",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceCourseListing";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseComplianceCourseListing(e)}))}},{key:"processGetUserLicenseComplianceCourseListing",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=oi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserLicenseComplianceCourseSummary",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceCourseSummary";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseComplianceCourseSummary(e)}))}},{key:"processGetUserLicenseComplianceCourseSummary",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=di.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getUserLicenseCompliancePeriodExemptions",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseCompliancePeriodExemptions";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseCompliancePeriodExemptions(e)}))}},{key:"processGetUserLicenseCompliancePeriodExemptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(vi.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"createUserLicenseExemptionValue",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/CreateUserLicenseExemptionValue";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserLicenseExemptionValue(e)}))}},{key:"processCreateUserLicenseExemptionValue",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getUserLicenseList",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseList";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicenseList(e)}))}},{key:"processGetUserLicenseList",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jl.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getPeriodRemainingRequirements",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetPeriodRemainingRequirements";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPeriodRemainingRequirements(e)}))}},{key:"processGetPeriodRemainingRequirements",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(hi.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"createUserRetroactiveCredit",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/CreateUserRetroactiveCredit";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserRetroactiveCredit(e)}))}},{key:"processCreateUserRetroactiveCredit",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getFuturePeriodsAvailableCredits",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetFuturePeriodsAvailableCredits";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetFuturePeriodsAvailableCredits(e)}))}},{key:"processGetFuturePeriodsAvailableCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(xt.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"deleteUserRetroactiveCredit",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/DeleteUserRetroactiveCredit";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserRetroactiveCredit(e)}))}},{key:"processDeleteUserRetroactiveCredit",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getComplianceReportToPrint",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetComplianceReportToPrint";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetComplianceReportToPrint(e)}))}},{key:"processGetComplianceReportToPrint",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Jc.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getComplianceReportCourseListingToPrint",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetComplianceReportCourseListingToPrint";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetComplianceReportCourseListingToPrint(e)}))}},{key:"processGetComplianceReportCourseListingToPrint",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Fc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getPortalComplianceReport",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceReport";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalComplianceReport(e)}))}},{key:"processGetPortalComplianceReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getPortalComplianceReportByGuid",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceReportByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");if(void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'isCurrentPeriod' cannot be null.");void 0!==t&&(a+="isCurrentPeriod="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetPortalComplianceReportByGuid(e)}))}},{key:"processGetPortalComplianceReportByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=gi.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"getPortalComplianceSubPeriods",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceSubPeriods";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalComplianceSubPeriods(e)}))}},{key:"processGetPortalComplianceSubPeriods",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(fc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getPortalComplianceMainPeriods",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceMainPeriods";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalComplianceMainPeriods(e)}))}},{key:"processGetPortalComplianceMainPeriods",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(fc.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getSessionUsersWithRetro",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetSessionUsersWithRetro";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSessionUsersWithRetro(e)}))}},{key:"processGetSessionUsersWithRetro",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(ch.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getUserTranscriptsWithRetro",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserTranscriptsWithRetro";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserTranscriptsWithRetro(e)}))}},{key:"processGetUserTranscriptsWithRetro",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateNYLawCourseApproval",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/UpdateNYLawCourseApproval";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateNYLawCourseApproval(e)}))}},{key:"processUpdateNYLawCourseApproval",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"getUserCompliancePeriods",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetUserCompliancePeriods";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserCompliancePeriods(e)}))}},{key:"processGetUserCompliancePeriods",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(av.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"getLicensesWithRetroRecords",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetLicensesWithRetroRecords";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicensesWithRetroRecords(e)}))}},{key:"processGetLicensesWithRetroRecords",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(c)}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"updateNYLawCourseApprovalViaCovidWaiver",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/UpdateNYLawCourseApprovalViaCovidWaiver";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateNYLawCourseApprovalViaCovidWaiver(e)}))}},{key:"processUpdateNYLawCourseApprovalViaCovidWaiver",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}var o=e.data,s=o;return Cp("Error",t,o,i,gh.fromJS(s))}},{key:"bulkDeleteUserRetroactiveCredit",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserLicenseCompliance/BulkDeleteUserRetroactiveCredit";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processBulkDeleteUserRetroactiveCredit(e)}))}},{key:"processBulkDeleteUserRetroactiveCredit",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Re=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"createUserOnDemandValidationStatus",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserOnDemandSession/CreateUserOnDemandValidationStatus";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserOnDemandValidationStatus(e)}))}},{key:"processCreateUserOnDemandValidationStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Rv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Rv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"createUserOnDemandVerificationStatus",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserOnDemandSession/CreateUserOnDemandVerificationStatus";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserOnDemandVerificationStatus(e)}))}},{key:"processCreateUserOnDemandVerificationStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Gv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Gv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateUserOnDemandValidationStatus",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserOnDemandSession/UpdateUserOnDemandValidationStatus";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserOnDemandValidationStatus(e)}))}},{key:"processUpdateUserOnDemandValidationStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Uv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Uv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"updateUserOnDemandVerificationStatus",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserOnDemandSession/UpdateUserOnDemandVerificationStatus";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserOnDemandVerificationStatus(e)}))}},{key:"processUpdateUserOnDemandVerificationStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Uv.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=Uv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"getUserOnDemandSessionDetails",value:function(e,t,i,r){var n=this,a=this.baseUrl+"/api/UserOnDemandSession/GetUserOnDemandSessionDetails?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==t&&(a+="sessionId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(o).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return n.processGetUserOnDemandSessionDetails(e)}))}},{key:"processGetUserOnDemandSessionDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n=null,a=e.data;if(Array.isArray(a)){n=[];var o,l=Object(s.a)(a);try{for(l.s();!(o=l.n()).done;){var c=o.value;n.push(Uv.fromJS(c))}}catch(p){l.e(p)}finally{l.f()}}else n=null;return Promise.resolve(n)}if(404===t){var d=e.data,u=d;return Cp("Not Found",t,d,i,gh.fromJS(u))}var h=e.data,v=h;return Cp("Error",t,h,i,gh.fromJS(v))}},{key:"resetDisqualifiedVideo",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserOnDemandSession/ResetDisqualifiedVideo";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processResetDisqualifiedVideo(e)}))}},{key:"processResetDisqualifiedVideo",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}}]),e}(),Ue=function(){function e(t,i){Object(l.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||u.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(c.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserSavedFilter/GetAll";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=Yv.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserSavedFilter/Get";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_v.fromJS(a),Promise.resolve(n)}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserSavedFilter/Create";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_v.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=_v.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserSavedFilter/Update";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"PUT",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=_v.fromJS(a),Promise.resolve(n)}if(201===t){var o,s=e.data;return o=_v.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Cp("Bad Request",t,l,i,Ep.fromJS(c))}var d=e.data,u=d;return Cp("Error",t,d,i,gh.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserSavedFilter/Delete";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"DELETE",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var n=e.data,a=n;return Cp("Bad Request",t,n,i,Ep.fromJS(a))}if(404===t){var o=e.data,s=o;return Cp("Not Found",t,o,i,gh.fromJS(s))}var l=e.data,c=l;return Cp("Error",t,l,i,gh.fromJS(c))}},{key:"validateUserSavedFilterName",value:function(e,t,i){var r=this,n=this.baseUrl+"/api/UserSavedFilter/ValidateUserSavedFilterName";n=n.replace(/[?&]$/,"");var a={data:JSON.stringify(t),method:"POST",url:n,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(a).catch((function(e){if(xp(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateUserSavedFilterName(e)}))}},{key:"processValidateUserSavedFilterName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var n,a=e.data;return n=void 0!==a?a:null,Promise.resolve(n)}return 200!==t&&204!==t?Cp("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),Ge=function(){function e(t){if(Object(l.a)(this,e),this.accreditationFormId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.licenseId=void 0,this.licenseName=void 0,this.libraryFieldId=void 0,this.libraryFileName=void 0,this.url=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.accreditationFormId=e.accreditationFormId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.libraryFieldId=e.libraryFieldId,this.libraryFileName=e.libraryFileName,this.url=e.url)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).accreditationFormId=this.accreditationFormId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.libraryFieldId=this.libraryFieldId,e.libraryFileName=this.libraryFileName,e.url=this.url,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qe=function(){function e(t){if(Object(l.a)(this,e),this.accreditationForms=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.accreditationForms)){this.accreditationForms=[];var t,i=Object(s.a)(e.accreditationForms);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.accreditationForms.push(Ge.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.accreditationForms)){e.accreditationForms=[];var t,i=Object(s.a)(this.accreditationForms);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.accreditationForms.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Me=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ze=function(){function e(t){if(Object(l.a)(this,e),this.competencyId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),We=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ve=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.title=void 0,this.description=void 0,this.note=void 0,this.participantCount=void 0,this.isSelfValidateAllowed=void 0,this.archivedDate=void 0,this.activityCompetencies=void 0,this.activityTags=void 0,this.activityParticipants=void 0,this.activityLearningPlans=void 0,this.activityMaterials=void 0,this.activityCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.activityId=e.activityId,this.title=e.title,this.description=e.description,this.note=e.note,this.participantCount=e.participantCount,this.isSelfValidateAllowed=e.isSelfValidateAllowed,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.activityCompetencies)){this.activityCompetencies=[];var t,i=Object(s.a)(e.activityCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activityCompetencies.push(ze.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.activityTags)){this.activityTags=[];var n,a=Object(s.a)(e.activityTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.activityTags.push(Xe.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.activityParticipants)){this.activityParticipants=[];var l,c=Object(s.a)(e.activityParticipants);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.activityParticipants.push(He.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.activityLearningPlans)){this.activityLearningPlans=[];var u,h=Object(s.a)(e.activityLearningPlans);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.activityLearningPlans.push(_e.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.activityMaterials)){this.activityMaterials=[];var p,f=Object(s.a)(e.activityMaterials);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.activityMaterials.push($e.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.activityCredits)){this.activityCredits=[];var y,g=Object(s.a)(e.activityCredits);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.activityCredits.push(We.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).activityId=this.activityId,e.title=this.title,e.description=this.description,e.note=this.note,e.participantCount=this.participantCount,e.isSelfValidateAllowed=this.isSelfValidateAllowed,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.activityCompetencies)){e.activityCompetencies=[];var t,i=Object(s.a)(this.activityCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activityCompetencies.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.activityTags)){e.activityTags=[];var n,a=Object(s.a)(this.activityTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.activityTags.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.activityParticipants)){e.activityParticipants=[];var l,c=Object(s.a)(this.activityParticipants);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.activityParticipants.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.activityLearningPlans)){e.activityLearningPlans=[];var u,h=Object(s.a)(this.activityLearningPlans);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.activityLearningPlans.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.activityMaterials)){e.activityMaterials=[];var p,f=Object(s.a)(this.activityMaterials);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.activityMaterials.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.activityCredits)){e.activityCredits=[];var y,g=Object(s.a)(this.activityCredits);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.activityCredits.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_e=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ye=function(){function e(t){if(Object(l.a)(this,e),this.activities=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.activities)){this.activities=[];var t,i=Object(s.a)(e.activities);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activities.push(Ve.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.activities)){e.activities=[];var t,i=Object(s.a)(this.activities);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activities.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$e=function(){function e(t){if(Object(l.a)(this,e),this.activityMaterialId=void 0,this.activityId=void 0,this.fileId=void 0,this.isPublic=void 0,this.fileType=void 0,this.fileName=void 0,this.fileSize=void 0,this.fileExtension=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityMaterialId=e.activityMaterialId,this.activityId=e.activityId,this.fileId=e.fileId,this.isPublic=e.isPublic,this.fileType=e.fileType,this.fileName=e.fileName,this.fileSize=e.fileSize,this.fileExtension=e.fileExtension)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityMaterialId=this.activityMaterialId,e.activityId=this.activityId,e.fileId=this.fileId,e.isPublic=this.isPublic,e.fileType=this.fileType,e.fileName=this.fileName,e.fileSize=this.fileSize,e.fileExtension=this.fileExtension,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),He=function(){function e(t){if(Object(l.a)(this,e),this.activityParticipantId=void 0,this.activityId=void 0,this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.completionDate=void 0,this.locationName=void 0,this.avatar=void 0,this.userType=void 0,this.validatedBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.locationName=e.locationName,this.avatar=e.avatar,this.userType=e.userType,this.validatedBy=e.validatedBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.locationName=this.locationName,e.avatar=this.avatar,e.userType=this.userType,e.validatedBy=this.validatedBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ke=function(){function e(t){if(Object(l.a)(this,e),this.activityParticipants=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.activityParticipants)){this.activityParticipants=[];var t,i=Object(s.a)(e.activityParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activityParticipants.push(He.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.activityParticipants)){e.activityParticipants=[];var t,i=Object(s.a)(this.activityParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activityParticipants.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qe=function(){function e(t){if(Object(l.a)(this,e),this.activitySavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.isDefault=void 0,this.filter=void 0,this.createdBy=void 0,this.isSystem=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activitySavedFilterId=e.activitySavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.isDefault=e.isDefault,this.filter=e.filter,this.createdBy=e.createdBy,this.isSystem=e.isSystem)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activitySavedFilterId=this.activitySavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.isDefault=this.isDefault,e.filter=this.filter,e.createdBy=this.createdBy,e.isSystem=this.isSystem,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ze=function(){function e(t){if(Object(l.a)(this,e),this.activitySavedFilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.activitySavedFilters)){this.activitySavedFilters=[];var t,i=Object(s.a)(e.activitySavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activitySavedFilters.push(Qe.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.activitySavedFilters)){e.activitySavedFilters=[];var t,i=Object(s.a)(this.activitySavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activitySavedFilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xe=function(){function e(t){if(Object(l.a)(this,e),this.tagId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.tagId=e.tagId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tagId=this.tagId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),et=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.userIdList=void 0,this.completionDate=void 0,this.validatedBy=void 0,this.hoursSpent=void 0,this.learningPlanId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.activityId=e.activityId,Array.isArray(e.userIdList)){this.userIdList=[];var t,i=Object(s.a)(e.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.validatedBy=e.validatedBy,this.hoursSpent=e.hoursSpent,this.learningPlanId=e.learningPlanId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).activityId=this.activityId,Array.isArray(this.userIdList)){e.userIdList=[];var t,i=Object(s.a)(this.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.hoursSpent=this.hoursSpent,e.learningPlanId=this.learningPlanId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tt=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.validatedBy=void 0,this.participantList=void 0,this.sendEmailConfirmation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.participantList=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.validatedBy=e.validatedBy,Array.isArray(e.participantList)){this.participantList=[];var t,i=Object(s.a)(e.participantList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.participantList.push(Rs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.sendEmailConfirmation=e.sendEmailConfirmation}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.validatedBy=this.validatedBy,Array.isArray(this.participantList)){e.participantList=[];var t,i=Object(s.a)(this.participantList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.participantList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.sendEmailConfirmation=this.sendEmailConfirmation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),it=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.fileIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,Array.isArray(e.fileIdList))){this.fileIdList=[];var t,i=Object(s.a)(e.fileIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.fileIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,Array.isArray(this.fileIdList)){e.fileIdList=[];var t,i=Object(s.a)(this.fileIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.fileIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rt=function(){function e(t){if(Object(l.a)(this,e),this.collectionId=void 0,this.courseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.collectionId=e.collectionId,this.courseId=e.courseId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).collectionId=this.collectionId,e.courseId=this.courseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nt=function(){function e(t){if(Object(l.a)(this,e),this.exemptedIdList=void 0,this.isSelectedAll=void 0,this.sessionId=void 0,this.userIds=void 0,this.sendEmailConfirmation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.userIds=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.exemptedIdList)){this.exemptedIdList=[];var t,i=Object(s.a)(e.exemptedIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.exemptedIdList.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(this.isSelectedAll=e.isSelectedAll,this.sessionId=e.sessionId,Array.isArray(e.userIds)){this.userIds=[];var n,a=Object(s.a)(e.userIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userIds.push(o)}}catch(l){a.e(l)}finally{a.f()}}this.sendEmailConfirmation=e.sendEmailConfirmation}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.exemptedIdList)){e.exemptedIdList=[];var t,i=Object(s.a)(this.exemptedIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.exemptedIdList.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(e.isSelectedAll=this.isSelectedAll,e.sessionId=this.sessionId,Array.isArray(this.userIds)){e.userIds=[];var n,a=Object(s.a)(this.userIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userIds.push(o)}}catch(l){a.e(l)}finally{a.f()}}return e.sendEmailConfirmation=this.sendEmailConfirmation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),at=function(){function e(t){if(Object(l.a)(this,e),this.userLoginSessionId=void 0,this.localStorageJson=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLoginSessionId=e.userLoginSessionId,this.localStorageJson=e.localStorageJson)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLoginSessionId=this.userLoginSessionId,e.localStorageJson=this.localStorageJson,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ot=function(){function e(t){if(Object(l.a)(this,e),this.affidavitFormId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.htmlBody=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.affidavitFormId=e.affidavitFormId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.htmlBody=e.htmlBody)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).affidavitFormId=this.affidavitFormId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.htmlBody=this.htmlBody,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),st=function(){function e(t){if(Object(l.a)(this,e),this.affidavitForms=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.affidavitForms)){this.affidavitForms=[];var t,i=Object(s.a)(e.affidavitForms);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.affidavitForms.push(ot.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.affidavitForms)){e.affidavitForms=[];var t,i=Object(s.a)(this.affidavitForms);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.affidavitForms.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lt=function(){function e(t){if(Object(l.a)(this,e),this.affiliationId=void 0,this.name=void 0,this.address=void 0,this.city=void 0,this.countryId=void 0,this.stateId=void 0,this.zip=void 0,this.phone=void 0,this.timezoneId=void 0,this.isActive=void 0,this.code=void 0,this.userCount=void 0,this.country=void 0,this.state=void 0,this.timezone=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.affiliationId=e.affiliationId,this.name=e.name,this.address=e.address,this.city=e.city,this.countryId=e.countryId,this.stateId=e.stateId,this.zip=e.zip,this.phone=e.phone,this.timezoneId=e.timezoneId,this.isActive=e.isActive,this.code=e.code,this.userCount=e.userCount,this.country=e.country,this.state=e.state,this.timezone=e.timezone)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).affiliationId=this.affiliationId,e.name=this.name,e.address=this.address,e.city=this.city,e.countryId=this.countryId,e.stateId=this.stateId,e.zip=this.zip,e.phone=this.phone,e.timezoneId=this.timezoneId,e.isActive=this.isActive,e.code=this.code,e.userCount=this.userCount,e.country=this.country,e.state=this.state,e.timezone=this.timezone,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ct=function(){function e(t){if(Object(l.a)(this,e),this.affiliations=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.affiliations)){this.affiliations=[];var t,i=Object(s.a)(e.affiliations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.affiliations.push(lt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.affiliations)){e.affiliations=[];var t,i=Object(s.a)(this.affiliations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.affiliations.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dt=function(){function e(t){if(Object(l.a)(this,e),this.minimumLength=void 0,this.requireLowercase=void 0,this.requireNumbers=void 0,this.requireSymbols=void 0,this.requireUppercase=void 0,this.temporaryPasswordValidityDays=void 0,this.accessTokenValidity=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.minimumLength=e.minimumLength,this.requireLowercase=e.requireLowercase,this.requireNumbers=e.requireNumbers,this.requireSymbols=e.requireSymbols,this.requireUppercase=e.requireUppercase,this.temporaryPasswordValidityDays=e.temporaryPasswordValidityDays,this.accessTokenValidity=e.accessTokenValidity)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).minimumLength=this.minimumLength,e.requireLowercase=this.requireLowercase,e.requireNumbers=this.requireNumbers,e.requireSymbols=this.requireSymbols,e.requireUppercase=this.requireUppercase,e.temporaryPasswordValidityDays=this.temporaryPasswordValidityDays,e.accessTokenValidity=this.accessTokenValidity,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ut=function(){function e(t){if(Object(l.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?wh.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ht=function(){function e(t){if(Object(l.a)(this,e),this.attendanceFormId=void 0,this.type=void 0,this.sequence=void 0,this.includeForDisplay=void 0,this.label=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.attendanceFormId=e.attendanceFormId,this.type=e.type,this.sequence=e.sequence,this.includeForDisplay=e.includeForDisplay,this.label=e.label)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).attendanceFormId=this.attendanceFormId,e.type=this.type,e.sequence=this.sequence,e.includeForDisplay=this.includeForDisplay,e.label=this.label,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Name=1]="Name",e[e.LicenseDetails=2]="LicenseDetails",e[e.Email=3]="Email",e[e.CustomColumn1=4]="CustomColumn1",e[e.CustomColumn2=5]="CustomColumn2",e[e.CustomColumn3=6]="CustomColumn3"}(r||(r={}));var vt,pt=function(){function e(t){if(Object(l.a)(this,e),this.attendanceFormId=void 0,this.name=void 0,this.isActive=void 0,this.isSystem=void 0,this.isDefault=void 0,this.headerIncludeFirmLogo=void 0,this.headerTitle=void 0,this.headerFirmName=void 0,this.headerOptions=void 0,this.headerText=void 0,this.footerOptions=void 0,this.footerText=void 0,this.blankSignatureLinesNumber=void 0,this.includeInstructorSignatureOnFirstRow=void 0,this.includeMiddleName=void 0,this.columns=void 0,this.information=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.attendanceFormId=e.attendanceFormId,this.name=e.name,this.isActive=e.isActive,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.headerIncludeFirmLogo=e.headerIncludeFirmLogo,this.headerTitle=e.headerTitle,this.headerFirmName=e.headerFirmName,this.headerOptions=e.headerOptions,this.headerText=e.headerText,this.footerOptions=e.footerOptions,this.footerText=e.footerText,this.blankSignatureLinesNumber=e.blankSignatureLinesNumber,this.includeInstructorSignatureOnFirstRow=e.includeInstructorSignatureOnFirstRow,this.includeMiddleName=e.includeMiddleName,Array.isArray(e.columns)){this.columns=[];var t,i=Object(s.a)(e.columns);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.columns.push(ht.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.information)){this.information=[];var n,a=Object(s.a)(e.information);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.information.push(mt.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).attendanceFormId=this.attendanceFormId,e.name=this.name,e.isActive=this.isActive,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.headerIncludeFirmLogo=this.headerIncludeFirmLogo,e.headerTitle=this.headerTitle,e.headerFirmName=this.headerFirmName,e.headerOptions=this.headerOptions,e.headerText=this.headerText,e.footerOptions=this.footerOptions,e.footerText=this.footerText,e.blankSignatureLinesNumber=this.blankSignatureLinesNumber,e.includeInstructorSignatureOnFirstRow=this.includeInstructorSignatureOnFirstRow,e.includeMiddleName=this.includeMiddleName,Array.isArray(this.columns)){e.columns=[];var t,i=Object(s.a)(this.columns);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.columns.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.information)){e.information=[];var n,a=Object(s.a)(this.information);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.information.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ft=function(){function e(t){if(Object(l.a)(this,e),this.attendanceFormId=void 0,this.name=void 0,this.isActive=void 0,this.isSystem=void 0,this.isDefault=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.attendanceFormId=e.attendanceFormId,this.name=e.name,this.isActive=e.isActive,this.isSystem=e.isSystem,this.isDefault=e.isDefault)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).attendanceFormId=this.attendanceFormId,e.name=this.name,e.isActive=this.isActive,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mt=function(){function e(t){if(Object(l.a)(this,e),this.attendanceFormId=void 0,this.type=void 0,this.column=void 0,this.sequence=void 0,this.includeForDisplay=void 0,this.label=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.attendanceFormId=e.attendanceFormId,this.type=e.type,this.column=e.column,this.sequence=e.sequence,this.includeForDisplay=e.includeForDisplay,this.label=e.label)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).attendanceFormId=this.attendanceFormId,e.type=this.type,e.column=this.column,e.sequence=this.sequence,e.includeForDisplay=this.includeForDisplay,e.label=this.label,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Title=1]="Title",e[e.Format=2]="Format",e[e.Instructor=3]="Instructor",e[e.Credits=4]="Credits",e[e.Date=5]="Date",e[e.Time=6]="Time",e[e.Location=7]="Location",e[e.Room=8]="Room"}(vt||(vt={}));var yt,gt,bt=function(){function e(t){if(Object(l.a)(this,e),this.attendanceForms=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.attendanceForms)){this.attendanceForms=[];var t,i=Object(s.a)(e.attendanceForms);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.attendanceForms.push(ft.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.attendanceForms)){e.attendanceForms=[];var t,i=Object(s.a)(this.attendanceForms);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.attendanceForms.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.DoNotShow=1]="DoNotShow",e[e.FirstPageOnly=2]="FirstPageOnly",e[e.LastPageOnly=3]="LastPageOnly",e[e.EachPage=4]="EachPage"}(yt||(yt={})),function(e){e[e.PrintSeparately=1]="PrintSeparately",e[e.PrintCombined=2]="PrintCombined",e[e.PrintBlank=3]="PrintBlank"}(gt||(gt={}));var St,Et=function(){function e(t){if(Object(l.a)(this,e),this.attendanceForm=void 0,this.sessionRecords=void 0,this.printOption=void 0,this.sessionTemplateId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.attendanceForm=e.attendanceForm?pt.fromJS(e.attendanceForm):void 0,Array.isArray(e.sessionRecords)){this.sessionRecords=[];var t,i=Object(s.a)(e.sessionRecords);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionRecords.push(Su.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.printOption=e.printOption,this.sessionTemplateId=e.sessionTemplateId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).attendanceForm=this.attendanceForm?this.attendanceForm.toJSON():void 0,Array.isArray(this.sessionRecords)){e.sessionRecords=[];var t,i=Object(s.a)(this.sessionRecords);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionRecords.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.printOption=this.printOption,e.sessionTemplateId=this.sessionTemplateId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),It=function(){function e(t){if(Object(l.a)(this,e),this.auditId=void 0,this.tableName=void 0,this.dateTime=void 0,this.keyValues=void 0,this.oldValues=void 0,this.newValues=void 0,this.userId=void 0,this.userName=void 0,this.page=void 0,this.endpoint=void 0,this.mode=void 0,this.batchId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.auditId=e.auditId,this.tableName=e.tableName,this.dateTime=e.dateTime?new Date(e.dateTime.toString()):void 0,this.keyValues=e.keyValues,this.oldValues=e.oldValues,this.newValues=e.newValues,this.userId=e.userId,this.userName=e.userName,this.page=e.page,this.endpoint=e.endpoint,this.mode=e.mode,this.batchId=e.batchId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).auditId=this.auditId,e.tableName=this.tableName,e.dateTime=this.dateTime?this.dateTime.toISOString():void 0,e.keyValues=this.keyValues,e.oldValues=this.oldValues,e.newValues=this.newValues,e.userId=this.userId,e.userName=this.userName,e.page=this.page,e.endpoint=this.endpoint,e.mode=this.mode,e.batchId=this.batchId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ot=function(){function e(t){if(Object(l.a)(this,e),this.auditLogs=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.auditLogs)){this.auditLogs=[];var t,i=Object(s.a)(e.auditLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.auditLogs.push(It.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.auditLogs)){e.auditLogs=[];var t,i=Object(s.a)(this.auditLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.auditLogs.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ct=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.earned=void 0,this.appliedRetroToSelectedPeriod=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.earned=e.earned,this.appliedRetroToSelectedPeriod=e.appliedRetroToSelectedPeriod,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.earned=this.earned,e.appliedRetroToSelectedPeriod=this.appliedRetroToSelectedPeriod,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xt=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.periodToDisplay=void 0,this.periodNumber=void 0,this.complianceStatusId=void 0,this.periodLabel=void 0,this.periodTypeId=void 0,this.availableCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.periodNumber=e.periodNumber,this.complianceStatusId=e.complianceStatusId,this.periodLabel=e.periodLabel,this.periodTypeId=e.periodTypeId,Array.isArray(e.availableCredits))){this.availableCredits=[];var t,i=Object(s.a)(e.availableCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.availableCredits.push(rc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.periodNumber=this.periodNumber,e.complianceStatusId=this.complianceStatusId,e.periodLabel=this.periodLabel,e.periodTypeId=this.periodTypeId,Array.isArray(this.availableCredits)){e.availableCredits=[];var t,i=Object(s.a)(this.availableCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.availableCredits.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jt=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.title=void 0,this.activityTags=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.activityId=e.activityId,this.title=e.title,Array.isArray(e.activityTags))){this.activityTags=[];var t,i=Object(s.a)(e.activityTags);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activityTags.push(Xe.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).activityId=this.activityId,e.title=this.title,Array.isArray(this.activityTags)){e.activityTags=[];var t,i=Object(s.a)(this.activityTags);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activityTags.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wt=function(){function e(t){if(Object(l.a)(this,e),this.activities=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.activities)){this.activities=[];var t,i=Object(s.a)(e.activities);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activities.push(jt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.activities)){e.activities=[];var t,i=Object(s.a)(this.activities);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activities.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pt=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tt=function(){function e(t){if(Object(l.a)(this,e),this.courses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courses)){this.courses=[];var t,i=Object(s.a)(e.courses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courses.push(Pt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courses)){e.courses=[];var t,i=Object(s.a)(this.courses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),At=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userType=void 0,this.value=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.locationId=void 0,this.location=void 0,this.email=void 0,this.userAvatarId=void 0,this.userAvatar=void 0,this.userLicense=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.userType=e.userType,this.value=e.value,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.locationId=e.locationId,this.location=e.location?Vl.fromJS(e.location):void 0,this.email=e.email,this.userAvatarId=e.userAvatarId,this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,Array.isArray(e.userLicense))){this.userLicense=[];var t,i=Object(s.a)(e.userLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicense.push(Av.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.value=this.value,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.locationId=this.locationId,e.location=this.location?this.location.toJSON():void 0,e.email=this.email,e.userAvatarId=this.userAvatarId,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.userLicense)){e.userLicense=[];var t,i=Object(s.a)(this.userLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicense.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nt=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipants=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipants)){this.sessionParticipants=[];var t,i=Object(s.a)(e.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipants.push(At.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipants)){e.sessionParticipants=[];var t,i=Object(s.a)(this.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipants.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kt=function(){function e(t){if(Object(l.a)(this,e),this.calendarSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.isSystem=void 0,this.isDefault=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.calendarSavedFilterId=e.calendarSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).calendarSavedFilterId=this.calendarSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dt=function(){function e(t){if(Object(l.a)(this,e),this.calendarSavedFilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.calendarSavedFilters)){this.calendarSavedFilters=[];var t,i=Object(s.a)(e.calendarSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.calendarSavedFilters.push(kt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.calendarSavedFilters)){e.calendarSavedFilters=[];var t,i=Object(s.a)(this.calendarSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.calendarSavedFilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lt=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.isOnlineLearning=void 0,this.courseTitle=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.room=void 0,this.instructors=void 0,this.participantCount=void 0,this.validatedCount=void 0,this.registeredCount=void 0,this.tentativeCount=void 0,this.pendingCount=void 0,this.inProgressCount=void 0,this.disqualifiedCount=void 0,this.failedCount=void 0,this.cancelledSession=void 0,this.sessionLicenses=void 0,this.isPublished=void 0,this.note=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isOnlineLearning=e.isOnlineLearning,this.courseTitle=e.courseTitle,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.room=e.room,Array.isArray(e.instructors)){this.instructors=[];var t,i=Object(s.a)(e.instructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.instructors.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(this.participantCount=e.participantCount,this.validatedCount=e.validatedCount,this.registeredCount=e.registeredCount,this.tentativeCount=e.tentativeCount,this.pendingCount=e.pendingCount,this.inProgressCount=e.inProgressCount,this.disqualifiedCount=e.disqualifiedCount,this.failedCount=e.failedCount,this.cancelledSession=e.cancelledSession,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}this.isPublished=e.isPublished,this.note=e.note}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isOnlineLearning=this.isOnlineLearning,e.courseTitle=this.courseTitle,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.room=this.room,Array.isArray(this.instructors)){e.instructors=[];var t,i=Object(s.a)(this.instructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.instructors.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(e.participantCount=this.participantCount,e.validatedCount=this.validatedCount,e.registeredCount=this.registeredCount,e.tentativeCount=this.tentativeCount,e.pendingCount=this.pendingCount,e.inProgressCount=this.inProgressCount,e.disqualifiedCount=this.disqualifiedCount,e.failedCount=this.failedCount,e.cancelledSession=this.cancelledSession,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e.isPublished=this.isPublished,e.note=this.note,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jt=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(Lt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ft=function(){function e(t){if(Object(l.a)(this,e),this.catalogSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.isSystem=void 0,this.isDefault=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.catalogSavedFilterId=e.catalogSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).catalogSavedFilterId=this.catalogSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bt=function(){function e(t){if(Object(l.a)(this,e),this.catalogSavedFilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.catalogSavedFilters)){this.catalogSavedFilters=[];var t,i=Object(s.a)(e.catalogSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.catalogSavedFilters.push(Ft.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.catalogSavedFilters)){e.catalogSavedFilters=[];var t,i=Object(s.a)(this.catalogSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.catalogSavedFilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rt=function(){function e(t){if(Object(l.a)(this,e),this.certificateId=void 0,this.name=void 0,this.description=void 0,this.licenseId=void 0,this.templateId=void 0,this.isActive=void 0,this.includeFirmLogo=void 0,this.firmLogoId=void 0,this.firmLogoUrl=void 0,this.includeFirmName=void 0,this.firmName=void 0,this.locationId=void 0,this.locationValue=void 0,this.phoneNumber=void 0,this.includeBarNumber=void 0,this.includeMiddleName=void 0,this.includeInstructorName=void 0,this.includeLocation=void 0,this.includeCity=void 0,this.includeState=void 0,this.includeTime=void 0,this.includeApprovalCode=void 0,this.includeParticipantSignature=void 0,this.includeValidatorSignatureLine=void 0,this.validatorName=void 0,this.validatorTitle=void 0,this.validatorPhoneNumber=void 0,this.validatorEmail=void 0,this.validatorSignatureId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,this.accreditedProvider=void 0,this.additionalText=void 0,this.isSystem=void 0,this.htmlBody=void 0,this.cleProviderValue=void 0,this.cleProviderDate=void 0,this.licenseProviderNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.certificateId=e.certificateId,this.name=e.name,this.description=e.description,this.licenseId=e.licenseId,this.templateId=e.templateId,this.isActive=e.isActive,this.includeFirmLogo=e.includeFirmLogo,this.firmLogoId=e.firmLogoId,this.firmLogoUrl=e.firmLogoUrl,this.includeFirmName=e.includeFirmName,this.firmName=e.firmName,this.locationId=e.locationId,this.locationValue=e.locationValue,this.phoneNumber=e.phoneNumber,this.includeBarNumber=e.includeBarNumber,this.includeMiddleName=e.includeMiddleName,this.includeInstructorName=e.includeInstructorName,this.includeLocation=e.includeLocation,this.includeCity=e.includeCity,this.includeState=e.includeState,this.includeTime=e.includeTime,this.includeApprovalCode=e.includeApprovalCode,this.includeParticipantSignature=e.includeParticipantSignature,this.includeValidatorSignatureLine=e.includeValidatorSignatureLine,this.validatorName=e.validatorName,this.validatorTitle=e.validatorTitle,this.validatorPhoneNumber=e.validatorPhoneNumber,this.validatorEmail=e.validatorEmail,this.validatorSignatureId=e.validatorSignatureId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl,this.accreditedProvider=e.accreditedProvider,this.additionalText=e.additionalText,this.isSystem=e.isSystem,this.htmlBody=e.htmlBody,this.cleProviderValue=e.cleProviderValue,this.cleProviderDate=e.cleProviderDate?new Date(e.cleProviderDate.toString()):void 0,this.licenseProviderNumber=e.licenseProviderNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).certificateId=this.certificateId,e.name=this.name,e.description=this.description,e.licenseId=this.licenseId,e.templateId=this.templateId,e.isActive=this.isActive,e.includeFirmLogo=this.includeFirmLogo,e.firmLogoId=this.firmLogoId,e.firmLogoUrl=this.firmLogoUrl,e.includeFirmName=this.includeFirmName,e.firmName=this.firmName,e.locationId=this.locationId,e.locationValue=this.locationValue,e.phoneNumber=this.phoneNumber,e.includeBarNumber=this.includeBarNumber,e.includeMiddleName=this.includeMiddleName,e.includeInstructorName=this.includeInstructorName,e.includeLocation=this.includeLocation,e.includeCity=this.includeCity,e.includeState=this.includeState,e.includeTime=this.includeTime,e.includeApprovalCode=this.includeApprovalCode,e.includeParticipantSignature=this.includeParticipantSignature,e.includeValidatorSignatureLine=this.includeValidatorSignatureLine,e.validatorName=this.validatorName,e.validatorTitle=this.validatorTitle,e.validatorPhoneNumber=this.validatorPhoneNumber,e.validatorEmail=this.validatorEmail,e.validatorSignatureId=this.validatorSignatureId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e.accreditedProvider=this.accreditedProvider,e.additionalText=this.additionalText,e.isSystem=this.isSystem,e.htmlBody=this.htmlBody,e.cleProviderValue=this.cleProviderValue,e.cleProviderDate=this.cleProviderDate?this.cleProviderDate.toISOString():void 0,e.licenseProviderNumber=this.licenseProviderNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Print=1]="Print",e[e.Certificate=2]="Certificate",e[e.Upload=3]="Upload",e[e.NotApplicable=4]="NotApplicable"}(St||(St={}));var Ut,Gt=function(){function e(t){if(Object(l.a)(this,e),this.certificateId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isSystem=void 0,this.licenseId=void 0,this.isUsedByLicense=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.certificateId=e.certificateId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isSystem=e.isSystem,this.licenseId=e.licenseId,this.isUsedByLicense=e.isUsedByLicense)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).certificateId=this.certificateId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isSystem=this.isSystem,e.licenseId=this.licenseId,e.isUsedByLicense=this.isUsedByLicense,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qt=function(){function e(t){if(Object(l.a)(this,e),this.certificates=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.certificates)){this.certificates=[];var t,i=Object(s.a)(e.certificates);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.certificates.push(Gt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.certificates)){e.certificates=[];var t,i=Object(s.a)(this.certificates);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.certificates.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mt=function(){function e(t){if(Object(l.a)(this,e),this.certificateId=void 0,this.fileId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.certificateId=e.certificateId,this.fileId=e.fileId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).certificateId=this.certificateId,e.fileId=this.fileId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zt=function(){function e(t){if(Object(l.a)(this,e),this.oldPassword=void 0,this.newPassword=void 0,this.confirmPassword=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.oldPassword=e.oldPassword,this.newPassword=e.newPassword,this.confirmPassword=e.confirmPassword)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).oldPassword=this.oldPassword,e.newPassword=this.newPassword,e.confirmPassword=this.confirmPassword,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wt=function(){function e(t){if(Object(l.a)(this,e),this.classYearId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.userCount=void 0,this.courseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.classYearId=e.classYearId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.userCount=e.userCount,this.courseCount=e.courseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).classYearId=this.classYearId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.userCount=this.userCount,e.courseCount=this.courseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vt=function(){function e(t){if(Object(l.a)(this,e),this.classYears=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.classYears)){this.classYears=[];var t,i=Object(s.a)(e.classYears);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.classYears.push(Wt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.classYears)){e.classYears=[];var t,i=Object(s.a)(this.classYears);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.classYears.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_t=function(){function e(t){if(Object(l.a)(this,e),this.collectionId=void 0,this.title=void 0,this.description=void 0,this.courseCount=void 0,this.isAssigned=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.collectionId=e.collectionId,this.title=e.title,this.description=e.description,this.courseCount=e.courseCount,this.isAssigned=e.isAssigned)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).collectionId=this.collectionId,e.title=this.title,e.description=this.description,e.courseCount=this.courseCount,e.isAssigned=this.isAssigned,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yt=function(){function e(t){if(Object(l.a)(this,e),this.competencyId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.courseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.courseCount=e.courseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.courseCount=this.courseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$t=function(){function e(t){if(Object(l.a)(this,e),this.competencyId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ht=function(){function e(t){if(Object(l.a)(this,e),this.competencies=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.competencies)){this.competencies=[];var t,i=Object(s.a)(e.competencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.competencies.push(Yt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.competencies)){e.competencies=[];var t,i=Object(s.a)(this.competencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.competencies.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kt=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userType=void 0,this.value=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.preferredName=void 0,this.location=void 0,this.status=void 0,this.email=void 0,this.userAvatarThumbnailURl=void 0,this.userLicenseCompliancePeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.userType=e.userType,this.value=e.value,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.preferredName=e.preferredName,this.location=e.location,this.status=e.status,this.email=e.email,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl,Array.isArray(e.userLicenseCompliancePeriods))){this.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(wl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.value=this.value,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.preferredName=this.preferredName,e.location=this.location,e.status=this.status,e.email=this.email,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qt=function(){function e(t){if(Object(l.a)(this,e),this.complianceLicensees=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.complianceLicensees)){this.complianceLicensees=[];var t,i=Object(s.a)(e.complianceLicensees);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.complianceLicensees.push(Kt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.complianceLicensees)){e.complianceLicensees=[];var t,i=Object(s.a)(this.complianceLicensees);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.complianceLicensees.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zt=function(){function e(t){if(Object(l.a)(this,e),this.complianceLicenseeSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.isDefault=void 0,this.isSystem=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.complianceLicenseeSavedFilterId=e.complianceLicenseeSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.isDefault=e.isDefault,this.isSystem=e.isSystem,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).complianceLicenseeSavedFilterId=this.complianceLicenseeSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.isDefault=this.isDefault,e.isSystem=this.isSystem,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xt=function(){function e(t){if(Object(l.a)(this,e),this.complianceLicenseeSavedFilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.complianceLicenseeSavedFilters)){this.complianceLicenseeSavedFilters=[];var t,i=Object(s.a)(e.complianceLicenseeSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.complianceLicenseeSavedFilters.push(Zt.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.complianceLicenseeSavedFilters)){e.complianceLicenseeSavedFilters=[];var t,i=Object(s.a)(this.complianceLicenseeSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.complianceLicenseeSavedFilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ei=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userType=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.userAvatar=void 0,this.location=void 0,this.userDepartment=void 0,this.userPracticeArea=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.userType=e.userType,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,this.location=e.location?Vl.fromJS(e.location):void 0,Array.isArray(e.userDepartment)){this.userDepartment=[];var t,i=Object(s.a)(e.userDepartment);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userDepartment.push(uv.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var n,a=Object(s.a)(e.userPracticeArea);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userPracticeArea.push(Mv.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.location=this.location?this.location.toJSON():void 0,Array.isArray(this.userDepartment)){e.userDepartment=[];var t,i=Object(s.a)(this.userDepartment);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userDepartment.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var n,a=Object(s.a)(this.userPracticeArea);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userPracticeArea.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ti=function(){function e(t){if(Object(l.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(s.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(ei.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(s.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ii=function(){function e(t){if(Object(l.a)(this,e),this.description=void 0,this.statusId=void 0,this.statusDescription=void 0,this.carriedOver=void 0,this.earned=void 0,this.carryOver=void 0,this.grace=void 0,this.previousGrace=void 0,this.retroactiveCredit=void 0,this.retroactiveDebit=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.description=e.description,this.statusId=e.statusId,this.statusDescription=e.statusDescription,this.carriedOver=e.carriedOver,this.earned=e.earned,this.carryOver=e.carryOver,this.grace=e.grace,this.previousGrace=e.previousGrace,this.retroactiveCredit=e.retroactiveCredit,this.retroactiveDebit=e.retroactiveDebit,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).description=this.description,e.statusId=this.statusId,e.statusDescription=this.statusDescription,e.carriedOver=this.carriedOver,e.earned=this.earned,e.carryOver=this.carryOver,e.grace=this.grace,e.previousGrace=this.previousGrace,e.retroactiveCredit=this.retroactiveCredit,e.retroactiveDebit=this.retroactiveDebit,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ri=function(){function e(t){if(Object(l.a)(this,e),this.note=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.note=e.note,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).note=this.note,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ni=function(){function e(t){if(Object(l.a)(this,e),this.creditId=void 0,this.creditName=void 0,this.sequenceNumber=void 0,this.overlap=void 0,this.carriedOver=void 0,this.previousGrace=void 0,this.currentGrace=void 0,this.earned=void 0,this.grace=void 0,this.retroactiveCredit=void 0,this.retroactiveDebit=void 0,this.applied=void 0,this.carryOver=void 0,this.extra=void 0,this.unused=void 0,this.available=void 0,this.previousAvailable=void 0,this.unusedGrace=void 0,this.unusedRetroactiveCredit=void 0,this.total=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.creditName=e.creditName,this.sequenceNumber=e.sequenceNumber,this.overlap=e.overlap,this.carriedOver=e.carriedOver,this.previousGrace=e.previousGrace,this.currentGrace=e.currentGrace,this.earned=e.earned,this.grace=e.grace,this.retroactiveCredit=e.retroactiveCredit,this.retroactiveDebit=e.retroactiveDebit,this.applied=e.applied,this.carryOver=e.carryOver,this.extra=e.extra,this.unused=e.unused,this.available=e.available,this.previousAvailable=e.previousAvailable,this.unusedGrace=e.unusedGrace,this.unusedRetroactiveCredit=e.unusedRetroactiveCredit,this.total=e.total)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.creditName=this.creditName,e.sequenceNumber=this.sequenceNumber,e.overlap=this.overlap,e.carriedOver=this.carriedOver,e.previousGrace=this.previousGrace,e.currentGrace=this.currentGrace,e.earned=this.earned,e.grace=this.grace,e.retroactiveCredit=this.retroactiveCredit,e.retroactiveDebit=this.retroactiveDebit,e.applied=this.applied,e.carryOver=this.carryOver,e.extra=this.extra,e.unused=this.unused,e.available=this.available,e.previousAvailable=this.previousAvailable,e.unusedGrace=this.unusedGrace,e.unusedRetroactiveCredit=this.unusedRetroactiveCredit,e.total=this.total,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ai=function(){function e(t){if(Object(l.a)(this,e),this.listId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.sessionTitle=void 0,this.sessionTypeId=void 0,this.title=void 0,this.provider=void 0,this.courseFormat=void 0,this.dateTaken=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isInstructed=void 0,this.isCreditAdjusted=void 0,this.isWithinGracePeriod=void 0,this.isWithinPrevGracePeriod=void 0,this.isNYNAApproved=void 0,this.isFromActivity=void 0,this.sessionLicenses=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.userRetroCreditValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.listId=e.listId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.sessionTitle=e.sessionTitle,this.sessionTypeId=e.sessionTypeId,this.title=e.title,this.provider=e.provider,this.courseFormat=e.courseFormat,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isInstructed=e.isInstructed,this.isCreditAdjusted=e.isCreditAdjusted,this.isWithinGracePeriod=e.isWithinGracePeriod,this.isWithinPrevGracePeriod=e.isWithinPrevGracePeriod,this.isNYNAApproved=e.isNYNAApproved,this.isFromActivity=e.isFromActivity,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(s.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(ju.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var n,a=Object(s.a)(e.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicenseCreditValues.push(Tv.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var l,c=Object(s.a)(e.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicensePropertyValues.push(Dv.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.userRetroCreditValues)){this.userRetroCreditValues=[];var u,h=Object(s.a)(e.userRetroCreditValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userRetroCreditValues.push(li.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).listId=this.listId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.sessionTitle=this.sessionTitle,e.sessionTypeId=this.sessionTypeId,e.title=this.title,e.provider=this.provider,e.courseFormat=this.courseFormat,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isInstructed=this.isInstructed,e.isCreditAdjusted=this.isCreditAdjusted,e.isWithinGracePeriod=this.isWithinGracePeriod,e.isWithinPrevGracePeriod=this.isWithinPrevGracePeriod,e.isNYNAApproved=this.isNYNAApproved,e.isFromActivity=this.isFromActivity,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(s.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var n,a=Object(s.a)(this.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var l,c=Object(s.a)(this.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicensePropertyValues.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.userRetroCreditValues)){e.userRetroCreditValues=[];var u,h=Object(s.a)(this.userRetroCreditValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userRetroCreditValues.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),oi=function(){function e(t){if(Object(l.a)(this,e),this.compliancePeriodCourses=void 0,this.barAdmissionDate=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.compliancePeriodCourses)){this.compliancePeriodCourses=[];var t,i=Object(s.a)(e.compliancePeriodCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodCourses.push(ai.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.barAdmissionDate=e.barAdmissionDate?new Date(e.barAdmissionDate.toString()):void 0,this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.compliancePeriodCourses)){e.compliancePeriodCourses=[];var t,i=Object(s.a)(this.compliancePeriodCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodCourses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.barAdmissionDate=this.barAdmissionDate?this.barAdmissionDate.toISOString():void 0,e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),si=function(){function e(t){if(Object(l.a)(this,e),this.propertyId=void 0,this.typeId=void 0,this.licensePropertyGroupId=void 0,this.propertyName=void 0,this.sequenceNumber=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.propertyId=e.propertyId,this.typeId=e.typeId,this.licensePropertyGroupId=e.licensePropertyGroupId,this.propertyName=e.propertyName,this.sequenceNumber=e.sequenceNumber,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).propertyId=this.propertyId,e.typeId=this.typeId,e.licensePropertyGroupId=this.licensePropertyGroupId,e.propertyName=this.propertyName,e.sequenceNumber=this.sequenceNumber,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),li=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.applyTo=void 0,this.applyToPeriodNumber=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.applyTo=e.applyTo?new Date(e.applyTo.toString()):void 0,this.applyToPeriodNumber=e.applyToPeriodNumber,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.applyTo=this.applyTo?this.applyTo.toISOString():void 0,e.applyToPeriodNumber=this.applyToPeriodNumber,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ci=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.activityId=void 0,this.title=void 0,this.sessionTitle=void 0,this.sessionTypeId=void 0,this.provider=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.dateTaken=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isInstructed=void 0,this.compliancePeriodCourseCredits=void 0,this.compliancePeriodCourseProperties=void 0,this.courseCreditTotal=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.activityId=e.activityId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.sessionTypeId=e.sessionTypeId,this.provider=e.provider,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isInstructed=e.isInstructed,Array.isArray(e.compliancePeriodCourseCredits)){this.compliancePeriodCourseCredits=[];var t,i=Object(s.a)(e.compliancePeriodCourseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodCourseCredits.push(ni.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.compliancePeriodCourseProperties)){this.compliancePeriodCourseProperties=[];var n,a=Object(s.a)(e.compliancePeriodCourseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.compliancePeriodCourseProperties.push(si.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}this.courseCreditTotal=e.courseCreditTotal?ni.fromJS(e.courseCreditTotal):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.activityId=this.activityId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.sessionTypeId=this.sessionTypeId,e.provider=this.provider,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isInstructed=this.isInstructed,Array.isArray(this.compliancePeriodCourseCredits)){e.compliancePeriodCourseCredits=[];var t,i=Object(s.a)(this.compliancePeriodCourseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodCourseCredits.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.compliancePeriodCourseProperties)){e.compliancePeriodCourseProperties=[];var n,a=Object(s.a)(this.compliancePeriodCourseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.compliancePeriodCourseProperties.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e.courseCreditTotal=this.courseCreditTotal?this.courseCreditTotal.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),di=function(){function e(t){if(Object(l.a)(this,e),this.compliancePeriodCourses=void 0,this.hasCarryOver=void 0,this.hasRetro=void 0,this.hasGrace=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.compliancePeriodCourses)){this.compliancePeriodCourses=[];var t,i=Object(s.a)(e.compliancePeriodCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodCourses.push(ci.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.hasCarryOver=e.hasCarryOver,this.hasRetro=e.hasRetro,this.hasGrace=e.hasGrace}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.compliancePeriodCourses)){e.compliancePeriodCourses=[];var t,i=Object(s.a)(this.compliancePeriodCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodCourses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.hasCarryOver=this.hasCarryOver,e.hasRetro=this.hasRetro,e.hasGrace=this.hasGrace,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ui=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.periodFrom=void 0,this.periodFromCourse=void 0,this.periodTo=void 0,this.periodToDisplay=void 0,this.periodLabel=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.complianceStatusId=void 0,this.isSubLicensePeriod=void 0,this.isPriorPeriodDeficient=void 0,this.compliancePeriodTotals=void 0,this.compliancePeriodAdditionalRequirements=void 0,this.compliancePeriodChartNotes=void 0,this.compliancePeriodRestrictions=void 0,this.compliancePeriodSubjectAreas=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.periodLabel=e.periodLabel,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.complianceStatusId=e.complianceStatusId,this.isSubLicensePeriod=e.isSubLicensePeriod,this.isPriorPeriodDeficient=e.isPriorPeriodDeficient,Array.isArray(e.compliancePeriodTotals)){this.compliancePeriodTotals=[];var t,i=Object(s.a)(e.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodTotals.push(yi.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.compliancePeriodAdditionalRequirements)){this.compliancePeriodAdditionalRequirements=[];var n,a=Object(s.a)(e.compliancePeriodAdditionalRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.compliancePeriodAdditionalRequirements.push(ii.fromJS(o))}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.compliancePeriodChartNotes)){this.compliancePeriodChartNotes=[];var l,c=Object(s.a)(e.compliancePeriodChartNotes);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.compliancePeriodChartNotes.push(ri.fromJS(d))}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.compliancePeriodRestrictions)){this.compliancePeriodRestrictions=[];var u,h=Object(s.a)(e.compliancePeriodRestrictions);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.compliancePeriodRestrictions.push(fi.fromJS(v))}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var p,f=Object(s.a)(e.compliancePeriodSubjectAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.compliancePeriodSubjectAreas.push(mi.fromJS(m))}}catch(y){f.e(y)}finally{f.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.periodLabel=this.periodLabel,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.complianceStatusId=this.complianceStatusId,e.isSubLicensePeriod=this.isSubLicensePeriod,e.isPriorPeriodDeficient=this.isPriorPeriodDeficient,Array.isArray(this.compliancePeriodTotals)){e.compliancePeriodTotals=[];var t,i=Object(s.a)(this.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodTotals.push(r.toJSON())}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.compliancePeriodAdditionalRequirements)){e.compliancePeriodAdditionalRequirements=[];var n,a=Object(s.a)(this.compliancePeriodAdditionalRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.compliancePeriodAdditionalRequirements.push(o.toJSON())}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.compliancePeriodChartNotes)){e.compliancePeriodChartNotes=[];var l,c=Object(s.a)(this.compliancePeriodChartNotes);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.compliancePeriodChartNotes.push(d.toJSON())}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.compliancePeriodRestrictions)){e.compliancePeriodRestrictions=[];var u,h=Object(s.a)(this.compliancePeriodRestrictions);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.compliancePeriodRestrictions.push(v.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var p,f=Object(s.a)(this.compliancePeriodSubjectAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.compliancePeriodSubjectAreas.push(m.toJSON())}}catch(y){f.e(y)}finally{f.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hi=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.periodToDisplay=void 0,this.periodNumber=void 0,this.complianceStatusId=void 0,this.periodLabel=void 0,this.isGracePeriodGranted=void 0,this.periodRemainingRequirements=void 0,this.appliedRetroCourseCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userLicenseComplianceId=e.userLicenseComplianceId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.periodNumber=e.periodNumber,this.complianceStatusId=e.complianceStatusId,this.periodLabel=e.periodLabel,this.isGracePeriodGranted=e.isGracePeriodGranted,Array.isArray(e.periodRemainingRequirements)){this.periodRemainingRequirements=[];var t,i=Object(s.a)(e.periodRemainingRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.periodRemainingRequirements.push(nc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.appliedRetroCourseCredits)){this.appliedRetroCourseCredits=[];var n,a=Object(s.a)(e.appliedRetroCourseCredits);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.appliedRetroCourseCredits.push(ac.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.periodNumber=this.periodNumber,e.complianceStatusId=this.complianceStatusId,e.periodLabel=this.periodLabel,e.isGracePeriodGranted=this.isGracePeriodGranted,Array.isArray(this.periodRemainingRequirements)){e.periodRemainingRequirements=[];var t,i=Object(s.a)(this.periodRemainingRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.periodRemainingRequirements.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.appliedRetroCourseCredits)){e.appliedRetroCourseCredits=[];var n,a=Object(s.a)(this.appliedRetroCourseCredits);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.appliedRetroCourseCredits.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vi=function(){function e(t){if(Object(l.a)(this,e),this.periodFrom=void 0,this.periodTo=void 0,this.periodNumber=void 0,this.complianceStatusId=void 0,this.periodLabel=void 0,this.licenseExemptions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodNumber=e.periodNumber,this.complianceStatusId=e.complianceStatusId,this.periodLabel=e.periodLabel,Array.isArray(e.licenseExemptions))){this.licenseExemptions=[];var t,i=Object(s.a)(e.licenseExemptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseExemptions.push(Nl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodNumber=this.periodNumber,e.complianceStatusId=this.complianceStatusId,e.periodLabel=this.periodLabel,Array.isArray(this.licenseExemptions)){e.licenseExemptions=[];var t,i=Object(s.a)(this.licenseExemptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseExemptions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pi=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.title=void 0,this.sessionTitle=void 0,this.provider=void 0,this.courseFormat=void 0,this.location=void 0,this.dateTaken=void 0,this.isInstructed=void 0,this.isCreditAdjusted=void 0,this.isWithinGracePeriod=void 0,this.isWithinPrevGracePeriod=void 0,this.periodNumber=void 0,this.sessionLicenses=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.userRetroCreditValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.provider=e.provider,this.courseFormat=e.courseFormat,this.location=e.location,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.isInstructed=e.isInstructed,this.isCreditAdjusted=e.isCreditAdjusted,this.isWithinGracePeriod=e.isWithinGracePeriod,this.isWithinPrevGracePeriod=e.isWithinPrevGracePeriod,this.periodNumber=e.periodNumber,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(s.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(ju.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var n,a=Object(s.a)(e.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicenseCreditValues.push(Tv.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var l,c=Object(s.a)(e.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicensePropertyValues.push(Dv.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.userRetroCreditValues)){this.userRetroCreditValues=[];var u,h=Object(s.a)(e.userRetroCreditValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userRetroCreditValues.push(li.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.provider=this.provider,e.courseFormat=this.courseFormat,e.location=this.location,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.isInstructed=this.isInstructed,e.isCreditAdjusted=this.isCreditAdjusted,e.isWithinGracePeriod=this.isWithinGracePeriod,e.isWithinPrevGracePeriod=this.isWithinPrevGracePeriod,e.periodNumber=this.periodNumber,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(s.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var n,a=Object(s.a)(this.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var l,c=Object(s.a)(this.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicensePropertyValues.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.userRetroCreditValues)){e.userRetroCreditValues=[];var u,h=Object(s.a)(this.userRetroCreditValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userRetroCreditValues.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fi=function(){function e(t){if(Object(l.a)(this,e),this.description=void 0,this.earned=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.description=e.description,this.earned=e.earned,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).description=this.description,e.earned=this.earned,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mi=function(){function e(t){if(Object(l.a)(this,e),this.subjectAreaCreditId=void 0,this.subjectAreaName=void 0,this.earned=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.subjectAreaCreditId=e.subjectAreaCreditId,this.subjectAreaName=e.subjectAreaName,this.earned=e.earned,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subjectAreaCreditId=this.subjectAreaCreditId,e.subjectAreaName=this.subjectAreaName,e.earned=this.earned,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yi=function(){function e(t){if(Object(l.a)(this,e),this.creditId=void 0,this.creditName=void 0,this.parentCreditId=void 0,this.level=void 0,this.groupLabel=void 0,this.sequenceNumber=void 0,this.required=void 0,this.overlap=void 0,this.carriedOver=void 0,this.previousGrace=void 0,this.currentGrace=void 0,this.earned=void 0,this.grace=void 0,this.retroactiveCredit=void 0,this.retroactiveDebit=void 0,this.applied=void 0,this.carryOver=void 0,this.extra=void 0,this.unused=void 0,this.available=void 0,this.previousAvailable=void 0,this.unusedGrace=void 0,this.unusedRetroactiveCredit=void 0,this.creditsNeeded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.creditName=e.creditName,this.parentCreditId=e.parentCreditId,this.level=e.level,this.groupLabel=e.groupLabel,this.sequenceNumber=e.sequenceNumber,this.required=e.required,this.overlap=e.overlap,this.carriedOver=e.carriedOver,this.previousGrace=e.previousGrace,this.currentGrace=e.currentGrace,this.earned=e.earned,this.grace=e.grace,this.retroactiveCredit=e.retroactiveCredit,this.retroactiveDebit=e.retroactiveDebit,this.applied=e.applied,this.carryOver=e.carryOver,this.extra=e.extra,this.unused=e.unused,this.available=e.available,this.previousAvailable=e.previousAvailable,this.unusedGrace=e.unusedGrace,this.unusedRetroactiveCredit=e.unusedRetroactiveCredit,this.creditsNeeded=e.creditsNeeded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.creditName=this.creditName,e.parentCreditId=this.parentCreditId,e.level=this.level,e.groupLabel=this.groupLabel,e.sequenceNumber=this.sequenceNumber,e.required=this.required,e.overlap=this.overlap,e.carriedOver=this.carriedOver,e.previousGrace=this.previousGrace,e.currentGrace=this.currentGrace,e.earned=this.earned,e.grace=this.grace,e.retroactiveCredit=this.retroactiveCredit,e.retroactiveDebit=this.retroactiveDebit,e.applied=this.applied,e.carryOver=this.carryOver,e.extra=this.extra,e.unused=this.unused,e.available=this.available,e.previousAvailable=this.previousAvailable,e.unusedGrace=this.unusedGrace,e.unusedRetroactiveCredit=this.unusedRetroactiveCredit,e.creditsNeeded=this.creditsNeeded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gi=function(){function e(t){if(Object(l.a)(this,e),this.portalUserLicenseCompliance=void 0,this.subLicensePeriods=void 0,this.mainLicensePeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.portalUserLicenseCompliance=e.portalUserLicenseCompliance?xc.fromJS(e.portalUserLicenseCompliance):void 0,Array.isArray(e.subLicensePeriods)){this.subLicensePeriods=[];var t,i=Object(s.a)(e.subLicensePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subLicensePeriods.push(fc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.mainLicensePeriods)){this.mainLicensePeriods=[];var n,a=Object(s.a)(e.mainLicensePeriods);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.mainLicensePeriods.push(fc.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).portalUserLicenseCompliance=this.portalUserLicenseCompliance?this.portalUserLicenseCompliance.toJSON():void 0,Array.isArray(this.subLicensePeriods)){e.subLicensePeriods=[];var t,i=Object(s.a)(this.subLicensePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subLicensePeriods.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.mainLicensePeriods)){e.mainLicensePeriods=[];var n,a=Object(s.a)(this.mainLicensePeriods);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.mainLicensePeriods.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bi=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.isSubLicense=void 0,this.industryId=void 0,this.reportingPeriodEnds=void 0,this.inComplianceCount=void 0,this.gracePeriodCount=void 0,this.inProgressCount=void 0,this.notInComplianceCount=void 0,this.priorPeriodDeficiencyCount=void 0,this.inactiveCount=void 0,this.notTrackedCount=void 0,this.nonMandatoryCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.isSubLicense=e.isSubLicense,this.industryId=e.industryId,this.reportingPeriodEnds=e.reportingPeriodEnds,this.inComplianceCount=e.inComplianceCount,this.gracePeriodCount=e.gracePeriodCount,this.inProgressCount=e.inProgressCount,this.notInComplianceCount=e.notInComplianceCount,this.priorPeriodDeficiencyCount=e.priorPeriodDeficiencyCount,this.inactiveCount=e.inactiveCount,this.notTrackedCount=e.notTrackedCount,this.nonMandatoryCount=e.nonMandatoryCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.isSubLicense=this.isSubLicense,e.industryId=this.industryId,e.reportingPeriodEnds=this.reportingPeriodEnds,e.inComplianceCount=this.inComplianceCount,e.gracePeriodCount=this.gracePeriodCount,e.inProgressCount=this.inProgressCount,e.notInComplianceCount=this.notInComplianceCount,e.priorPeriodDeficiencyCount=this.priorPeriodDeficiencyCount,e.inactiveCount=this.inactiveCount,e.notTrackedCount=this.notTrackedCount,e.nonMandatoryCount=this.nonMandatoryCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Si=function(){function e(t){if(Object(l.a)(this,e),this.complianceStatistics=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.complianceStatistics)){this.complianceStatistics=[];var t,i=Object(s.a)(e.complianceStatistics);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.complianceStatistics.push(bi.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.complianceStatistics)){e.complianceStatistics=[];var t,i=Object(s.a)(this.complianceStatistics);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.complianceStatistics.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotInCompliance=0]="NotInCompliance",e[e.InCompliance=1]="InCompliance",e[e.InProgress=2]="InProgress",e[e.Extension=3]="Extension",e[e.NonMandatory=4]="NonMandatory",e[e.NotTracked=5]="NotTracked",e[e.Pending=6]="Pending",e[e.Inactive=7]="Inactive"}(Ut||(Ut={}));var Ei,Ii=function(){function e(t){if(Object(l.a)(this,e),this.questionId=void 0,this.instructorId=void 0,this.choices=void 0,this.comments=void 0,this.texts=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.questionId=e.questionId,this.instructorId=e.instructorId,Array.isArray(e.choices)){this.choices=[];var t,i=Object(s.a)(e.choices);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.choices.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.comments)){this.comments=[];var n,a=Object(s.a)(e.comments);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.comments.push(o)}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.texts)){this.texts=[];var l,c=Object(s.a)(e.texts);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.texts.push(d)}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).questionId=this.questionId,e.instructorId=this.instructorId,Array.isArray(this.choices)){e.choices=[];var t,i=Object(s.a)(this.choices);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.choices.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.comments)){e.comments=[];var n,a=Object(s.a)(this.comments);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.comments.push(o)}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.texts)){e.texts=[];var l,c=Object(s.a)(this.texts);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.texts.push(d)}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oi=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.endDate=void 0,this.isConfirmed=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.isConfirmed=e.isConfirmed)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.isConfirmed=this.isConfirmed,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ci=function(){function e(t){if(Object(l.a)(this,e),this.countryId=void 0,this.name=void 0,this.abbreviation=void 0,this.dateFormat=void 0,this.isActive=void 0,this.code=void 0,this.countryTimezone=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.countryId=e.countryId,this.name=e.name,this.abbreviation=e.abbreviation,this.dateFormat=e.dateFormat,this.isActive=e.isActive,this.code=e.code,Array.isArray(e.countryTimezone))){this.countryTimezone=[];var t,i=Object(s.a)(e.countryTimezone);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.countryTimezone.push(ji.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).countryId=this.countryId,e.name=this.name,e.abbreviation=this.abbreviation,e.dateFormat=this.dateFormat,e.isActive=this.isActive,e.code=this.code,Array.isArray(this.countryTimezone)){e.countryTimezone=[];var t,i=Object(s.a)(this.countryTimezone);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.countryTimezone.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xi=function(){function e(t){if(Object(l.a)(this,e),this.countries=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.countries)){this.countries=[];var t,i=Object(s.a)(e.countries);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.countries.push(Ci.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.countries)){e.countries=[];var t,i=Object(s.a)(this.countries);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.countries.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ji=function(){function e(t){if(Object(l.a)(this,e),this.timezoneId=void 0,this.name=void 0,this.abbreviation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.timezoneId=e.timezoneId,this.name=e.name,this.abbreviation=e.abbreviation)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).timezoneId=this.timezoneId,e.name=this.name,e.abbreviation=this.abbreviation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wi=function(){function e(t){if(Object(l.a)(this,e),this.countyId=void 0,this.name=void 0,this.countryId=void 0,this.stateId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.countyId=e.countyId,this.name=e.name,this.countryId=e.countryId,this.stateId=e.stateId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).countyId=this.countyId,e.name=this.name,e.countryId=this.countryId,e.stateId=this.stateId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pi=function(){function e(t){if(Object(l.a)(this,e),this.counties=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.counties)){this.counties=[];var t,i=Object(s.a)(e.counties);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.counties.push(wi.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.counties)){e.counties=[];var t,i=Object(s.a)(this.counties);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.counties.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ti=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.courseIdLabel=void 0,this.title=void 0,this.provider=void 0,this.description=void 0,this.userFavorite=void 0,this.courseClassYears=void 0,this.courseCompetencies=void 0,this.courseDepartments=void 0,this.courseLevels=void 0,this.coursePracticeAreas=void 0,this.courseTags=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.courseIdLabel=e.courseIdLabel,this.title=e.title,this.provider=e.provider,this.description=e.description,this.userFavorite=e.userFavorite,Array.isArray(e.courseClassYears)){this.courseClassYears=[];var t,i=Object(s.a)(e.courseClassYears);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseClassYears.push(Fi.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.courseCompetencies)){this.courseCompetencies=[];var n,a=Object(s.a)(e.courseCompetencies);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.courseCompetencies.push(Ui.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.courseDepartments)){this.courseDepartments=[];var l,c=Object(s.a)(e.courseDepartments);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courseDepartments.push(Gi.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.courseLevels)){this.courseLevels=[];var u,h=Object(s.a)(e.courseLevels);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.courseLevels.push(Vi.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeAreas)){this.coursePracticeAreas=[];var p,f=Object(s.a)(e.coursePracticeAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.coursePracticeAreas.push(Yi.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.courseTags)){this.courseTags=[];var y,g=Object(s.a)(e.courseTags);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.courseTags.push(ir.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.courseIdLabel=this.courseIdLabel,e.title=this.title,e.provider=this.provider,e.description=this.description,e.userFavorite=this.userFavorite,Array.isArray(this.courseClassYears)){e.courseClassYears=[];var t,i=Object(s.a)(this.courseClassYears);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseClassYears.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.courseCompetencies)){e.courseCompetencies=[];var n,a=Object(s.a)(this.courseCompetencies);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.courseCompetencies.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.courseDepartments)){e.courseDepartments=[];var l,c=Object(s.a)(this.courseDepartments);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courseDepartments.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.courseLevels)){e.courseLevels=[];var u,h=Object(s.a)(this.courseLevels);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.courseLevels.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeAreas)){e.coursePracticeAreas=[];var p,f=Object(s.a)(this.coursePracticeAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.coursePracticeAreas.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.courseTags)){e.courseTags=[];var y,g=Object(s.a)(this.courseTags);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.courseTags.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ai=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.courseIdLabel=void 0,this.title=void 0,this.provider=void 0,this.description=void 0,this.courseFormatCategories=void 0,this.userFavorite=void 0,this.userCollection=void 0,this.courseTags=void 0,this.label=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.courseIdLabel=e.courseIdLabel,this.title=e.title,this.provider=e.provider,this.description=e.description,Array.isArray(e.courseFormatCategories)){this.courseFormatCategories=[];var t,i=Object(s.a)(e.courseFormatCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseFormatCategories.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(this.userFavorite=e.userFavorite,Array.isArray(e.userCollection)){this.userCollection=[];var n,a=Object(s.a)(e.userCollection);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userCollection.push(ov.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.courseTags)){this.courseTags=[];var l,c=Object(s.a)(e.courseTags);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courseTags.push(ir.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.label=e.label}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.courseIdLabel=this.courseIdLabel,e.title=this.title,e.provider=this.provider,e.description=this.description,Array.isArray(this.courseFormatCategories)){e.courseFormatCategories=[];var t,i=Object(s.a)(this.courseFormatCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseFormatCategories.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(e.userFavorite=this.userFavorite,Array.isArray(this.userCollection)){e.userCollection=[];var n,a=Object(s.a)(this.userCollection);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userCollection.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.courseTags)){e.courseTags=[];var l,c=Object(s.a)(this.courseTags);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courseTags.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.label=this.label,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ni=function(){function e(t){if(Object(l.a)(this,e),this.catalog=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.catalog)){this.catalog=[];var t,i=Object(s.a)(e.catalog);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.catalog.push(Ai.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.catalog)){e.catalog=[];var t,i=Object(s.a)(this.catalog);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.catalog.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ki=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.cost=void 0,this.detail=void 0,this.duration=void 0,this.isOnlineLearning=void 0,this.isRegistrationApprovalNeeded=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.evaluation=void 0,this.areQuestionsAllowed=void 0,this.launchUrl=void 0,this.url=void 0,this.note=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.isInHouse=void 0,this.cancelledDate=void 0,this.participantCount=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionParticipant=void 0,this.sessionInstructors=void 0,this.sessionWaitlist=void 0,this.sessionMaterials=void 0,this.sessionMediaFiles=void 0,this.guid=void 0,this.isAlreadyRegisteredToTheSameSchedule=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.cost=e.cost,this.detail=e.detail,this.duration=e.duration,this.isOnlineLearning=e.isOnlineLearning,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.evaluation=e.evaluation,this.areQuestionsAllowed=e.areQuestionsAllowed,this.launchUrl=e.launchUrl,this.url=e.url,this.note=e.note,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,this.isInHouse=e.isInHouse,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.participantCount=e.participantCount,Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var t,i=Object(s.a)(e.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionApprovers.push(nu.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.sessionParticipant)){this.sessionParticipant=[];var l,c=Object(s.a)(e.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionParticipant.push(Gu.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var u,h=Object(s.a)(e.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionInstructors.push(Gu.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.sessionWaitlist)){this.sessionWaitlist=[];var p,f=Object(s.a)(e.sessionWaitlist);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.sessionWaitlist.push(dh.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var y,g=Object(s.a)(e.sessionMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.sessionMaterials.push(Du.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var S,E=Object(s.a)(e.sessionMediaFiles);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.sessionMediaFiles.push(Lu.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}this.guid=e.guid,this.isAlreadyRegisteredToTheSameSchedule=e.isAlreadyRegisteredToTheSameSchedule}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.cost=this.cost,e.detail=this.detail,e.duration=this.duration,e.isOnlineLearning=this.isOnlineLearning,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.evaluation=this.evaluation,e.areQuestionsAllowed=this.areQuestionsAllowed,e.launchUrl=this.launchUrl,e.url=this.url,e.note=this.note,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,e.isInHouse=this.isInHouse,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.participantCount=this.participantCount,Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var t,i=Object(s.a)(this.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionApprovers.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.sessionParticipant)){e.sessionParticipant=[];var l,c=Object(s.a)(this.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionParticipant.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var u,h=Object(s.a)(this.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionInstructors.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.sessionWaitlist)){e.sessionWaitlist=[];var p,f=Object(s.a)(this.sessionWaitlist);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.sessionWaitlist.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var y,g=Object(s.a)(this.sessionMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.sessionMaterials.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var S,E=Object(s.a)(this.sessionMediaFiles);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.sessionMediaFiles.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e.guid=this.guid,e.isAlreadyRegisteredToTheSameSchedule=this.isAlreadyRegisteredToTheSameSchedule,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Di=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.courseIdLabel=void 0,this.title=void 0,this.provider=void 0,this.description=void 0,this.courseFormatCategories=void 0,this.scheduleId=void 0,this.sessionId=void 0,this.sessionTypeId=void 0,this.sessionTitle=void 0,this.userFavorite=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.courseIdLabel=e.courseIdLabel,this.title=e.title,this.provider=e.provider,this.description=e.description,Array.isArray(e.courseFormatCategories)){this.courseFormatCategories=[];var t,i=Object(s.a)(e.courseFormatCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseFormatCategories.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.scheduleId=e.scheduleId,this.sessionId=e.sessionId,this.sessionTypeId=e.sessionTypeId,this.sessionTitle=e.sessionTitle,this.userFavorite=e.userFavorite}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.courseIdLabel=this.courseIdLabel,e.title=this.title,e.provider=this.provider,e.description=this.description,Array.isArray(this.courseFormatCategories)){e.courseFormatCategories=[];var t,i=Object(s.a)(this.courseFormatCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseFormatCategories.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.scheduleId=this.scheduleId,e.sessionId=this.sessionId,e.sessionTypeId=this.sessionTypeId,e.sessionTitle=this.sessionTitle,e.userFavorite=this.userFavorite,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Li=function(){function e(t){if(Object(l.a)(this,e),this.catalog=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.catalog)){this.catalog=[];var t,i=Object(s.a)(e.catalog);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.catalog.push(Di.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.catalog)){e.catalog=[];var t,i=Object(s.a)(this.catalog);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.catalog.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ji=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.courseIdLabel=void 0,this.providerId=void 0,this.providerName=void 0,this.note=void 0,this.description=void 0,this.archivedDate=void 0,this.isArchived=void 0,this.isInHouseProvider=void 0,this.courseClassYear=void 0,this.courseCompetency=void 0,this.courseDepartment=void 0,this.courseLevel=void 0,this.coursePracticeArea=void 0,this.courseTag=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.title=e.title,this.courseIdLabel=e.courseIdLabel,this.providerId=e.providerId,this.providerName=e.providerName,this.note=e.note,this.description=e.description,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.isArchived=e.isArchived,this.isInHouseProvider=e.isInHouseProvider,Array.isArray(e.courseClassYear)){this.courseClassYear=[];var t,i=Object(s.a)(e.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseClassYear.push(Fi.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.courseCompetency)){this.courseCompetency=[];var n,a=Object(s.a)(e.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.courseCompetency.push(Ui.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.courseDepartment)){this.courseDepartment=[];var l,c=Object(s.a)(e.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courseDepartment.push(Gi.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.courseLevel)){this.courseLevel=[];var u,h=Object(s.a)(e.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.courseLevel.push(Vi.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var p,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.coursePracticeArea.push(Yi.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.courseTag)){this.courseTag=[];var y,g=Object(s.a)(e.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.courseTag.push(ir.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.courseIdLabel=this.courseIdLabel,e.providerId=this.providerId,e.providerName=this.providerName,e.note=this.note,e.description=this.description,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.isArchived=this.isArchived,e.isInHouseProvider=this.isInHouseProvider,Array.isArray(this.courseClassYear)){e.courseClassYear=[];var t,i=Object(s.a)(this.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseClassYear.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.courseCompetency)){e.courseCompetency=[];var n,a=Object(s.a)(this.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.courseCompetency.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.courseDepartment)){e.courseDepartment=[];var l,c=Object(s.a)(this.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courseDepartment.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.courseLevel)){e.courseLevel=[];var u,h=Object(s.a)(this.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.courseLevel.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var p,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.coursePracticeArea.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.courseTag)){e.courseTag=[];var y,g=Object(s.a)(this.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.courseTag.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fi=function(){function e(t){if(Object(l.a)(this,e),this.classYearId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.classYearId=e.classYearId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).classYearId=this.classYearId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bi=function(){function e(t){if(Object(l.a)(this,e),this.collectionId=void 0,this.courseId=void 0,this.title=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.collectionId=e.collectionId,this.courseId=e.courseId,this.title=e.title)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).collectionId=this.collectionId,e.courseId=this.courseId,e.title=this.title,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ri=function(){function e(t){if(Object(l.a)(this,e),this.courseCollections=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courseCollections)){this.courseCollections=[];var t,i=Object(s.a)(e.courseCollections);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseCollections.push(Bi.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseCollections)){e.courseCollections=[];var t,i=Object(s.a)(this.courseCollections);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseCollections.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ui=function(){function e(t){if(Object(l.a)(this,e),this.competencyId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gi=function(){function e(t){if(Object(l.a)(this,e),this.departmentId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qi=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.courseIdLabel=void 0,this.providerId=void 0,this.providerName=void 0,this.isArchived=void 0,this.isInHouseProvider=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.title=e.title,this.courseIdLabel=e.courseIdLabel,this.providerId=e.providerId,this.providerName=e.providerName,this.isArchived=e.isArchived,this.isInHouseProvider=e.isInHouseProvider)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.courseIdLabel=this.courseIdLabel,e.providerId=this.providerId,e.providerName=this.providerName,e.isArchived=this.isArchived,e.isInHouseProvider=this.isInHouseProvider,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mi=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.courseCode=void 0,this.providerId=void 0,this.providerName=void 0,this.note=void 0,this.description=void 0,this.archivedDate=void 0,this.courseClassYear=void 0,this.courseCompetency=void 0,this.courseDepartment=void 0,this.courseLevel=void 0,this.coursePracticeArea=void 0,this.courseTag=void 0,this.courseLearningPlan=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.title=e.title,this.courseCode=e.courseCode,this.providerId=e.providerId,this.providerName=e.providerName,this.note=e.note,this.description=e.description,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.courseClassYear)){this.courseClassYear=[];var t,i=Object(s.a)(e.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseClassYear.push(Fi.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.courseCompetency)){this.courseCompetency=[];var n,a=Object(s.a)(e.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.courseCompetency.push(Ui.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.courseDepartment)){this.courseDepartment=[];var l,c=Object(s.a)(e.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courseDepartment.push(Gi.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.courseLevel)){this.courseLevel=[];var u,h=Object(s.a)(e.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.courseLevel.push(Vi.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var p,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.coursePracticeArea.push(Yi.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.courseTag)){this.courseTag=[];var y,g=Object(s.a)(e.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.courseTag.push(ir.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.courseLearningPlan)){this.courseLearningPlan=[];var S,E=Object(s.a)(e.courseLearningPlan);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.courseLearningPlan.push(Fs.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.courseCode=this.courseCode,e.providerId=this.providerId,e.providerName=this.providerName,e.note=this.note,e.description=this.description,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.courseClassYear)){e.courseClassYear=[];var t,i=Object(s.a)(this.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseClassYear.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.courseCompetency)){e.courseCompetency=[];var n,a=Object(s.a)(this.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.courseCompetency.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.courseDepartment)){e.courseDepartment=[];var l,c=Object(s.a)(this.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courseDepartment.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.courseLevel)){e.courseLevel=[];var u,h=Object(s.a)(this.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.courseLevel.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var p,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.coursePracticeArea.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.courseTag)){e.courseTag=[];var y,g=Object(s.a)(this.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.courseTag.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.courseLearningPlan)){e.courseLearningPlan=[];var S,E=Object(s.a)(this.courseLearningPlan);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.courseLearningPlan.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zi=function(){function e(t){if(Object(l.a)(this,e),this.courseFormatId=void 0,this.name=void 0,this.abbreviation=void 0,this.isActive=void 0,this.isEnabled=void 0,this.isOnlineLearning=void 0,this.isIndividualSessionAllowed=void 0,this.portalCategory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseFormatId=e.courseFormatId,this.name=e.name,this.abbreviation=e.abbreviation,this.isActive=e.isActive,this.isEnabled=e.isEnabled,this.isOnlineLearning=e.isOnlineLearning,this.isIndividualSessionAllowed=e.isIndividualSessionAllowed,this.portalCategory=e.portalCategory)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseFormatId=this.courseFormatId,e.name=this.name,e.abbreviation=this.abbreviation,e.isActive=this.isActive,e.isEnabled=this.isEnabled,e.isOnlineLearning=this.isOnlineLearning,e.isIndividualSessionAllowed=this.isIndividualSessionAllowed,e.portalCategory=this.portalCategory,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wi=function(){function e(t){if(Object(l.a)(this,e),this.courseFormats=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.courseFormats)){this.courseFormats=[];var t,i=Object(s.a)(e.courseFormats);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseFormats.push(zi.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseFormats)){e.courseFormats=[];var t,i=Object(s.a)(this.courseFormats);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseFormats.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vi=function(){function e(t){if(Object(l.a)(this,e),this.levelId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_i=function(){function e(t){if(Object(l.a)(this,e),this.courses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courses)){this.courses=[];var t,i=Object(s.a)(e.courses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courses.push(zd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courses)){e.courses=[];var t,i=Object(s.a)(this.courses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yi=function(){function e(t){if(Object(l.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$i=function(){function e(t){if(Object(l.a)(this,e),this.courseSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.isSystem=void 0,this.isDefault=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseSavedFilterId=e.courseSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseSavedFilterId=this.courseSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hi=function(){function e(t){if(Object(l.a)(this,e),this.courseSavedFilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courseSavedFilters)){this.courseSavedFilters=[];var t,i=Object(s.a)(e.courseSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseSavedFilters.push($i.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseSavedFilters)){e.courseSavedFilters=[];var t,i=Object(s.a)(this.courseSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseSavedFilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ki=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.sessionTitle=void 0,this.courseTitle=void 0,this.providerName=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timeZone=void 0,this.location=void 0,this.room=void 0,this.courseFormatPortalCategory=void 0,this.courseFormat=void 0,this.detail=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.courseId=e.courseId,this.sessionTitle=e.sessionTitle,this.courseTitle=e.courseTitle,this.providerName=e.providerName,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timeZone=e.timeZone,this.location=e.location,this.room=e.room,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseFormat=e.courseFormat,this.detail=e.detail)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.sessionTitle=this.sessionTitle,e.courseTitle=this.courseTitle,e.providerName=this.providerName,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timeZone=this.timeZone,e.location=this.location,e.room=this.room,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseFormat=this.courseFormat,e.detail=this.detail,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qi=function(){function e(t){if(Object(l.a)(this,e),this.scheduleId=void 0,this.scheduleLink=void 0,this.sessionTypeId=void 0,this.startDate=void 0,this.endDate=void 0,this.count=void 0,this.sessions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.scheduleId=e.scheduleId,this.scheduleLink=e.scheduleLink,this.sessionTypeId=e.sessionTypeId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.count=e.count,Array.isArray(e.sessions))){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(er.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).scheduleId=this.scheduleId,e.scheduleLink=this.scheduleLink,e.sessionTypeId=this.sessionTypeId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.count=this.count,Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zi=function(){function e(t){if(Object(l.a)(this,e),this.groups=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.groups)){this.groups=[];var t,i=Object(s.a)(e.groups);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.groups.push(Qi.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.groups)){e.groups=[];var t,i=Object(s.a)(this.groups);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.groups.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xi=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.cost=void 0,this.detail=void 0,this.duration=void 0,this.isOnlineLearning=void 0,this.isRegistrationApprovalNeeded=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.evaluation=void 0,this.areQuestionsAllowed=void 0,this.launchUrl=void 0,this.url=void 0,this.note=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.isInHouse=void 0,this.cancelledDate=void 0,this.participantCount=void 0,this.scormCourseId=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionParticipant=void 0,this.sessionInstructors=void 0,this.sessionWaitlist=void 0,this.sessionMaterials=void 0,this.sessionMediaFiles=void 0,this.guid=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.cost=e.cost,this.detail=e.detail,this.duration=e.duration,this.isOnlineLearning=e.isOnlineLearning,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.evaluation=e.evaluation,this.areQuestionsAllowed=e.areQuestionsAllowed,this.launchUrl=e.launchUrl,this.url=e.url,this.note=e.note,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,this.isInHouse=e.isInHouse,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.participantCount=e.participantCount,this.scormCourseId=e.scormCourseId,Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var t,i=Object(s.a)(e.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionApprovers.push(nu.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.sessionParticipant)){this.sessionParticipant=[];var l,c=Object(s.a)(e.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionParticipant.push(Gu.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var u,h=Object(s.a)(e.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionInstructors.push(Gu.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.sessionWaitlist)){this.sessionWaitlist=[];var p,f=Object(s.a)(e.sessionWaitlist);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.sessionWaitlist.push(dh.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var y,g=Object(s.a)(e.sessionMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.sessionMaterials.push(Du.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var S,E=Object(s.a)(e.sessionMediaFiles);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.sessionMediaFiles.push(Lu.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}this.guid=e.guid}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.cost=this.cost,e.detail=this.detail,e.duration=this.duration,e.isOnlineLearning=this.isOnlineLearning,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.evaluation=this.evaluation,e.areQuestionsAllowed=this.areQuestionsAllowed,e.launchUrl=this.launchUrl,e.url=this.url,e.note=this.note,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,e.isInHouse=this.isInHouse,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.participantCount=this.participantCount,e.scormCourseId=this.scormCourseId,Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var t,i=Object(s.a)(this.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionApprovers.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.sessionParticipant)){e.sessionParticipant=[];var l,c=Object(s.a)(this.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionParticipant.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var u,h=Object(s.a)(this.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionInstructors.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.sessionWaitlist)){e.sessionWaitlist=[];var p,f=Object(s.a)(this.sessionWaitlist);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.sessionWaitlist.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var y,g=Object(s.a)(this.sessionMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.sessionMaterials.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var S,E=Object(s.a)(this.sessionMediaFiles);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.sessionMediaFiles.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e.guid=this.guid,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),er=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.courseId=void 0,this.title=void 0,this.sessionTypeId=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timezone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.isOnlineLearning=void 0,this.hasScormPackage=void 0,this.mediaTypeId=void 0,this.courseTitle=void 0,this.isPublished=void 0,this.cancelledDate=void 0,this.sessionInstructors=void 0,this.evaluationId=void 0,this.registeredParticipantCount=void 0,this.tentativeParticipantCount=void 0,this.validatedParticipantCount=void 0,this.pendingParticipantCount=void 0,this.inProgressParticipantCount=void 0,this.disqualifiedParticipantCount=void 0,this.failedParticipantCount=void 0,this.unexcusedParticipantCount=void 0,this.waitlistParticipantCount=void 0,this.sessionLicenses=void 0,this.guid=void 0,this.isIndividualSessionDateAllowed=void 0,this.isOpenToClient=void 0,this.isRegistrationApprovalNeeded=void 0,this.isWaitlistingAllowed=void 0,this.registrationLimit=void 0,this.sessionParticipantCount=void 0,this.sessionWaitlistedParticipantCount=void 0,this.evaluationName=void 0,this.withAnsweredEvaluation=void 0,this.isSessionAttendanceValidated=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.courseId=e.courseId,this.title=e.title,this.sessionTypeId=e.sessionTypeId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timezone=e.timezone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isOnlineLearning=e.isOnlineLearning,this.hasScormPackage=e.hasScormPackage,this.mediaTypeId=e.mediaTypeId,this.courseTitle=e.courseTitle,this.isPublished=e.isPublished,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var t,i=Object(s.a)(e.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionInstructors.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(this.evaluationId=e.evaluationId,this.registeredParticipantCount=e.registeredParticipantCount,this.tentativeParticipantCount=e.tentativeParticipantCount,this.validatedParticipantCount=e.validatedParticipantCount,this.pendingParticipantCount=e.pendingParticipantCount,this.inProgressParticipantCount=e.inProgressParticipantCount,this.disqualifiedParticipantCount=e.disqualifiedParticipantCount,this.failedParticipantCount=e.failedParticipantCount,this.unexcusedParticipantCount=e.unexcusedParticipantCount,this.waitlistParticipantCount=e.waitlistParticipantCount,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}this.guid=e.guid,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isOpenToClient=e.isOpenToClient,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.registrationLimit=e.registrationLimit,this.sessionParticipantCount=e.sessionParticipantCount,this.sessionWaitlistedParticipantCount=e.sessionWaitlistedParticipantCount,this.evaluationName=e.evaluationName,this.withAnsweredEvaluation=e.withAnsweredEvaluation,this.isSessionAttendanceValidated=e.isSessionAttendanceValidated}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.courseId=this.courseId,e.title=this.title,e.sessionTypeId=this.sessionTypeId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timezone=this.timezone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isOnlineLearning=this.isOnlineLearning,e.hasScormPackage=this.hasScormPackage,e.mediaTypeId=this.mediaTypeId,e.courseTitle=this.courseTitle,e.isPublished=this.isPublished,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var t,i=Object(s.a)(this.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionInstructors.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(e.evaluationId=this.evaluationId,e.registeredParticipantCount=this.registeredParticipantCount,e.tentativeParticipantCount=this.tentativeParticipantCount,e.validatedParticipantCount=this.validatedParticipantCount,e.pendingParticipantCount=this.pendingParticipantCount,e.inProgressParticipantCount=this.inProgressParticipantCount,e.disqualifiedParticipantCount=this.disqualifiedParticipantCount,e.failedParticipantCount=this.failedParticipantCount,e.unexcusedParticipantCount=this.unexcusedParticipantCount,e.waitlistParticipantCount=this.waitlistParticipantCount,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e.guid=this.guid,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isOpenToClient=this.isOpenToClient,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.registrationLimit=this.registrationLimit,e.sessionParticipantCount=this.sessionParticipantCount,e.sessionWaitlistedParticipantCount=this.sessionWaitlistedParticipantCount,e.evaluationName=this.evaluationName,e.withAnsweredEvaluation=this.withAnsweredEvaluation,e.isSessionAttendanceValidated=this.isSessionAttendanceValidated,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tr=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(er.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ir=function(){function e(t){if(Object(l.a)(this,e),this.tagId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.tagId=e.tagId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tagId=this.tagId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rr=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.courseIdLabel=void 0,this.providerId=void 0,this.providerName=void 0,this.note=void 0,this.description=void 0,this.isArchived=void 0,this.courseClassYear=void 0,this.courseCompetency=void 0,this.courseDepartment=void 0,this.courseLevel=void 0,this.coursePracticeArea=void 0,this.courseTag=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.title=e.title,this.courseIdLabel=e.courseIdLabel,this.providerId=e.providerId,this.providerName=e.providerName,this.note=e.note,this.description=e.description,this.isArchived=e.isArchived,Array.isArray(e.courseClassYear)){this.courseClassYear=[];var t,i=Object(s.a)(e.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseClassYear.push(r)}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.courseCompetency)){this.courseCompetency=[];var n,a=Object(s.a)(e.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.courseCompetency.push(o)}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.courseDepartment)){this.courseDepartment=[];var l,c=Object(s.a)(e.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courseDepartment.push(d)}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.courseLevel)){this.courseLevel=[];var u,h=Object(s.a)(e.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.courseLevel.push(v)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var p,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.coursePracticeArea.push(m)}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.courseTag)){this.courseTag=[];var y,g=Object(s.a)(e.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.courseTag.push(b)}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.courseIdLabel=this.courseIdLabel,e.providerId=this.providerId,e.providerName=this.providerName,e.note=this.note,e.description=this.description,e.isArchived=this.isArchived,Array.isArray(this.courseClassYear)){e.courseClassYear=[];var t,i=Object(s.a)(this.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseClassYear.push(r)}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.courseCompetency)){e.courseCompetency=[];var n,a=Object(s.a)(this.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.courseCompetency.push(o)}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.courseDepartment)){e.courseDepartment=[];var l,c=Object(s.a)(this.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courseDepartment.push(d)}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.courseLevel)){e.courseLevel=[];var u,h=Object(s.a)(this.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.courseLevel.push(v)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var p,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.coursePracticeArea.push(m)}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.courseTag)){e.courseTag=[];var y,g=Object(s.a)(this.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.courseTag.push(b)}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nr=function(){function e(t){if(Object(l.a)(this,e),this.activityDescription=void 0,this.activityDate=void 0,this.hours=void 0,this.userId=void 0,this.licenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.activityDescription=e.activityDescription,this.activityDate=e.activityDate?new Date(e.activityDate.toString()):void 0,this.hours=e.hours,this.userId=e.userId,Array.isArray(e.licenses))){this.licenses=[];var t,i=Object(s.a)(e.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenses.push(Pl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).activityDescription=this.activityDescription,e.activityDate=this.activityDate?this.activityDate.toISOString():void 0,e.hours=this.hours,e.userId=this.userId,Array.isArray(this.licenses)){e.licenses=[];var t,i=Object(s.a)(this.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ar=function(){function e(t){if(Object(l.a)(this,e),this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),or=function(){function e(t){if(Object(l.a)(this,e),this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.title=void 0,this.description=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.title=e.title,this.description=e.description)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.title=this.title,e.description=this.description,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lr=function(){function e(t){if(Object(l.a)(this,e),this.title=void 0,this.courseIdLabel=void 0,this.providerId=void 0,this.note=void 0,this.description=void 0,this.courseClassYear=void 0,this.courseCompetency=void 0,this.courseDepartment=void 0,this.courseLevel=void 0,this.coursePracticeArea=void 0,this.courseTag=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.title=e.title,this.courseIdLabel=e.courseIdLabel,this.providerId=e.providerId,this.note=e.note,this.description=e.description,Array.isArray(e.courseClassYear)){this.courseClassYear=[];var t,i=Object(s.a)(e.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseClassYear.push(r)}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.courseCompetency)){this.courseCompetency=[];var n,a=Object(s.a)(e.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.courseCompetency.push(o)}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.courseDepartment)){this.courseDepartment=[];var l,c=Object(s.a)(e.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courseDepartment.push(d)}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.courseLevel)){this.courseLevel=[];var u,h=Object(s.a)(e.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.courseLevel.push(v)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var p,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.coursePracticeArea.push(m)}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.courseTag)){this.courseTag=[];var y,g=Object(s.a)(e.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.courseTag.push(b)}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).title=this.title,e.courseIdLabel=this.courseIdLabel,e.providerId=this.providerId,e.note=this.note,e.description=this.description,Array.isArray(this.courseClassYear)){e.courseClassYear=[];var t,i=Object(s.a)(this.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseClassYear.push(r)}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.courseCompetency)){e.courseCompetency=[];var n,a=Object(s.a)(this.courseCompetency);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.courseCompetency.push(o)}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.courseDepartment)){e.courseDepartment=[];var l,c=Object(s.a)(this.courseDepartment);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courseDepartment.push(d)}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.courseLevel)){e.courseLevel=[];var u,h=Object(s.a)(this.courseLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.courseLevel.push(v)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var p,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.coursePracticeArea.push(m)}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.courseTag)){e.courseTag=[];var y,g=Object(s.a)(this.courseTag);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.courseTag.push(b)}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cr=function(){function e(t){if(Object(l.a)(this,e),this.courseTitle=void 0,this.providerId=void 0,this.courseDate=void 0,this.courseFormatId=void 0,this.hours=void 0,this.userId=void 0,this.licenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.courseTitle=e.courseTitle,this.providerId=e.providerId,this.courseDate=e.courseDate?new Date(e.courseDate.toString()):void 0,this.courseFormatId=e.courseFormatId,this.hours=e.hours,this.userId=e.userId,Array.isArray(e.licenses))){this.licenses=[];var t,i=Object(s.a)(e.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenses.push(Pl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseTitle=this.courseTitle,e.providerId=this.providerId,e.courseDate=this.courseDate?this.courseDate.toISOString():void 0,e.courseFormatId=this.courseFormatId,e.hours=this.hours,e.userId=this.userId,Array.isArray(this.licenses)){e.licenses=[];var t,i=Object(s.a)(this.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dr=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.sessionRecurrencePattern=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(br.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.sessionRecurrencePattern=e.sessionRecurrencePattern?th.fromJS(e.sessionRecurrencePattern):void 0}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.sessionRecurrencePattern=this.sessionRecurrencePattern?this.sessionRecurrencePattern.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ur=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.isInstructor=void 0,this.certificateFileId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.isInstructor=e.isInstructor,this.certificateFileId=e.certificateFileId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.isInstructor=this.isInstructor,e.certificateFileId=this.certificateFileId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentOverallReflectionCompetencyFrameworkId=void 0,this.startDate=void 0,this.endDate=void 0,this.reflection=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.developmentOverallReflectionCompetencyFrameworkId=e.developmentOverallReflectionCompetencyFrameworkId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.reflection=e.reflection)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.developmentOverallReflectionCompetencyFrameworkId=this.developmentOverallReflectionCompetencyFrameworkId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.reflection=this.reflection,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentPlans=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,Array.isArray(e.developmentPlans))){this.developmentPlans=[];var t,i=Object(s.a)(e.developmentPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.developmentPlans.push(an.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,Array.isArray(this.developmentPlans)){e.developmentPlans=[];var t,i=Object(s.a)(this.developmentPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.developmentPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pr=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordReflection=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.developmentRecordReflection)){this.developmentRecordReflection=[];var t,i=Object(s.a)(e.developmentRecordReflection);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.developmentRecordReflection.push(pn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.developmentRecordReflection)){e.developmentRecordReflection=[];var t,i=Object(s.a)(this.developmentRecordReflection);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.developmentRecordReflection.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fr=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordId=void 0,this.competencyFrameworkId=void 0,this.sessionParticipantId=void 0,this.activityParticipantId=void 0,this.developmentRecordLearningNeeds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.developmentRecordId=e.developmentRecordId,this.competencyFrameworkId=e.competencyFrameworkId,this.sessionParticipantId=e.sessionParticipantId,this.activityParticipantId=e.activityParticipantId,Array.isArray(e.developmentRecordLearningNeeds))){this.developmentRecordLearningNeeds=[];var t,i=Object(s.a)(e.developmentRecordLearningNeeds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.developmentRecordLearningNeeds.push(un.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).developmentRecordId=this.developmentRecordId,e.competencyFrameworkId=this.competencyFrameworkId,e.sessionParticipantId=this.sessionParticipantId,e.activityParticipantId=this.activityParticipantId,Array.isArray(this.developmentRecordLearningNeeds)){e.developmentRecordLearningNeeds=[];var t,i=Object(s.a)(this.developmentRecordLearningNeeds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.developmentRecordLearningNeeds.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mr=function(){function e(t){if(Object(l.a)(this,e),this.name=void 0,this.isInHouse=void 0,this.isActive=void 0,this.code=void 0,this.url=void 0,this.isScheduleAllowed=void 0,this.isRegistrationAllowed=void 0,this.isCertificateAllowed=void 0,this.isReportingAllowed=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.isInHouse=e.isInHouse,this.isActive=e.isActive,this.code=e.code,this.url=e.url,this.isScheduleAllowed=e.isScheduleAllowed,this.isRegistrationAllowed=e.isRegistrationAllowed,this.isCertificateAllowed=e.isCertificateAllowed,this.isReportingAllowed=e.isReportingAllowed)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.isInHouse=this.isInHouse,e.isActive=this.isActive,e.code=this.code,e.url=this.url,e.isScheduleAllowed=this.isScheduleAllowed,e.isRegistrationAllowed=this.isRegistrationAllowed,e.isCertificateAllowed=this.isCertificateAllowed,e.isReportingAllowed=this.isReportingAllowed,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yr=function(){function e(t){if(Object(l.a)(this,e),this.scormCourseId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.sessionMediaFileId=void 0,this.status=void 0,this.userLearningPackageDetailId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.scormCourseId=e.scormCourseId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.sessionMediaFileId=e.sessionMediaFileId,this.status=e.status,this.userLearningPackageDetailId=e.userLearningPackageDetailId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).scormCourseId=this.scormCourseId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.sessionMediaFileId=this.sessionMediaFileId,e.status=this.status,e.userLearningPackageDetailId=this.userLearningPackageDetailId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gr=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPackageDetailId=void 0,this.duration=void 0,this.score=void 0,this.status=void 0,this.userLearningPackageProgressId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLearningPackageDetailId=e.userLearningPackageDetailId,this.duration=e.duration,this.score=e.score,this.status=e.status,this.userLearningPackageProgressId=e.userLearningPackageProgressId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLearningPackageDetailId=this.userLearningPackageDetailId,e.duration=this.duration,e.score=this.score,e.status=this.status,e.userLearningPackageProgressId=this.userLearningPackageProgressId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),br=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.code=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.courseFormatId=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.locationId=void 0,this.timezoneId=void 0,this.isRegistrationApprovalNeeded=void 0,this.roomId=void 0,this.cost=void 0,this.duration=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.areQuestionsAllowed=void 0,this.launchUrl=void 0,this.url=void 0,this.note=void 0,this.detail=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,this.sessionMediaFiles=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.title=e.title,this.code=e.code,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.courseFormatId=e.courseFormatId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.locationId=e.locationId,this.timezoneId=e.timezoneId,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.roomId=e.roomId,this.cost=e.cost,this.duration=e.duration,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.areQuestionsAllowed=e.areQuestionsAllowed,this.launchUrl=e.launchUrl,this.url=e.url,this.note=e.note,this.detail=e.detail,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var t,i=Object(s.a)(e.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionApprovers.push(nu.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var l,c=Object(s.a)(e.sessionMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionMaterials.push(Du.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var u,h=Object(s.a)(e.sessionMediaFiles);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionMediaFiles.push(Lu.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.code=this.code,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.courseFormatId=this.courseFormatId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.locationId=this.locationId,e.timezoneId=this.timezoneId,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.roomId=this.roomId,e.cost=this.cost,e.duration=this.duration,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.areQuestionsAllowed=this.areQuestionsAllowed,e.launchUrl=this.launchUrl,e.url=this.url,e.note=this.note,e.detail=this.detail,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var t,i=Object(s.a)(this.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionApprovers.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var l,c=Object(s.a)(this.sessionMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionMaterials.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var u,h=Object(s.a)(this.sessionMediaFiles);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionMediaFiles.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sr=function(){function e(t){if(Object(l.a)(this,e),this.userIdList=void 0,this.sessionId=void 0,this.extraSessionIds=void 0,this.isInstructor=void 0,this.isTentative=void 0,this.sendEmailConfirmation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.userIdList=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userIdList)){this.userIdList=[];var t,i=Object(s.a)(e.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userIdList.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(this.sessionId=e.sessionId,Array.isArray(e.extraSessionIds)){this.extraSessionIds=[];var n,a=Object(s.a)(e.extraSessionIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.extraSessionIds.push(o)}}catch(l){a.e(l)}finally{a.f()}}this.isInstructor=e.isInstructor,this.isTentative=e.isTentative,this.sendEmailConfirmation=e.sendEmailConfirmation}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userIdList)){e.userIdList=[];var t,i=Object(s.a)(this.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userIdList.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(e.sessionId=this.sessionId,Array.isArray(this.extraSessionIds)){e.extraSessionIds=[];var n,a=Object(s.a)(this.extraSessionIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.extraSessionIds.push(o)}}catch(l){a.e(l)}finally{a.f()}}return e.isInstructor=this.isInstructor,e.isTentative=this.isTentative,e.sendEmailConfirmation=this.sendEmailConfirmation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Er=function(){function e(t){if(Object(l.a)(this,e),this.courseDto=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseDto=e.courseDto?Ir.fromJS(e.courseDto):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseDto=this.courseDto?this.courseDto.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ir=function(){function e(t){if(Object(l.a)(this,e),this.course=void 0,this.session=void 0,this.sessionParticipants=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.course=e.course?lr.fromJS(e.course):void 0,this.session=e.session?dr.fromJS(e.session):void 0,Array.isArray(e.sessionParticipants))){this.sessionParticipants=[];var t,i=Object(s.a)(e.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipants.push(ur.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).course=this.course?this.course.toJSON():void 0,e.session=this.session?this.session.toJSON():void 0,Array.isArray(this.sessionParticipants)){e.sessionParticipants=[];var t,i=Object(s.a)(this.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipants.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Or=function(){function e(t){if(Object(l.a)(this,e),this.courseDto=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseDto=e.courseDto?Cr.fromJS(e.courseDto):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseDto=this.courseDto?this.courseDto.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cr=function(){function e(t){if(Object(l.a)(this,e),this.courseTitle=void 0,this.courseProviderId=void 0,this.courseCode=void 0,this.session=void 0,this.sessionParticipants=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.courseTitle=e.courseTitle,this.courseProviderId=e.courseProviderId,this.courseCode=e.courseCode,this.session=e.session?dr.fromJS(e.session):void 0,Array.isArray(e.sessionParticipants))){this.sessionParticipants=[];var t,i=Object(s.a)(e.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipants.push(ur.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseTitle=this.courseTitle,e.courseProviderId=this.courseProviderId,e.courseCode=this.courseCode,e.session=this.session?this.session.toJSON():void 0,Array.isArray(this.sessionParticipants)){e.sessionParticipants=[];var t,i=Object(s.a)(this.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipants.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.sessionMediaFileId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.verificationCodeAttempt=void 0,this.verificationCodeValidated=void 0,this.viewStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.verificationCodeAttempt=e.verificationCodeAttempt,this.verificationCodeValidated=e.verificationCodeValidated,this.viewStatus=e.viewStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.sessionMediaFileId=this.sessionMediaFileId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.verificationCodeAttempt=this.verificationCodeAttempt,e.verificationCodeValidated=this.verificationCodeValidated,e.viewStatus=this.viewStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.sessionMediaFileId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.verificationLastViewed=void 0,this.verificationViewMissed=void 0,this.verificationViewValidated=void 0,this.verificationViewCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.verificationLastViewed=e.verificationLastViewed,this.verificationViewMissed=e.verificationViewMissed,this.verificationViewValidated=e.verificationViewValidated,this.verificationViewCount=e.verificationViewCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.sessionMediaFileId=this.sessionMediaFileId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.verificationLastViewed=this.verificationLastViewed,e.verificationViewMissed=this.verificationViewMissed,e.verificationViewValidated=this.verificationViewValidated,e.verificationViewCount=this.verificationViewCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.reportName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.reportName=e.reportName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.reportName=this.reportName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.ManuallyAdded=0]="ManuallyAdded",e[e.MetCriteria=1]="MetCriteria",e[e.NoLongerMeetsCriteria=2]="NoLongerMeetsCriteria",e[e.SelfRegistered=3]="SelfRegistered"}(Ei||(Ei={}));var Tr,Ar=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.industryId=void 0,this.reportingPeriodEndDate=void 0,this.inComplianceCount=void 0,this.inProgressCount=void 0,this.priorPeriodDeficiencyCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.industryId=e.industryId,this.reportingPeriodEndDate=e.reportingPeriodEndDate?new Date(e.reportingPeriodEndDate.toString()):void 0,this.inComplianceCount=e.inComplianceCount,this.inProgressCount=e.inProgressCount,this.priorPeriodDeficiencyCount=e.priorPeriodDeficiencyCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.industryId=this.industryId,e.reportingPeriodEndDate=this.reportingPeriodEndDate?this.reportingPeriodEndDate.toISOString():void 0,e.inComplianceCount=this.inComplianceCount,e.inProgressCount=this.inProgressCount,e.priorPeriodDeficiencyCount=this.priorPeriodDeficiencyCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nr=function(){function e(t){if(Object(l.a)(this,e),this.dashboardReportingPeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.dashboardReportingPeriods)){this.dashboardReportingPeriods=[];var t,i=Object(s.a)(e.dashboardReportingPeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.dashboardReportingPeriods.push(Ar.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.dashboardReportingPeriods)){e.dashboardReportingPeriods=[];var t,i=Object(s.a)(this.dashboardReportingPeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.dashboardReportingPeriods.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kr=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.courseFormatPortalCategory=void 0,this.isOnlineLearning=void 0,this.courseTitle=void 0,this.startDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.validatedCount=void 0,this.registeredCount=void 0,this.tentativeCount=void 0,this.pendingCount=void 0,this.inProgressCount=void 0,this.disqualifiedCount=void 0,this.failedCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isOnlineLearning=e.isOnlineLearning,this.courseTitle=e.courseTitle,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.validatedCount=e.validatedCount,this.registeredCount=e.registeredCount,this.tentativeCount=e.tentativeCount,this.pendingCount=e.pendingCount,this.inProgressCount=e.inProgressCount,this.disqualifiedCount=e.disqualifiedCount,this.failedCount=e.failedCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isOnlineLearning=this.isOnlineLearning,e.courseTitle=this.courseTitle,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.validatedCount=this.validatedCount,e.registeredCount=this.registeredCount,e.tentativeCount=this.tentativeCount,e.pendingCount=this.pendingCount,e.inProgressCount=this.inProgressCount,e.disqualifiedCount=this.disqualifiedCount,e.failedCount=this.failedCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dr=function(){function e(t){if(Object(l.a)(this,e),this.dashboardSessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.dashboardSessions)){this.dashboardSessions=[];var t,i=Object(s.a)(e.dashboardSessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.dashboardSessions.push(kr.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.dashboardSessions)){e.dashboardSessions=[];var t,i=Object(s.a)(this.dashboardSessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.dashboardSessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.reportId=void 0,this.reportGuid=void 0,this.reportName=void 0,this.categoryName=void 0,this.reportType=void 0,this.lastViewDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.reportId=e.reportId,this.reportGuid=e.reportGuid,this.reportName=e.reportName,this.categoryName=e.categoryName,this.reportType=e.reportType,this.lastViewDate=e.lastViewDate?new Date(e.lastViewDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.reportId=this.reportId,e.reportGuid=this.reportGuid,e.reportName=this.reportName,e.categoryName=this.categoryName,e.reportType=this.reportType,e.lastViewDate=this.lastViewDate?this.lastViewDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jr=function(){function e(t){if(Object(l.a)(this,e),this.dashboardUserFavoriteReports=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.dashboardUserFavoriteReports)){this.dashboardUserFavoriteReports=[];var t,i=Object(s.a)(e.dashboardUserFavoriteReports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.dashboardUserFavoriteReports.push(Lr.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.dashboardUserFavoriteReports)){e.dashboardUserFavoriteReports=[];var t,i=Object(s.a)(this.dashboardUserFavoriteReports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.dashboardUserFavoriteReports.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fr=function(){function e(t){if(Object(l.a)(this,e),this.dateFormatId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.dateFormatId=e.dateFormatId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).dateFormatId=this.dateFormatId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Br=function(){function e(t){if(Object(l.a)(this,e),this.declineCodeId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.scheduleDeclineCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.declineCodeId=e.declineCodeId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.scheduleDeclineCount=e.scheduleDeclineCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).declineCodeId=this.declineCodeId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.scheduleDeclineCount=this.scheduleDeclineCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rr=function(){function e(t){if(Object(l.a)(this,e),this.declineCodes=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.declineCodes)){this.declineCodes=[];var t,i=Object(s.a)(e.declineCodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.declineCodes.push(Br.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.declineCodes)){e.declineCodes=[];var t,i=Object(s.a)(this.declineCodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.declineCodes.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ur=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gr=function(){function e(t){if(Object(l.a)(this,e),this.activityParticipantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityParticipantId=e.activityParticipantId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityParticipantId=this.activityParticipantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qr=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantCertificateIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.sessionParticipantCertificateIdList)){this.sessionParticipantCertificateIdList=[];var t,i=Object(s.a)(e.sessionParticipantCertificateIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantCertificateIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipantCertificateIdList)){e.sessionParticipantCertificateIdList=[];var t,i=Object(s.a)(this.sessionParticipantCertificateIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantCertificateIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mr=function(){function e(t){if(Object(l.a)(this,e),this.collectionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.collectionId=e.collectionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).collectionId=this.collectionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zr=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wr=function(){function e(t){if(Object(l.a)(this,e),this.userOnDemandSessionIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userOnDemandSessionIdList)){this.userOnDemandSessionIdList=[];var t,i=Object(s.a)(e.userOnDemandSessionIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userOnDemandSessionIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userOnDemandSessionIdList)){e.userOnDemandSessionIdList=[];var t,i=Object(s.a)(this.userOnDemandSessionIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userOnDemandSessionIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vr=function(){function e(t){if(Object(l.a)(this,e),this.userIdList=void 0,this.sessionId=void 0,this.sendEmailConfirmation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userIdList)){this.userIdList=[];var t,i=Object(s.a)(e.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.sessionId=e.sessionId,this.sendEmailConfirmation=e.sendEmailConfirmation}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userIdList)){e.userIdList=[];var t,i=Object(s.a)(this.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.sessionId=this.sessionId,e.sendEmailConfirmation=this.sendEmailConfirmation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_r=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordLearningNeedId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.developmentRecordLearningNeedId=e.developmentRecordLearningNeedId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).developmentRecordLearningNeedId=this.developmentRecordLearningNeedId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yr=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.learningPlanId=e.learningPlanId,Array.isArray(e.participantIdList))){this.participantIdList=[];var t,i=Object(s.a)(e.participantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.participantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,Array.isArray(this.participantIdList)){e.participantIdList=[];var t,i=Object(s.a)(this.participantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.participantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$r=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hr=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.sessionParticipantIdList=void 0,this.sendEmailConfirmation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.sessionParticipantIdList=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,Array.isArray(e.sessionParticipantIdList)){this.sessionParticipantIdList=[];var t,i=Object(s.a)(e.sessionParticipantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.sendEmailConfirmation=e.sendEmailConfirmation}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,Array.isArray(this.sessionParticipantIdList)){e.sessionParticipantIdList=[];var t,i=Object(s.a)(this.sessionParticipantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.sendEmailConfirmation=this.sendEmailConfirmation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qr=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zr=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.sessionParticipantIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,Array.isArray(e.sessionParticipantIdList))){this.sessionParticipantIdList=[];var t,i=Object(s.a)(e.sessionParticipantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,Array.isArray(this.sessionParticipantIdList)){e.sessionParticipantIdList=[];var t,i=Object(s.a)(this.sessionParticipantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xr=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.sessionParticipantIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.sessionParticipantIdList=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,Array.isArray(e.sessionParticipantIdList))){this.sessionParticipantIdList=[];var t,i=Object(s.a)(e.sessionParticipantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,Array.isArray(this.sessionParticipantIdList)){e.sessionParticipantIdList=[];var t,i=Object(s.a)(this.sessionParticipantIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),en=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tn=function(){function e(t){if(Object(l.a)(this,e),this.departmentId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.courseCount=void 0,this.userCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.courseCount=e.courseCount,this.userCount=e.userCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.courseCount=this.courseCount,e.userCount=this.userCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rn=function(){function e(t){if(Object(l.a)(this,e),this.departments=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.departments)){this.departments=[];var t,i=Object(s.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(tn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.departments)){e.departments=[];var t,i=Object(s.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nn=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentOverallReflectionCompetencyFrameworkId=void 0,this.reflection=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.developmentOverallReflectionCompetencyFrameworkId=e.developmentOverallReflectionCompetencyFrameworkId,this.reflection=e.reflection,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.developmentOverallReflectionCompetencyFrameworkId=this.developmentOverallReflectionCompetencyFrameworkId,e.reflection=this.reflection,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),an=function(){function e(t){if(Object(l.a)(this,e),this.developmentPlanId=void 0,this.userId=void 0,this.developmentPlanCompetencyFrameworkId=void 0,this.developmentPlanCategoryId=void 0,this.customNeed=void 0,this.category=void 0,this.plan=void 0,this.developmentPlanSubCategoryId=void 0,this.achieve=void 0,this.isCustomNeed=void 0,this.startDate=void 0,this.endDate=void 0,this.targetCompletionDate=void 0,this.status=void 0,this.isIncluded=void 0,this.hasSubCat=void 0,this.hasLearningNeeds=void 0,this.hasPreviousValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.developmentPlanId=e.developmentPlanId,this.userId=e.userId,this.developmentPlanCompetencyFrameworkId=e.developmentPlanCompetencyFrameworkId,this.developmentPlanCategoryId=e.developmentPlanCategoryId,this.customNeed=e.customNeed,this.category=e.category,this.plan=e.plan,this.developmentPlanSubCategoryId=e.developmentPlanSubCategoryId,this.achieve=e.achieve,this.isCustomNeed=e.isCustomNeed,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.targetCompletionDate=e.targetCompletionDate?new Date(e.targetCompletionDate.toString()):void 0,this.status=e.status,this.isIncluded=e.isIncluded,this.hasSubCat=e.hasSubCat,this.hasLearningNeeds=e.hasLearningNeeds,this.hasPreviousValues=e.hasPreviousValues)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).developmentPlanId=this.developmentPlanId,e.userId=this.userId,e.developmentPlanCompetencyFrameworkId=this.developmentPlanCompetencyFrameworkId,e.developmentPlanCategoryId=this.developmentPlanCategoryId,e.customNeed=this.customNeed,e.category=this.category,e.plan=this.plan,e.developmentPlanSubCategoryId=this.developmentPlanSubCategoryId,e.achieve=this.achieve,e.isCustomNeed=this.isCustomNeed,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.targetCompletionDate=this.targetCompletionDate?this.targetCompletionDate.toISOString():void 0,e.status=this.status,e.isIncluded=this.isIncluded,e.hasSubCat=this.hasSubCat,e.hasLearningNeeds=this.hasLearningNeeds,e.hasPreviousValues=this.hasPreviousValues,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),on=function(){function e(t){if(Object(l.a)(this,e),this.competencyFrameworkId=void 0,this.categoryId=void 0,this.categoryName=void 0,this.hasSubCat=void 0,this.isCustomNeed=void 0,this.isEditMode=void 0,this.subCategories=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.competencyFrameworkId=e.competencyFrameworkId,this.categoryId=e.categoryId,this.categoryName=e.categoryName,this.hasSubCat=e.hasSubCat,this.isCustomNeed=e.isCustomNeed,this.isEditMode=e.isEditMode,Array.isArray(e.subCategories))){this.subCategories=[];var t,i=Object(s.a)(e.subCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subCategories.push(bh.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).competencyFrameworkId=this.competencyFrameworkId,e.categoryId=this.categoryId,e.categoryName=this.categoryName,e.hasSubCat=this.hasSubCat,e.isCustomNeed=this.isCustomNeed,e.isEditMode=this.isEditMode,Array.isArray(this.subCategories)){e.subCategories=[];var t,i=Object(s.a)(this.subCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subCategories.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sn=function(){function e(t){if(Object(l.a)(this,e),this.periodFrom=void 0,this.periodTo=void 0,this.isConfirmed=void 0,this.competencyFrameworkId=void 0,this.competencyFrameworkUserInstruction=void 0,this.licenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.isConfirmed=e.isConfirmed,this.competencyFrameworkId=e.competencyFrameworkId,this.competencyFrameworkUserInstruction=e.competencyFrameworkUserInstruction,Array.isArray(e.licenses))){this.licenses=[];var t,i=Object(s.a)(e.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenses.push(sp.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.isConfirmed=this.isConfirmed,e.competencyFrameworkId=this.competencyFrameworkId,e.competencyFrameworkUserInstruction=this.competencyFrameworkUserInstruction,Array.isArray(this.licenses)){e.licenses=[];var t,i=Object(s.a)(this.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.InProgress=1]="InProgress",e[e.Complete=2]="Complete"}(Tr||(Tr={}));var ln,cn=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordId=void 0,this.sessionActivityParticipantId=void 0,this.courseActivityTitle=void 0,this.courseActivityDate=void 0,this.courseFormat=void 0,this.hours=void 0,this.isCourse=void 0,this.canUpdateDelete=void 0,this.reflection=void 0,this.licenseName=void 0,this.creditName=void 0,this.isPending=void 0,this.action=void 0,this.learningNeeds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.developmentRecordId=e.developmentRecordId,this.sessionActivityParticipantId=e.sessionActivityParticipantId,this.courseActivityTitle=e.courseActivityTitle,this.courseActivityDate=e.courseActivityDate?new Date(e.courseActivityDate.toString()):void 0,this.courseFormat=e.courseFormat,this.hours=e.hours,this.isCourse=e.isCourse,this.canUpdateDelete=e.canUpdateDelete,this.reflection=e.reflection,this.licenseName=e.licenseName,this.creditName=e.creditName,this.isPending=e.isPending,this.action=e.action,Array.isArray(e.learningNeeds))){this.learningNeeds=[];var t,i=Object(s.a)(e.learningNeeds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningNeeds.push(dn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).developmentRecordId=this.developmentRecordId,e.sessionActivityParticipantId=this.sessionActivityParticipantId,e.courseActivityTitle=this.courseActivityTitle,e.courseActivityDate=this.courseActivityDate?this.courseActivityDate.toISOString():void 0,e.courseFormat=this.courseFormat,e.hours=this.hours,e.isCourse=this.isCourse,e.canUpdateDelete=this.canUpdateDelete,e.reflection=this.reflection,e.licenseName=this.licenseName,e.creditName=this.creditName,e.isPending=this.isPending,e.action=this.action,Array.isArray(this.learningNeeds)){e.learningNeeds=[];var t,i=Object(s.a)(this.learningNeeds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningNeeds.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dn=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordLearningNeedId=void 0,this.competencyId=void 0,this.competencyName=void 0,this.competencySequence=void 0,this.subCategoryId=void 0,this.subCategoryName=void 0,this.subCategorySequence=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.developmentRecordLearningNeedId=e.developmentRecordLearningNeedId,this.competencyId=e.competencyId,this.competencyName=e.competencyName,this.competencySequence=e.competencySequence,this.subCategoryId=e.subCategoryId,this.subCategoryName=e.subCategoryName,this.subCategorySequence=e.subCategorySequence)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).developmentRecordLearningNeedId=this.developmentRecordLearningNeedId,e.competencyId=this.competencyId,e.competencyName=this.competencyName,e.competencySequence=this.competencySequence,e.subCategoryId=this.subCategoryId,e.subCategoryName=this.subCategoryName,e.subCategorySequence=this.subCategorySequence,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),un=function(){function e(t){if(Object(l.a)(this,e),this.competencyFrameworkId=void 0,this.competencyId=void 0,this.subCategoryId=void 0,this.developmentPlanId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.competencyFrameworkId=e.competencyFrameworkId,this.competencyId=e.competencyId,this.subCategoryId=e.subCategoryId,this.developmentPlanId=e.developmentPlanId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyFrameworkId=this.competencyFrameworkId,e.competencyId=this.competencyId,e.subCategoryId=this.subCategoryId,e.developmentPlanId=this.developmentPlanId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hn=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordLearningNeeds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.developmentRecordLearningNeeds)){this.developmentRecordLearningNeeds=[];var t,i=Object(s.a)(e.developmentRecordLearningNeeds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.developmentRecordLearningNeeds.push(fn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.developmentRecordLearningNeeds)){e.developmentRecordLearningNeeds=[];var t,i=Object(s.a)(this.developmentRecordLearningNeeds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.developmentRecordLearningNeeds.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vn=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecord=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.developmentRecord)){this.developmentRecord=[];var t,i=Object(s.a)(e.developmentRecord);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.developmentRecord.push(cn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.developmentRecord)){e.developmentRecord=[];var t,i=Object(s.a)(this.developmentRecord);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.developmentRecord.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pn=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordId=void 0,this.sessionParticipantId=void 0,this.activityParticipantId=void 0,this.reflectionDetails=void 0,this.action=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.developmentRecordId=e.developmentRecordId,this.sessionParticipantId=e.sessionParticipantId,this.activityParticipantId=e.activityParticipantId,this.reflectionDetails=e.reflectionDetails,this.action=e.action)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).developmentRecordId=this.developmentRecordId,e.sessionParticipantId=this.sessionParticipantId,e.activityParticipantId=this.activityParticipantId,e.reflectionDetails=this.reflectionDetails,e.action=this.action,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fn=function(){function e(t){if(Object(l.a)(this,e),this.developmentRecordId=void 0,this.competencyFrameworkId=void 0,this.competencyId=void 0,this.name=void 0,this.developmentPlanId=void 0,this.isCustomNeed=void 0,this.isSelected=void 0,this.subCategories=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.developmentRecordId=e.developmentRecordId,this.competencyFrameworkId=e.competencyFrameworkId,this.competencyId=e.competencyId,this.name=e.name,this.developmentPlanId=e.developmentPlanId,this.isCustomNeed=e.isCustomNeed,this.isSelected=e.isSelected,Array.isArray(e.subCategories))){this.subCategories=[];var t,i=Object(s.a)(e.subCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subCategories.push(Ns.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).developmentRecordId=this.developmentRecordId,e.competencyFrameworkId=this.competencyFrameworkId,e.competencyId=this.competencyId,e.name=this.name,e.developmentPlanId=this.developmentPlanId,e.isCustomNeed=this.isCustomNeed,e.isSelected=this.isSelected,Array.isArray(this.subCategories)){e.subCategories=[];var t,i=Object(s.a)(this.subCategories);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subCategories.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mn=function(){function e(t){if(Object(l.a)(this,e),this.fileId=void 0,this.file=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.fileId=e.fileId,this.file=e.file,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).fileId=this.fileId,e.file=this.file,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yn=function(){function e(t){if(Object(l.a)(this,e),this.dueToReportScheduleId=void 0,this.isActive=void 0,this.frequency=void 0,this.jobId=void 0,this.lastEmailSent=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.dueToReportScheduleId=e.dueToReportScheduleId,this.isActive=e.isActive,this.frequency=e.frequency,this.jobId=e.jobId,this.lastEmailSent=e.lastEmailSent?new Date(e.lastEmailSent.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).dueToReportScheduleId=this.dueToReportScheduleId,e.isActive=this.isActive,e.frequency=this.frequency,e.jobId=this.jobId,e.lastEmailSent=this.lastEmailSent?this.lastEmailSent.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gn=function(){function e(t){if(Object(l.a)(this,e),this.dueToReportScheduleId=void 0,this.minimumMonth=void 0,this.isActive=void 0,this.licenseIds=void 0,this.emailTemplateId=void 0,this.template=void 0,this.frequency=void 0,this.time=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurDayOfWeek=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.numberOfMonths=void 0,this.monthlyDayWithInterval=void 0,this.numberOfMonthsInterval=void 0,this.dayOfMonthWithInterval=void 0,this.dayOfWeekWithInterval=void 0,this.jobId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.dueToReportScheduleId=e.dueToReportScheduleId,this.minimumMonth=e.minimumMonth,this.isActive=e.isActive,this.licenseIds=e.licenseIds,this.emailTemplateId=e.emailTemplateId,this.template=e.template?Nn.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Ph.fromJS(e.timezone):void 0,Array.isArray(e.recurDayOfWeek)){this.recurDayOfWeek=[];var t,i=Object(s.a)(e.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.recurDayOfWeek.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var n,a=Object(s.a)(e.monthlyDay);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.monthlyDay.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.numberOfMonths=e.numberOfMonths,Array.isArray(e.monthlyDayWithInterval)){this.monthlyDayWithInterval=[];var l,c=Object(s.a)(e.monthlyDayWithInterval);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.monthlyDayWithInterval.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(this.numberOfMonthsInterval=e.numberOfMonthsInterval,this.dayOfMonthWithInterval=e.dayOfMonthWithInterval,this.dayOfWeekWithInterval=e.dayOfWeekWithInterval,this.jobId=e.jobId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,Array.isArray(e.recipients)){this.recipients=[];var u,h=Object(s.a)(e.recipients);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.recipients.push(Pn.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).dueToReportScheduleId=this.dueToReportScheduleId,e.minimumMonth=this.minimumMonth,e.isActive=this.isActive,e.licenseIds=this.licenseIds,e.emailTemplateId=this.emailTemplateId,e.template=this.template?this.template.toJSON():void 0,e.frequency=this.frequency,e.time=this.time,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.recurDayOfWeek)){e.recurDayOfWeek=[];var t,i=Object(s.a)(this.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.recurDayOfWeek.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var n,a=Object(s.a)(this.monthlyDay);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.monthlyDay.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.numberOfMonths=this.numberOfMonths,Array.isArray(this.monthlyDayWithInterval)){e.monthlyDayWithInterval=[];var l,c=Object(s.a)(this.monthlyDayWithInterval);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.monthlyDayWithInterval.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(e.numberOfMonthsInterval=this.numberOfMonthsInterval,e.dayOfMonthWithInterval=this.dayOfMonthWithInterval,e.dayOfWeekWithInterval=this.dayOfWeekWithInterval,e.jobId=this.jobId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,Array.isArray(this.recipients)){e.recipients=[];var u,h=Object(s.a)(this.recipients);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.recipients.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Days=1]="Days",e[e.Weeks=2]="Weeks",e[e.Months=3]="Months"}(ln||(ln={}));var bn,Sn=function(){function e(t){if(Object(l.a)(this,e),this.emailAttachmentId=void 0,this.fileId=void 0,this.name=void 0,this.type=void 0,this.extension=void 0,this.createdDate=void 0,this.fileName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailAttachmentId=e.emailAttachmentId,this.fileId=e.fileId,this.name=e.name,this.type=e.type,this.extension=e.extension,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.fileName=e.fileName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailAttachmentId=this.emailAttachmentId,e.fileId=this.fileId,e.name=this.name,e.type=this.type,e.extension=this.extension,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.fileName=this.fileName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Default=0]="Default",e[e.Confirmation=1]="Confirmation",e[e.Notification=2]="Notification",e[e.Reminder=3]="Reminder",e[e.Announcement=4]="Announcement",e[e.Report=5]="Report",e[e.Newsletter=6]="Newsletter",e[e.Invite=7]="Invite"}(bn||(bn={}));var En,In=function(){function e(t){if(Object(l.a)(this,e),this.emailCourseId=void 0,this.courseId=void 0,this.course=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailCourseId=e.emailCourseId,this.courseId=e.courseId,this.course=e.course?Mi.fromJS(e.course):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailCourseId=this.emailCourseId,e.courseId=this.courseId,e.course=this.course?this.course.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),On=function(){function e(t){if(Object(l.a)(this,e),this.emailId=void 0,this.subject=void 0,this.htmlBody=void 0,this.textBody=void 0,this.status=void 0,this.processDate=void 0,this.sentDate=void 0,this.createdDate=void 0,this.replyToUserId=void 0,this.replyToUser=void 0,this.senderId=void 0,this.sender=void 0,this.isArchived=void 0,this.emailTemplate=void 0,this.emailTypeId=void 0,this.emailAlias=void 0,this.emailType=void 0,this.emailParameter=void 0,this.licenses=void 0,this.sessions=void 0,this.courses=void 0,this.learningPlans=void 0,this.recipients=void 0,this.transactions=void 0,this.attachments=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.emailId=e.emailId,this.subject=e.subject,this.htmlBody=e.htmlBody,this.textBody=e.textBody,this.status=e.status,this.processDate=e.processDate?new Date(e.processDate.toString()):void 0,this.sentDate=e.sentDate?new Date(e.sentDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.replyToUserId=e.replyToUserId,this.replyToUser=e.replyToUser?hv.fromJS(e.replyToUser):void 0,this.senderId=e.senderId,this.sender=e.sender?hv.fromJS(e.sender):void 0,this.isArchived=e.isArchived,this.emailTemplate=e.emailTemplate?kn.fromJS(e.emailTemplate):void 0,this.emailTypeId=e.emailTypeId,this.emailAlias=e.emailAlias,this.emailType=e.emailType?Gn.fromJS(e.emailType):void 0,this.emailParameter=e.emailParameter?wn.fromJS(e.emailParameter):void 0,Array.isArray(e.licenses)){this.licenses=[];var t,i=Object(s.a)(e.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenses.push(xn.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessions)){this.sessions=[];var n,a=Object(s.a)(e.sessions);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessions.push(Tn.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.courses)){this.courses=[];var l,c=Object(s.a)(e.courses);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courses.push(In.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.learningPlans)){this.learningPlans=[];var u,h=Object(s.a)(e.learningPlans);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.learningPlans.push(Cn.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.recipients)){this.recipients=[];var p,f=Object(s.a)(e.recipients);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.recipients.push(Pn.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.transactions)){this.transactions=[];var y,g=Object(s.a)(e.transactions);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.transactions.push(Bn.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.attachments)){this.attachments=[];var S,E=Object(s.a)(e.attachments);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.attachments.push(Sn.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).emailId=this.emailId,e.subject=this.subject,e.htmlBody=this.htmlBody,e.textBody=this.textBody,e.status=this.status,e.processDate=this.processDate?this.processDate.toISOString():void 0,e.sentDate=this.sentDate?this.sentDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.replyToUserId=this.replyToUserId,e.replyToUser=this.replyToUser?this.replyToUser.toJSON():void 0,e.senderId=this.senderId,e.sender=this.sender?this.sender.toJSON():void 0,e.isArchived=this.isArchived,e.emailTemplate=this.emailTemplate?this.emailTemplate.toJSON():void 0,e.emailTypeId=this.emailTypeId,e.emailAlias=this.emailAlias,e.emailType=this.emailType?this.emailType.toJSON():void 0,e.emailParameter=this.emailParameter?this.emailParameter.toJSON():void 0,Array.isArray(this.licenses)){e.licenses=[];var t,i=Object(s.a)(this.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenses.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.sessions)){e.sessions=[];var n,a=Object(s.a)(this.sessions);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessions.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.courses)){e.courses=[];var l,c=Object(s.a)(this.courses);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courses.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.learningPlans)){e.learningPlans=[];var u,h=Object(s.a)(this.learningPlans);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.learningPlans.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.recipients)){e.recipients=[];var p,f=Object(s.a)(this.recipients);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.recipients.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.transactions)){e.transactions=[];var y,g=Object(s.a)(this.transactions);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.transactions.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.attachments)){e.attachments=[];var S,E=Object(s.a)(this.attachments);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.attachments.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cn=function(){function e(t){if(Object(l.a)(this,e),this.emailLearningPlanId=void 0,this.learningPlanId=void 0,this.learningPlan=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailLearningPlanId=e.emailLearningPlanId,this.learningPlanId=e.learningPlanId,this.learningPlan=e.learningPlan?Ms.fromJS(e.learningPlan):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailLearningPlanId=this.emailLearningPlanId,e.learningPlanId=this.learningPlanId,e.learningPlan=this.learningPlan?this.learningPlan.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xn=function(){function e(t){if(Object(l.a)(this,e),this.emailLicenseId=void 0,this.licenseId=void 0,this.license=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailLicenseId=e.emailLicenseId,this.licenseId=e.licenseId,this.license=e.license?Al.fromJS(e.license):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailLicenseId=this.emailLicenseId,e.licenseId=this.licenseId,e.license=this.license?this.license.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jn=function(){function e(t){if(Object(l.a)(this,e),this.emails=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.emails)){this.emails=[];var t,i=Object(s.a)(e.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emails.push(On.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.emails)){e.emails=[];var t,i=Object(s.a)(this.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emails.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wn=function(){function e(t){if(Object(l.a)(this,e),this.emailParameterId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.includeMaterials=void 0,this.includeLicensesHeldOnly=void 0,this.includeMatchedSessionsOnly=void 0,this.attendanceSheetDetail=void 0,this.additionalLocations=void 0,this.excludeNoCreditsEarned=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailParameterId=e.emailParameterId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.includeMaterials=e.includeMaterials,this.includeLicensesHeldOnly=e.includeLicensesHeldOnly,this.includeMatchedSessionsOnly=e.includeMatchedSessionsOnly,this.attendanceSheetDetail=e.attendanceSheetDetail,this.additionalLocations=e.additionalLocations,this.excludeNoCreditsEarned=e.excludeNoCreditsEarned)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailParameterId=this.emailParameterId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.includeMaterials=this.includeMaterials,e.includeLicensesHeldOnly=this.includeLicensesHeldOnly,e.includeMatchedSessionsOnly=this.includeMatchedSessionsOnly,e.attendanceSheetDetail=this.attendanceSheetDetail,e.additionalLocations=this.additionalLocations,e.excludeNoCreditsEarned=this.excludeNoCreditsEarned,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pn=function(){function e(t){if(Object(l.a)(this,e),this.emailRecipientId=void 0,this.name=void 0,this.email=void 0,this.type=void 0,this.userId=void 0,this.user=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailRecipientId=e.emailRecipientId,this.name=e.name,this.email=e.email,this.type=e.type,this.userId=e.userId,this.user=e.user?hv.fromJS(e.user):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailRecipientId=this.emailRecipientId,e.name=this.name,e.email=this.email,e.type=this.type,e.userId=this.userId,e.user=this.user?this.user.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tn=function(){function e(t){if(Object(l.a)(this,e),this.emailSessionId=void 0,this.sessionId=void 0,this.session=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailSessionId=e.emailSessionId,this.sessionId=e.sessionId,this.session=e.session?ou.fromJS(e.session):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailSessionId=this.emailSessionId,e.sessionId=this.sessionId,e.session=this.session?this.session.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),An=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.name=void 0,this.email=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.name=e.name,this.email=e.email)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.name=this.name,e.email=this.email,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nn=function(){function e(t){if(Object(l.a)(this,e),this.createdBy=void 0,this.createdDate=void 0,this.lastModifiedBy=void 0,this.lastModifiedDate=void 0,this.emailTemplateId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isSystem=void 0,this.isDefault=void 0,this.subject=void 0,this.body=void 0,this.emailAlias=void 0,this.emailTypeId=void 0,this.emailType=void 0,this.replyToUserId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.createdBy=e.createdBy,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedBy=e.lastModifiedBy,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.emailTemplateId=e.emailTemplateId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.subject=e.subject,this.body=e.body,this.emailAlias=e.emailAlias,this.emailTypeId=e.emailTypeId,this.emailType=e.emailType?Un.fromJS(e.emailType):void 0,this.replyToUserId=e.replyToUserId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).createdBy=this.createdBy,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedBy=this.lastModifiedBy,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.emailTemplateId=this.emailTemplateId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.subject=this.subject,e.body=this.body,e.emailAlias=this.emailAlias,e.emailTypeId=this.emailTypeId,e.emailType=this.emailType?this.emailType.toJSON():void 0,e.replyToUserId=this.replyToUserId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kn=function(){function e(t){if(Object(l.a)(this,e),this.emailTemplateId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isSystem=void 0,this.isDefault=void 0,this.subject=void 0,this.body=void 0,this.emailTypeId=void 0,this.replyToUserId=void 0,this.emailAlias=void 0,this.emailType=void 0,this.replyTo=void 0,this.isUsed=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailTemplateId=e.emailTemplateId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.subject=e.subject,this.body=e.body,this.emailTypeId=e.emailTypeId,this.replyToUserId=e.replyToUserId,this.emailAlias=e.emailAlias,this.emailType=e.emailType?Gn.fromJS(e.emailType):void 0,this.replyTo=e.replyTo?hv.fromJS(e.replyTo):void 0,this.isUsed=e.isUsed)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTemplateId=this.emailTemplateId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.subject=this.subject,e.body=this.body,e.emailTypeId=this.emailTypeId,e.replyToUserId=this.replyToUserId,e.emailAlias=this.emailAlias,e.emailType=this.emailType?this.emailType.toJSON():void 0,e.replyTo=this.replyTo?this.replyTo.toJSON():void 0,e.isUsed=this.isUsed,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dn=function(){function e(t){if(Object(l.a)(this,e),this.emailTemplates=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.emailTemplates)){this.emailTemplates=[];var t,i=Object(s.a)(e.emailTemplates);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTemplates.push(kn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.emailTemplates)){e.emailTemplates=[];var t,i=Object(s.a)(this.emailTemplates);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTemplates.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ln=function(){function e(t){if(Object(l.a)(this,e),this.emailTokenId=void 0,this.emailTypeId=void 0,this.tokenId=void 0,this.token=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailTokenId=e.emailTokenId,this.emailTypeId=e.emailTypeId,this.tokenId=e.tokenId,this.token=e.token?Nh.fromJS(e.token):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTokenId=this.emailTokenId,e.emailTypeId=this.emailTypeId,e.tokenId=this.tokenId,e.token=this.token?this.token.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jn=function(){function e(t){if(Object(l.a)(this,e),this.emailTokenId=void 0,this.emailTypeId=void 0,this.tokenId=void 0,this.token=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailTokenId=e.emailTokenId,this.emailTypeId=e.emailTypeId,this.tokenId=e.tokenId,this.token=e.token?Nh.fromJS(e.token):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTokenId=this.emailTokenId,e.emailTypeId=this.emailTypeId,e.tokenId=this.tokenId,e.token=this.token?this.token.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fn=function(){function e(t){if(Object(l.a)(this,e),this.tokens=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.tokens)){this.tokens=[];var t,i=Object(s.a)(e.tokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tokens.push(Jn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.tokens)){e.tokens=[];var t,i=Object(s.a)(this.tokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tokens.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bn=function(){function e(t){if(Object(l.a)(this,e),this.emailTransactionId=void 0,this.emailKey=void 0,this.subject=void 0,this.htmlContent=void 0,this.textContent=void 0,this.to=void 0,this.cc=void 0,this.bcc=void 0,this.type=void 0,this.createdDate=void 0,this.sentDate=void 0,this.status=void 0,this.message=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailTransactionId=e.emailTransactionId,this.emailKey=e.emailKey,this.subject=e.subject,this.htmlContent=e.htmlContent,this.textContent=e.textContent,this.to=e.to,this.cc=e.cc,this.bcc=e.bcc,this.type=e.type,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.sentDate=e.sentDate?new Date(e.sentDate.toString()):void 0,this.status=e.status,this.message=e.message)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTransactionId=this.emailTransactionId,e.emailKey=this.emailKey,e.subject=this.subject,e.htmlContent=this.htmlContent,e.textContent=this.textContent,e.to=this.to,e.cc=this.cc,e.bcc=this.bcc,e.type=this.type,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.sentDate=this.sentDate?this.sentDate.toISOString():void 0,e.status=this.status,e.message=this.message,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rn=function(){function e(t){if(Object(l.a)(this,e),this.emailTransaction=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.emailTransaction)){this.emailTransaction=[];var t,i=Object(s.a)(e.emailTransaction);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTransaction.push(Bn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.emailTransaction)){e.emailTransaction=[];var t,i=Object(s.a)(this.emailTransaction);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTransaction.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Un=function(){function e(t){if(Object(l.a)(this,e),this.emailTypeId=void 0,this.name=void 0,this.description=void 0,this.categoryId=void 0,this.defaultEmailTemplateId=void 0,this.defaultEmailTemplate=void 0,this.emailTokens=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.emailTypeId=e.emailTypeId,this.name=e.name,this.description=e.description,this.categoryId=e.categoryId,this.defaultEmailTemplateId=e.defaultEmailTemplateId,this.defaultEmailTemplate=e.defaultEmailTemplate?Nn.fromJS(e.defaultEmailTemplate):void 0,Array.isArray(e.emailTokens))){this.emailTokens=[];var t,i=Object(s.a)(e.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTokens.push(Ln.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).emailTypeId=this.emailTypeId,e.name=this.name,e.description=this.description,e.categoryId=this.categoryId,e.defaultEmailTemplateId=this.defaultEmailTemplateId,e.defaultEmailTemplate=this.defaultEmailTemplate?this.defaultEmailTemplate.toJSON():void 0,Array.isArray(this.emailTokens)){e.emailTokens=[];var t,i=Object(s.a)(this.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTokens.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gn=function(){function e(t){if(Object(l.a)(this,e),this.emailTypeId=void 0,this.name=void 0,this.code=void 0,this.description=void 0,this.categoryId=void 0,this.defaultEmailTemplateId=void 0,this.defaultEmailTemplate=void 0,this.emailTokens=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.emailTypeId=e.emailTypeId,this.name=e.name,this.code=e.code,this.description=e.description,this.categoryId=e.categoryId,this.defaultEmailTemplateId=e.defaultEmailTemplateId,this.defaultEmailTemplate=e.defaultEmailTemplate?kn.fromJS(e.defaultEmailTemplate):void 0,Array.isArray(e.emailTokens))){this.emailTokens=[];var t,i=Object(s.a)(e.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTokens.push(Jn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).emailTypeId=this.emailTypeId,e.name=this.name,e.code=this.code,e.description=this.description,e.categoryId=this.categoryId,e.defaultEmailTemplateId=this.defaultEmailTemplateId,e.defaultEmailTemplate=this.defaultEmailTemplate?this.defaultEmailTemplate.toJSON():void 0,Array.isArray(this.emailTokens)){e.emailTokens=[];var t,i=Object(s.a)(this.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTokens.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Direct_Email=1]="Direct_Email",e[e.Course_Update=2]="Course_Update",e[e.Course_Cancellation=3]="Course_Cancellation",e[e.Course_Invitation=4]="Course_Invitation",e[e.Course_Reminder=5]="Course_Reminder",e[e.Tentative_Registration_Confirmation=6]="Tentative_Registration_Confirmation",e[e.Tentative_Registration_Cancellation=7]="Tentative_Registration_Cancellation",e[e.Wait_list_Confirmation=8]="Wait_list_Confirmation",e[e.Wait_list_Registration=9]="Wait_list_Registration",e[e.Wait_list_Cancellation=10]="Wait_list_Cancellation",e[e.Registration_Confirmation=11]="Registration_Confirmation",e[e.Registration_Cancellation=12]="Registration_Cancellation",e[e.Compliance_Report=13]="Compliance_Report",e[e.Evaluation_Request=14]="Evaluation_Request",e[e.Transcript_Report=15]="Transcript_Report",e[e.Course_Announcement=16]="Course_Announcement",e[e.Certificate=17]="Certificate",e[e.Learning_Plan=18]="Learning_Plan",e[e.Compliance_Reminder=19]="Compliance_Reminder",e[e.Compliance_Due_to_Report=20]="Compliance_Due_to_Report",e[e.Compliance_Statement=21]="Compliance_Statement",e[e.Registration_Confirmation_Instructor=28]="Registration_Confirmation_Instructor",e[e.Learning_Plan_Add_Participant=29]="Learning_Plan_Add_Participant",e[e.Learning_Plan_Exclude_Participant=30]="Learning_Plan_Exclude_Participant",e[e.Learning_Plan_Include_Participant=31]="Learning_Plan_Include_Participant",e[e.Learning_Plan_Delete_Participant=32]="Learning_Plan_Delete_Participant",e[e.Learning_Plan_Reminder=33]="Learning_Plan_Reminder",e[e.Attendance_Sheet=34]="Attendance_Sheet"}(En||(En={}));var qn,Mn=function(){function e(t){if(Object(l.a)(this,e),this.emailTypes=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.emailTypes)){this.emailTypes=[];var t,i=Object(s.a)(e.emailTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTypes.push(Gn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.emailTypes)){e.emailTypes=[];var t,i=Object(s.a)(this.emailTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTypes.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zn=function(){function e(t){if(Object(l.a)(this,e),this.ethnicityId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.userCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.ethnicityId=e.ethnicityId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.userCount=e.userCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).ethnicityId=this.ethnicityId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.userCount=this.userCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wn=function(){function e(t){if(Object(l.a)(this,e),this.ethnicities=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.ethnicities)){this.ethnicities=[];var t,i=Object(s.a)(e.ethnicities);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.ethnicities.push(zn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.ethnicities)){e.ethnicities=[];var t,i=Object(s.a)(this.ethnicities);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.ethnicities.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Evaluate=1]="Evaluate",e[e.ViewEvaluation=2]="ViewEvaluation",e[e.NotApplicable=3]="NotApplicable"}(qn||(qn={}));var Vn,_n=function(){function e(t){if(Object(l.a)(this,e),this.evaluationId=void 0,this.name=void 0,this.instructions=void 0,this.isActive=void 0,this.sectionFormNumberStyleCode=void 0,this.questionFormNumberStyleCode=void 0,this.gridQuestionFormNumberStyleCode=void 0,this.isInUse=void 0,this.evaluationFormNumberExcludes=void 0,this.questions=void 0,this.sections=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.evaluationId=e.evaluationId,this.name=e.name,this.instructions=e.instructions,this.isActive=e.isActive,this.sectionFormNumberStyleCode=e.sectionFormNumberStyleCode,this.questionFormNumberStyleCode=e.questionFormNumberStyleCode,this.gridQuestionFormNumberStyleCode=e.gridQuestionFormNumberStyleCode,this.isInUse=e.isInUse,Array.isArray(e.evaluationFormNumberExcludes)){this.evaluationFormNumberExcludes=[];var t,i=Object(s.a)(e.evaluationFormNumberExcludes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluationFormNumberExcludes.push(Yn.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.questions)){this.questions=[];var n,a=Object(s.a)(e.questions);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.questions.push(Hn.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.sections)){this.sections=[];var l,c=Object(s.a)(e.sections);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sections.push(ea.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).evaluationId=this.evaluationId,e.name=this.name,e.instructions=this.instructions,e.isActive=this.isActive,e.sectionFormNumberStyleCode=this.sectionFormNumberStyleCode,e.questionFormNumberStyleCode=this.questionFormNumberStyleCode,e.gridQuestionFormNumberStyleCode=this.gridQuestionFormNumberStyleCode,e.isInUse=this.isInUse,Array.isArray(this.evaluationFormNumberExcludes)){e.evaluationFormNumberExcludes=[];var t,i=Object(s.a)(this.evaluationFormNumberExcludes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluationFormNumberExcludes.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.questions)){e.questions=[];var n,a=Object(s.a)(this.questions);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.questions.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.sections)){e.sections=[];var l,c=Object(s.a)(this.sections);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sections.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yn=function(){function e(t){if(Object(l.a)(this,e),this.evaluationId=void 0,this.formNumberExcludeCode=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.evaluationId=e.evaluationId,this.formNumberExcludeCode=e.formNumberExcludeCode)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).evaluationId=this.evaluationId,e.formNumberExcludeCode=this.formNumberExcludeCode,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$n=function(){function e(t){if(Object(l.a)(this,e),this.evaluations=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.evaluations)){this.evaluations=[];var t,i=Object(s.a)(e.evaluations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluations.push(_n.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.evaluations)){e.evaluations=[];var t,i=Object(s.a)(this.evaluations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluations.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hn=function(){function e(t){if(Object(l.a)(this,e),this.questionId=void 0,this.sectionId=void 0,this.questionTypeCode=void 0,this.questionTypeName=void 0,this.questionTypeSecondaryName=void 0,this.name=void 0,this.text=void 0,this.sequence=void 0,this.required=void 0,this.instructor=void 0,this.enableComments=void 0,this.requiredComments=void 0,this.commentTitle=void 0,this.content=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.questionId=e.questionId,this.sectionId=e.sectionId,this.questionTypeCode=e.questionTypeCode,this.questionTypeName=e.questionTypeName,this.questionTypeSecondaryName=e.questionTypeSecondaryName,this.name=e.name,this.text=e.text,this.sequence=e.sequence,this.required=e.required,this.instructor=e.instructor,this.enableComments=e.enableComments,this.requiredComments=e.requiredComments,this.commentTitle=e.commentTitle,this.content=e.content)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).questionId=this.questionId,e.sectionId=this.sectionId,e.questionTypeCode=this.questionTypeCode,e.questionTypeName=this.questionTypeName,e.questionTypeSecondaryName=this.questionTypeSecondaryName,e.name=this.name,e.text=this.text,e.sequence=this.sequence,e.required=this.required,e.instructor=this.instructor,e.enableComments=this.enableComments,e.requiredComments=this.requiredComments,e.commentTitle=this.commentTitle,e.content=this.content,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kn=function(){function e(t){if(Object(l.a)(this,e),this.questionTypeCode=void 0,this.name=void 0,this.secondaryName=void 0,this.icon=void 0,this.description=void 0,this.example=void 0,this.isActive=void 0,this.sequence=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.questionTypeCode=e.questionTypeCode,this.name=e.name,this.secondaryName=e.secondaryName,this.icon=e.icon,this.description=e.description,this.example=e.example,this.isActive=e.isActive,this.sequence=e.sequence)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).questionTypeCode=this.questionTypeCode,e.name=this.name,e.secondaryName=this.secondaryName,e.icon=this.icon,e.description=this.description,e.example=this.example,e.isActive=this.isActive,e.sequence=this.sequence,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qn=function(){function e(t){if(Object(l.a)(this,e),this.evaluationQuestionTypes=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.evaluationQuestionTypes)){this.evaluationQuestionTypes=[];var t,i=Object(s.a)(e.evaluationQuestionTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluationQuestionTypes.push(Kn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.evaluationQuestionTypes)){e.evaluationQuestionTypes=[];var t,i=Object(s.a)(this.evaluationQuestionTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluationQuestionTypes.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.PrintSeparately=1]="PrintSeparately",e[e.PrintCombined=2]="PrintCombined"}(Vn||(Vn={}));var Zn,Xn,ea=function(){function e(t){if(Object(l.a)(this,e),this.sectionId=void 0,this.evaluationId=void 0,this.name=void 0,this.text=void 0,this.sequence=void 0,this.questions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sectionId=e.sectionId,this.evaluationId=e.evaluationId,this.name=e.name,this.text=e.text,this.sequence=e.sequence,Array.isArray(e.questions))){this.questions=[];var t,i=Object(s.a)(e.questions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.questions.push(Hn.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sectionId=this.sectionId,e.evaluationId=this.evaluationId,e.name=this.name,e.text=this.text,e.sequence=this.sequence,Array.isArray(this.questions)){e.questions=[];var t,i=Object(s.a)(this.questions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.questions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ta=function(){function e(t){if(Object(l.a)(this,e),this.excuseId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.attendanceExcuseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.excuseId=e.excuseId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.attendanceExcuseCount=e.attendanceExcuseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).excuseId=this.excuseId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.attendanceExcuseCount=this.attendanceExcuseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ia=function(){function e(t){if(Object(l.a)(this,e),this.excuses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.excuses)){this.excuses=[];var t,i=Object(s.a)(e.excuses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.excuses.push(ta.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.excuses)){e.excuses=[];var t,i=Object(s.a)(this.excuses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.excuses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ra=function(){function e(t){if(Object(l.a)(this,e),this.userFavoriteSessionId=void 0,this.userId=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userFavoriteSessionId=e.userFavoriteSessionId,this.userId=e.userId,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userFavoriteSessionId=this.userFavoriteSessionId,e.userId=this.userId,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),na=function(){function e(t){if(Object(l.a)(this,e),this.firmAnnouncementId=void 0,this.announcement=void 0,this.isAdmin=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.firmAnnouncementId=e.firmAnnouncementId,this.announcement=e.announcement,this.isAdmin=e.isAdmin)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmAnnouncementId=this.firmAnnouncementId,e.announcement=this.announcement,e.isAdmin=this.isAdmin,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),aa=function(){function e(t){if(Object(l.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?wh.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),oa=function(){function e(t){if(Object(l.a)(this,e),this.firmId=void 0,this.name=void 0,this.firmGroupId=void 0,this.locationId=void 0,this.address=void 0,this.telephone=void 0,this.fax=void 0,this.city=void 0,this.stateId=void 0,this.countryId=void 0,this.zipCode=void 0,this.renewalDate=void 0,this.language=void 0,this.dateFormat=void 0,this.timezone=void 0,this.logoUrl=void 0,this.thumbnailUrl=void 0,this.isLoginScreenEnabled=void 0,this.hasIdentityProviderEnabled=void 0,this.signInLabels=void 0,this.firmSettings=void 0,this.firmApplications=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.firmId=e.firmId,this.name=e.name,this.firmGroupId=e.firmGroupId,this.locationId=e.locationId,this.address=e.address,this.telephone=e.telephone,this.fax=e.fax,this.city=e.city,this.stateId=e.stateId,this.countryId=e.countryId,this.zipCode=e.zipCode,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.language=e.language,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.logoUrl=e.logoUrl,this.thumbnailUrl=e.thumbnailUrl,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.hasIdentityProviderEnabled=e.hasIdentityProviderEnabled,this.signInLabels=e.signInLabels,Array.isArray(e.firmSettings)){this.firmSettings=[];var t,i=Object(s.a)(e.firmSettings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.firmSettings.push(va.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.firmApplications)){this.firmApplications=[];var n,a=Object(s.a)(e.firmApplications);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.firmApplications.push(aa.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firmId=this.firmId,e.name=this.name,e.firmGroupId=this.firmGroupId,e.locationId=this.locationId,e.address=this.address,e.telephone=this.telephone,e.fax=this.fax,e.city=this.city,e.stateId=this.stateId,e.countryId=this.countryId,e.zipCode=this.zipCode,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.language=this.language,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.logoUrl=this.logoUrl,e.thumbnailUrl=this.thumbnailUrl,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.hasIdentityProviderEnabled=this.hasIdentityProviderEnabled,e.signInLabels=this.signInLabels,Array.isArray(this.firmSettings)){e.firmSettings=[];var t,i=Object(s.a)(this.firmSettings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.firmSettings.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.firmApplications)){e.firmApplications=[];var n,a=Object(s.a)(this.firmApplications);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.firmApplications.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sa=function(){function e(t){if(Object(l.a)(this,e),this.firmLicenseId=void 0,this.licenseId=void 0,this.certificateId=void 0,this.certificate=void 0,this.reportingCycle=void 0,this.shouldShowAllPeriods=void 0,this.isAccreditedProvider=void 0,this.shouldAllowSearch=void 0,this.isEnabled=void 0,this.isFavorite=void 0,this.providerNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.firmLicenseId=e.firmLicenseId,this.licenseId=e.licenseId,this.certificateId=e.certificateId,this.certificate=e.certificate,this.reportingCycle=e.reportingCycle,this.shouldShowAllPeriods=e.shouldShowAllPeriods,this.isAccreditedProvider=e.isAccreditedProvider,this.shouldAllowSearch=e.shouldAllowSearch,this.isEnabled=e.isEnabled,this.isFavorite=e.isFavorite,this.providerNumber=e.providerNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmLicenseId=this.firmLicenseId,e.licenseId=this.licenseId,e.certificateId=this.certificateId,e.certificate=this.certificate,e.reportingCycle=this.reportingCycle,e.shouldShowAllPeriods=this.shouldShowAllPeriods,e.isAccreditedProvider=this.isAccreditedProvider,e.shouldAllowSearch=this.shouldAllowSearch,e.isEnabled=this.isEnabled,e.isFavorite=this.isFavorite,e.providerNumber=this.providerNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),la=function(){function e(t){if(Object(l.a)(this,e),this.locationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ca=function(){function e(t){if(Object(l.a)(this,e),this.headerText=void 0,this.logoUrl=void 0,this.isLoginScreenEnabled=void 0,this.signInLabels=void 0,this.industryId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.headerText=e.headerText,this.logoUrl=e.logoUrl,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.signInLabels=e.signInLabels,this.industryId=e.industryId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).headerText=this.headerText,e.logoUrl=this.logoUrl,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.signInLabels=this.signInLabels,e.industryId=this.industryId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),da=function(){function e(t){if(Object(l.a)(this,e),this.fileId=void 0,this.logoUrl=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.fileId=e.fileId,this.logoUrl=e.logoUrl,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).fileId=this.fileId,e.logoUrl=this.logoUrl,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ua=function(){function e(t){if(Object(l.a)(this,e),this.firmNotificationId=void 0,this.statement=void 0,this.dueToReport=void 0,this.reminder=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.firmNotificationId=e.firmNotificationId,this.statement=e.statement?mh.fromJS(e.statement):void 0,this.dueToReport=e.dueToReport?yn.fromJS(e.dueToReport):void 0,this.reminder=e.reminder?qc.fromJS(e.reminder):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmNotificationId=this.firmNotificationId,e.statement=this.statement?this.statement.toJSON():void 0,e.dueToReport=this.dueToReport?this.dueToReport.toJSON():void 0,e.reminder=this.reminder?this.reminder.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ha=function(){function e(t){if(Object(l.a)(this,e),this.firmNotificationId=void 0,this.statement=void 0,this.dueToReport=void 0,this.reminder=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.firmNotificationId=e.firmNotificationId,this.statement=e.statement?yh.fromJS(e.statement):void 0,this.dueToReport=e.dueToReport?gn.fromJS(e.dueToReport):void 0,this.reminder=e.reminder?Mc.fromJS(e.reminder):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmNotificationId=this.firmNotificationId,e.statement=this.statement?this.statement.toJSON():void 0,e.dueToReport=this.dueToReport?this.dueToReport.toJSON():void 0,e.reminder=this.reminder?this.reminder.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),va=function(){function e(t){if(Object(l.a)(this,e),this.key=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.key=e.key,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).key=this.key,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pa=function(){function e(t){if(Object(l.a)(this,e),this.firmName=void 0,this.firmId=void 0,this.renewalDate=void 0,this.tenantGroupId=void 0,this.allUsers=void 0,this.allLearningPackages=void 0,this.activeLearningPackages=void 0,this.archivedLearningPackages=void 0,this.allAudios=void 0,this.activeAudios=void 0,this.archivedAudios=void 0,this.allVideos=void 0,this.activeVideos=void 0,this.archivedVideos=void 0,this.courses=void 0,this.activeEmployees=void 0,this.inactiveEmployees=void 0,this.activeEmployeesWithLicenses=void 0,this.inactiveEmployeesWithLicenses=void 0,this.activeEmployeesWithoutLicenses=void 0,this.inactiveStaffWithoutLicenses=void 0,this.activeClients=void 0,this.inactiveClients=void 0,this.activeClientsWithLicenses=void 0,this.inactiveClientsWithLicenses=void 0,this.activeClientsWithoutLicenses=void 0,this.inactiveClientsWithoutLicenses=void 0,this.activeAdministrators=void 0,this.inactiveAdministrators=void 0,this.activeAdministratorsWithLicenses=void 0,this.inactiveAdministratorsWithLicenses=void 0,this.activeAdministratorsWithoutLicenses=void 0,this.inactiveAdministratorsWithoutLicenses=void 0,this.activeEmployeesWithMandatoryLicenses=void 0,this.inactiveEmployeesWithMandatoryLicenses=void 0,this.activeClientsWithMandatoryLicenses=void 0,this.inactiveClientsWithMandatoryLicenses=void 0,this.activeAdministratorsWithMandatoryLicenses=void 0,this.inactiveAdministratorsWithMandatoryLicenses=void 0,this.activeEmployeesWithNonMandatoryLicenses=void 0,this.inactiveEmployeesWithNonMandatoryLicenses=void 0,this.activeStaffWithNonMandatoryLicenses=void 0,this.inactiveStaffWithNonMandatoryLicenses=void 0,this.activeClientsWithNonMandatoryLicenses=void 0,this.inactiveClientsWithNonMandatoryLicenses=void 0,this.activeAdministratorsWithNonMandatoryLicenses=void 0,this.inactiveAdministratorsWithNonMandatoryLicenses=void 0,this.activeEmployeesWithVideoAudioActivity=void 0,this.activeClientsWithVideoAudioActivity=void 0,this.activeAdministratorsWithVideoAudioActivity=void 0,this.activeEmployeesWithLearningPackageActivity=void 0,this.activeClientsWithLearningPackageActivity=void 0,this.activeAdministratorsWithLearningPackageActivity=void 0,this.users=void 0,this.files=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.firmName=e.firmName,this.firmId=e.firmId,this.renewalDate=e.renewalDate,this.tenantGroupId=e.tenantGroupId,this.allUsers=e.allUsers,this.allLearningPackages=e.allLearningPackages,this.activeLearningPackages=e.activeLearningPackages,this.archivedLearningPackages=e.archivedLearningPackages,this.allAudios=e.allAudios,this.activeAudios=e.activeAudios,this.archivedAudios=e.archivedAudios,this.allVideos=e.allVideos,this.activeVideos=e.activeVideos,this.archivedVideos=e.archivedVideos,this.courses=e.courses,this.activeEmployees=e.activeEmployees,this.inactiveEmployees=e.inactiveEmployees,this.activeEmployeesWithLicenses=e.activeEmployeesWithLicenses,this.inactiveEmployeesWithLicenses=e.inactiveEmployeesWithLicenses,this.activeEmployeesWithoutLicenses=e.activeEmployeesWithoutLicenses,this.inactiveStaffWithoutLicenses=e.inactiveStaffWithoutLicenses,this.activeClients=e.activeClients,this.inactiveClients=e.inactiveClients,this.activeClientsWithLicenses=e.activeClientsWithLicenses,this.inactiveClientsWithLicenses=e.inactiveClientsWithLicenses,this.activeClientsWithoutLicenses=e.activeClientsWithoutLicenses,this.inactiveClientsWithoutLicenses=e.inactiveClientsWithoutLicenses,this.activeAdministrators=e.activeAdministrators,this.inactiveAdministrators=e.inactiveAdministrators,this.activeAdministratorsWithLicenses=e.activeAdministratorsWithLicenses,this.inactiveAdministratorsWithLicenses=e.inactiveAdministratorsWithLicenses,this.activeAdministratorsWithoutLicenses=e.activeAdministratorsWithoutLicenses,this.inactiveAdministratorsWithoutLicenses=e.inactiveAdministratorsWithoutLicenses,this.activeEmployeesWithMandatoryLicenses=e.activeEmployeesWithMandatoryLicenses,this.inactiveEmployeesWithMandatoryLicenses=e.inactiveEmployeesWithMandatoryLicenses,this.activeClientsWithMandatoryLicenses=e.activeClientsWithMandatoryLicenses,this.inactiveClientsWithMandatoryLicenses=e.inactiveClientsWithMandatoryLicenses,this.activeAdministratorsWithMandatoryLicenses=e.activeAdministratorsWithMandatoryLicenses,this.inactiveAdministratorsWithMandatoryLicenses=e.inactiveAdministratorsWithMandatoryLicenses,this.activeEmployeesWithNonMandatoryLicenses=e.activeEmployeesWithNonMandatoryLicenses,this.inactiveEmployeesWithNonMandatoryLicenses=e.inactiveEmployeesWithNonMandatoryLicenses,this.activeStaffWithNonMandatoryLicenses=e.activeStaffWithNonMandatoryLicenses,this.inactiveStaffWithNonMandatoryLicenses=e.inactiveStaffWithNonMandatoryLicenses,this.activeClientsWithNonMandatoryLicenses=e.activeClientsWithNonMandatoryLicenses,this.inactiveClientsWithNonMandatoryLicenses=e.inactiveClientsWithNonMandatoryLicenses,this.activeAdministratorsWithNonMandatoryLicenses=e.activeAdministratorsWithNonMandatoryLicenses,this.inactiveAdministratorsWithNonMandatoryLicenses=e.inactiveAdministratorsWithNonMandatoryLicenses,this.activeEmployeesWithVideoAudioActivity=e.activeEmployeesWithVideoAudioActivity,this.activeClientsWithVideoAudioActivity=e.activeClientsWithVideoAudioActivity,this.activeAdministratorsWithVideoAudioActivity=e.activeAdministratorsWithVideoAudioActivity,this.activeEmployeesWithLearningPackageActivity=e.activeEmployeesWithLearningPackageActivity,this.activeClientsWithLearningPackageActivity=e.activeClientsWithLearningPackageActivity,this.activeAdministratorsWithLearningPackageActivity=e.activeAdministratorsWithLearningPackageActivity,Array.isArray(e.users)){this.users=[];var t,i=Object(s.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(hv.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.files)){this.files=[];var n,a=Object(s.a)(e.files);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.files.push(gl.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firmName=this.firmName,e.firmId=this.firmId,e.renewalDate=this.renewalDate,e.tenantGroupId=this.tenantGroupId,e.allUsers=this.allUsers,e.allLearningPackages=this.allLearningPackages,e.activeLearningPackages=this.activeLearningPackages,e.archivedLearningPackages=this.archivedLearningPackages,e.allAudios=this.allAudios,e.activeAudios=this.activeAudios,e.archivedAudios=this.archivedAudios,e.allVideos=this.allVideos,e.activeVideos=this.activeVideos,e.archivedVideos=this.archivedVideos,e.courses=this.courses,e.activeEmployees=this.activeEmployees,e.inactiveEmployees=this.inactiveEmployees,e.activeEmployeesWithLicenses=this.activeEmployeesWithLicenses,e.inactiveEmployeesWithLicenses=this.inactiveEmployeesWithLicenses,e.activeEmployeesWithoutLicenses=this.activeEmployeesWithoutLicenses,e.inactiveStaffWithoutLicenses=this.inactiveStaffWithoutLicenses,e.activeClients=this.activeClients,e.inactiveClients=this.inactiveClients,e.activeClientsWithLicenses=this.activeClientsWithLicenses,e.inactiveClientsWithLicenses=this.inactiveClientsWithLicenses,e.activeClientsWithoutLicenses=this.activeClientsWithoutLicenses,e.inactiveClientsWithoutLicenses=this.inactiveClientsWithoutLicenses,e.activeAdministrators=this.activeAdministrators,e.inactiveAdministrators=this.inactiveAdministrators,e.activeAdministratorsWithLicenses=this.activeAdministratorsWithLicenses,e.inactiveAdministratorsWithLicenses=this.inactiveAdministratorsWithLicenses,e.activeAdministratorsWithoutLicenses=this.activeAdministratorsWithoutLicenses,e.inactiveAdministratorsWithoutLicenses=this.inactiveAdministratorsWithoutLicenses,e.activeEmployeesWithMandatoryLicenses=this.activeEmployeesWithMandatoryLicenses,e.inactiveEmployeesWithMandatoryLicenses=this.inactiveEmployeesWithMandatoryLicenses,e.activeClientsWithMandatoryLicenses=this.activeClientsWithMandatoryLicenses,e.inactiveClientsWithMandatoryLicenses=this.inactiveClientsWithMandatoryLicenses,e.activeAdministratorsWithMandatoryLicenses=this.activeAdministratorsWithMandatoryLicenses,e.inactiveAdministratorsWithMandatoryLicenses=this.inactiveAdministratorsWithMandatoryLicenses,e.activeEmployeesWithNonMandatoryLicenses=this.activeEmployeesWithNonMandatoryLicenses,e.inactiveEmployeesWithNonMandatoryLicenses=this.inactiveEmployeesWithNonMandatoryLicenses,e.activeStaffWithNonMandatoryLicenses=this.activeStaffWithNonMandatoryLicenses,e.inactiveStaffWithNonMandatoryLicenses=this.inactiveStaffWithNonMandatoryLicenses,e.activeClientsWithNonMandatoryLicenses=this.activeClientsWithNonMandatoryLicenses,e.inactiveClientsWithNonMandatoryLicenses=this.inactiveClientsWithNonMandatoryLicenses,e.activeAdministratorsWithNonMandatoryLicenses=this.activeAdministratorsWithNonMandatoryLicenses,e.inactiveAdministratorsWithNonMandatoryLicenses=this.inactiveAdministratorsWithNonMandatoryLicenses,e.activeEmployeesWithVideoAudioActivity=this.activeEmployeesWithVideoAudioActivity,e.activeClientsWithVideoAudioActivity=this.activeClientsWithVideoAudioActivity,e.activeAdministratorsWithVideoAudioActivity=this.activeAdministratorsWithVideoAudioActivity,e.activeEmployeesWithLearningPackageActivity=this.activeEmployeesWithLearningPackageActivity,e.activeClientsWithLearningPackageActivity=this.activeClientsWithLearningPackageActivity,e.activeAdministratorsWithLearningPackageActivity=this.activeAdministratorsWithLearningPackageActivity,Array.isArray(this.users)){e.users=[];var t,i=Object(s.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.files)){e.files=[];var n,a=Object(s.a)(this.files);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.files.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fa=function(){function e(t){if(Object(l.a)(this,e),this.formNumberExcludeCode=void 0,this.name=void 0,this.isActive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.formNumberExcludeCode=e.formNumberExcludeCode,this.name=e.name,this.isActive=e.isActive)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).formNumberExcludeCode=this.formNumberExcludeCode,e.name=this.name,e.isActive=this.isActive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ma=function(){function e(t){if(Object(l.a)(this,e),this.formNumberExcludes=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.formNumberExcludes)){this.formNumberExcludes=[];var t,i=Object(s.a)(e.formNumberExcludes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.formNumberExcludes.push(fa.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.formNumberExcludes)){e.formNumberExcludes=[];var t,i=Object(s.a)(this.formNumberExcludes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.formNumberExcludes.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ya=function(){function e(t){if(Object(l.a)(this,e),this.formNumberStyleCode=void 0,this.name=void 0,this.isActive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.formNumberStyleCode=e.formNumberStyleCode,this.name=e.name,this.isActive=e.isActive)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).formNumberStyleCode=this.formNumberStyleCode,e.name=this.name,e.isActive=this.isActive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ga=function(){function e(t){if(Object(l.a)(this,e),this.formNumberStyles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.formNumberStyles)){this.formNumberStyles=[];var t,i=Object(s.a)(e.formNumberStyles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.formNumberStyles.push(ya.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.formNumberStyles)){e.formNumberStyles=[];var t,i=Object(s.a)(this.formNumberStyles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.formNumberStyles.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ba=function(){function e(t){if(Object(l.a)(this,e),this.genderId=void 0,this.name=void 0,this.code=void 0,this.isActive=void 0,this.userCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.genderId=e.genderId,this.name=e.name,this.code=e.code,this.isActive=e.isActive,this.userCount=e.userCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).genderId=this.genderId,e.name=this.name,e.code=this.code,e.isActive=this.isActive,e.userCount=this.userCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sa=function(){function e(t){if(Object(l.a)(this,e),this.genders=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.genders)){this.genders=[];var t,i=Object(s.a)(e.genders);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.genders.push(ba.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.genders)){e.genders=[];var t,i=Object(s.a)(this.genders);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.genders.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ea=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ia=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.createdBy=e.createdBy}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ca=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.createdBy=e.createdBy}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ja=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pa=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentRecordId=void 0,this.competencyFrameworkId=void 0,this.licenseId=void 0,this.periodStartDate=void 0,this.periodEndDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.developmentRecordId=e.developmentRecordId,this.competencyFrameworkId=e.competencyFrameworkId,this.licenseId=e.licenseId,this.periodStartDate=e.periodStartDate?new Date(e.periodStartDate.toString()):void 0,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.developmentRecordId=this.developmentRecordId,e.competencyFrameworkId=this.competencyFrameworkId,e.licenseId=this.licenseId,e.periodStartDate=this.periodStartDate?this.periodStartDate.toISOString():void 0,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ta=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.competencyFrameworkId=void 0,this.periodStartDate=void 0,this.periodEndDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.competencyFrameworkId=e.competencyFrameworkId,this.periodStartDate=e.periodStartDate?new Date(e.periodStartDate.toString()):void 0,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.competencyFrameworkId=this.competencyFrameworkId,e.periodStartDate=this.periodStartDate?this.periodStartDate.toISOString():void 0,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Aa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.learningPlanId=void 0,this.participantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.learningPlanId=e.learningPlanId,this.participantId=e.participantId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.learningPlanId=this.learningPlanId,e.participantId=this.participantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Na=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ka=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Da=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.startDate=void 0,this.endDate=void 0,this.portalCategory=void 0,this.userId=void 0,this.isFavorite=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(y){h.e(y)}finally{h.f()}}if(this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,Array.isArray(e.portalCategory)){this.portalCategory=[];var p,f=Object(s.a)(e.portalCategory);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.portalCategory.push(m)}}catch(y){f.e(y)}finally{f.f()}}this.userId=e.userId,this.isFavorite=e.isFavorite}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(y){h.e(y)}finally{h.f()}}if(e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,Array.isArray(this.portalCategory)){e.portalCategory=[];var p,f=Object(s.a)(this.portalCategory);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.portalCategory.push(m)}}catch(y){f.e(y)}finally{f.f()}}return e.userId=this.userId,e.isFavorite=this.isFavorite,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),La=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ja=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ba=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.sessionId=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.sessionId=e.sessionId,this.userId=e.userId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.sessionId=this.sessionId,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ra=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.sessionId=void 0,this.scheduleId=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.sortBy=void 0,this.hideUserLicenseValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,Array.isArray(e.exemptedIds)){this.exemptedIds=[];var t,i=Object(s.a)(e.exemptedIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.exemptedIds.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var n,a=Object(s.a)(e.includeIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.includeIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,Array.isArray(e.filterBy)){this.filterBy=[];var l,c=Object(s.a)(e.filterBy);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.filterBy.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var u,h=Object(s.a)(e.searchCriteria);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.searchCriteria.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.sortBy=e.sortBy,this.hideUserLicenseValues=e.hideUserLicenseValues}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,Array.isArray(this.exemptedIds)){e.exemptedIds=[];var t,i=Object(s.a)(this.exemptedIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.exemptedIds.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var n,a=Object(s.a)(this.includeIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.includeIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(e.sessionId=this.sessionId,e.scheduleId=this.scheduleId,Array.isArray(this.filterBy)){e.filterBy=[];var l,c=Object(s.a)(this.filterBy);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.filterBy.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var u,h=Object(s.a)(this.searchCriteria);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.searchCriteria.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.sortBy=this.sortBy,e.hideUserLicenseValues=this.hideUserLicenseValues,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ua=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ga=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(s.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var n,a=Object(s.a)(e.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var l,c=Object(s.a)(e.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(s.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var n,a=Object(s.a)(this.exemptedIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.exemptedIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var l,c=Object(s.a)(this.includeIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.includeIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,this.subRoleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId,this.subRoleId=e.subRoleId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e.subRoleId=this.subRoleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ma=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userRoleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userRoleId=e.userRoleId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userRoleId=this.userRoleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),za=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.isOnDemand=void 0,this.dateFrom=void 0,this.hidePastSessions=void 0,this.pageOffset=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.isOnDemand=e.isOnDemand,this.dateFrom=e.dateFrom?new Date(e.dateFrom.toString()):void 0,this.hidePastSessions=e.hidePastSessions,this.pageOffset=e.pageOffset)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.isOnDemand=this.isOnDemand,e.dateFrom=this.dateFrom?this.dateFrom.toISOString():void 0,e.hidePastSessions=this.hidePastSessions,e.pageOffset=this.pageOffset,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wa=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Va=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.includePriorPeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.includePriorPeriods=e.includePriorPeriods)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.includePriorPeriods=this.includePriorPeriods,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_a=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ya=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$a=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.filterBy=void 0,this.displayClient=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,Array.isArray(e.exemptedIds)){this.exemptedIds=[];var t,i=Object(s.a)(e.exemptedIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.exemptedIds.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var n,a=Object(s.a)(e.includeIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.includeIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var l,c=Object(s.a)(e.searchCriteria);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.searchCriteria.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var u,h=Object(s.a)(e.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.displayClient=e.displayClient}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,Array.isArray(this.exemptedIds)){e.exemptedIds=[];var t,i=Object(s.a)(this.exemptedIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.exemptedIds.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var n,a=Object(s.a)(this.includeIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.includeIds.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var l,c=Object(s.a)(this.searchCriteria);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.searchCriteria.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var u,h=Object(s.a)(this.filterBy);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.filterBy.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.displayClient=this.displayClient,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ha=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ka=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qa=function(){function e(t){if(Object(l.a)(this,e),this.licenseIds=void 0,this.sessionDetails=void 0,this.sessionUsers=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenseIds)){this.licenseIds=[];var t,i=Object(s.a)(e.licenseIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseIds.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionDetails)){this.sessionDetails=[];var n,a=Object(s.a)(e.sessionDetails);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionDetails.push(ih.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.sessionUsers)){this.sessionUsers=[];var l,c=Object(s.a)(e.sessionUsers);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionUsers.push(rh.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseIds)){e.licenseIds=[];var t,i=Object(s.a)(this.licenseIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseIds.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.sessionDetails)){e.sessionDetails=[];var n,a=Object(s.a)(this.sessionDetails);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionDetails.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.sessionUsers)){e.sessionUsers=[];var l,c=Object(s.a)(this.sessionUsers);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionUsers.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Za=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.portalCategory=void 0,this.userId=void 0,this.favoritesOnly=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.portalCategory)){this.portalCategory=[];var p,f=Object(s.a)(e.portalCategory);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.portalCategory.push(m)}}catch(y){f.e(y)}finally{f.f()}}this.userId=e.userId,this.favoritesOnly=e.favoritesOnly}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.portalCategory)){e.portalCategory=[];var p,f=Object(s.a)(this.portalCategory);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.portalCategory.push(m)}}catch(y){f.e(y)}finally{f.f()}}return e.userId=this.userId,e.favoritesOnly=this.favoritesOnly,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xa=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.sessionId=void 0,this.sessionIds=void 0,this.userId=void 0,this.scheduleId=void 0,this.portalCategory=void 0,this.favoritesOnly=void 0,this.hidePastSessions=void 0,this.publishedSessionsOnly=void 0,this.licenseId=void 0,this.licenseCreditsList=void 0,this.locationFilterIds=void 0,this.formatFilterIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.sessionId=e.sessionId,Array.isArray(e.sessionIds)){this.sessionIds=[];var t,i=Object(s.a)(e.sessionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionIds.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(this.userId=e.userId,this.scheduleId=e.scheduleId,Array.isArray(e.portalCategory)){this.portalCategory=[];var n,a=Object(s.a)(e.portalCategory);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.portalCategory.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(this.favoritesOnly=e.favoritesOnly,this.hidePastSessions=e.hidePastSessions,this.publishedSessionsOnly=e.publishedSessionsOnly,this.licenseId=e.licenseId,this.licenseCreditsList=e.licenseCreditsList,Array.isArray(e.locationFilterIds)){this.locationFilterIds=[];var l,c=Object(s.a)(e.locationFilterIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.locationFilterIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.formatFilterIds)){this.formatFilterIds=[];var u,h=Object(s.a)(e.formatFilterIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.formatFilterIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.sessionId=this.sessionId,Array.isArray(this.sessionIds)){e.sessionIds=[];var t,i=Object(s.a)(this.sessionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionIds.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(e.userId=this.userId,e.scheduleId=this.scheduleId,Array.isArray(this.portalCategory)){e.portalCategory=[];var n,a=Object(s.a)(this.portalCategory);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.portalCategory.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(e.favoritesOnly=this.favoritesOnly,e.hidePastSessions=this.hidePastSessions,e.publishedSessionsOnly=this.publishedSessionsOnly,e.licenseId=this.licenseId,e.licenseCreditsList=this.licenseCreditsList,Array.isArray(this.locationFilterIds)){e.locationFilterIds=[];var l,c=Object(s.a)(this.locationFilterIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.locationFilterIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.formatFilterIds)){e.formatFilterIds=[];var u,h=Object(s.a)(this.formatFilterIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.formatFilterIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),eo=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentOverallReflectionCompetencyFrameworkId=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.developmentOverallReflectionCompetencyFrameworkId=e.developmentOverallReflectionCompetencyFrameworkId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.developmentOverallReflectionCompetencyFrameworkId=this.developmentOverallReflectionCompetencyFrameworkId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),to=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,this.licenseId=void 0,this.competencyFrameworkId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.isIncludedOnly=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId,this.licenseId=e.licenseId,this.competencyFrameworkId=e.competencyFrameworkId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.isIncludedOnly=e.isIncludedOnly}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e.licenseId=this.licenseId,e.competencyFrameworkId=this.competencyFrameworkId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.isIncludedOnly=this.isIncludedOnly,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),io=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseIds=void 0,this.competencyFrameworkId=void 0,this.periodStartDate=void 0,this.periodEndDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,Array.isArray(e.licenseIds)){this.licenseIds=[];var t,i=Object(s.a)(e.licenseIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.competencyFrameworkId=e.competencyFrameworkId,this.periodStartDate=e.periodStartDate?new Date(e.periodStartDate.toString()):void 0,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,Array.isArray(this.licenseIds)){e.licenseIds=[];var t,i=Object(s.a)(this.licenseIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.competencyFrameworkId=this.competencyFrameworkId,e.periodStartDate=this.periodStartDate?this.periodStartDate.toISOString():void 0,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ro=function(){function e(t){if(Object(l.a)(this,e),this.guid=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.guid=e.guid)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).guid=this.guid,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),no=function(){function e(t){if(Object(l.a)(this,e),this.evaluationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.evaluationId)){this.evaluationId=[];var t,i=Object(s.a)(e.evaluationId);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluationId.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.evaluationId)){e.evaluationId=[];var t,i=Object(s.a)(this.evaluationId);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluationId.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ao=function(){function e(t){if(Object(l.a)(this,e),this.guid=void 0,this.params=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.guid=e.guid,this.params=e.params)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).guid=this.guid,e.params=this.params,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),oo=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.participantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.participantId=e.participantId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.participantId=this.participantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),so=function(){function e(t){if(Object(l.a)(this,e),this.guid=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.guid=e.guid,this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).guid=this.guid,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lo=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.learningPlanId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.learningPlanId=e.learningPlanId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.learningPlanId=this.learningPlanId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),co=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseCreditsList=void 0,this.learningPlanId=void 0,this.locationFilterIds=void 0,this.formatFilterIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseCreditsList=e.licenseCreditsList,this.learningPlanId=e.learningPlanId,Array.isArray(e.locationFilterIds)){this.locationFilterIds=[];var t,i=Object(s.a)(e.locationFilterIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.locationFilterIds.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.formatFilterIds)){this.formatFilterIds=[];var n,a=Object(s.a)(e.formatFilterIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.formatFilterIds.push(o)}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseCreditsList=this.licenseCreditsList,e.learningPlanId=this.learningPlanId,Array.isArray(this.locationFilterIds)){e.locationFilterIds=[];var t,i=Object(s.a)(this.locationFilterIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.locationFilterIds.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.formatFilterIds)){e.formatFilterIds=[];var n,a=Object(s.a)(this.formatFilterIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.formatFilterIds.push(o)}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),uo=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.periodFrom=void 0,this.periodTo=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ho=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.competencyFrameworkId=void 0,this.periodFrom=void 0,this.periodTo=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.competencyFrameworkId=e.competencyFrameworkId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.competencyFrameworkId=this.competencyFrameworkId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vo=function(){function e(t){if(Object(l.a)(this,e),this.guid=void 0,this.params=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.guid=e.guid,this.params=e.params)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).guid=this.guid,e.params=this.params,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),po=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.allPeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.allPeriods=e.allPeriods)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.allPeriods=this.allPeriods,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fo=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.isCurrentPeriod=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.isCurrentPeriod=e.isCurrentPeriod)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.isCurrentPeriod=this.isCurrentPeriod,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mo=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.parentLicenseId=void 0,this.isCurrentPeriod=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.parentLicenseId=e.parentLicenseId,this.isCurrentPeriod=e.isCurrentPeriod)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.parentLicenseId=this.parentLicenseId,e.isCurrentPeriod=this.isCurrentPeriod,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yo=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),go=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.portalScreen=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.portalScreen=e.portalScreen)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.portalScreen=this.portalScreen,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bo=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.sessionParticipantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.sessionParticipantId=e.sessionParticipantId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.sessionParticipantId=this.sessionParticipantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),So=function(){function e(t){if(Object(l.a)(this,e),this.guid=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.guid=e.guid,this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).guid=this.guid,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Eo=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Io=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.userId=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId,this.licenseId=e.licenseId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oo=function(){function e(t){if(Object(l.a)(this,e),this.sessionIds=void 0,this.userId=void 0,this.sessionUsers=void 0,this.licenseIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionIds)){this.sessionIds=[];var t,i=Object(s.a)(e.sessionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionIds.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(this.userId=e.userId,Array.isArray(e.sessionUsers)){this.sessionUsers=[];var n,a=Object(s.a)(e.sessionUsers);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionUsers.push(rh.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.licenseIds)){this.licenseIds=[];var l,c=Object(s.a)(e.licenseIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.licenseIds.push(d)}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionIds)){e.sessionIds=[];var t,i=Object(s.a)(this.sessionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionIds.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(e.userId=this.userId,Array.isArray(this.sessionUsers)){e.sessionUsers=[];var n,a=Object(s.a)(this.sessionUsers);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionUsers.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.licenseIds)){e.licenseIds=[];var l,c=Object(s.a)(this.licenseIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.licenseIds.push(d)}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Co=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.sessionEvaluationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.sessionEvaluationId=e.sessionEvaluationId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.sessionEvaluationId=this.sessionEvaluationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xo=function(){function e(t){if(Object(l.a)(this,e),this.guid=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.guid=e.guid,this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).guid=this.guid,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jo=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wo=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.sessionId)){this.sessionId=[];var t,i=Object(s.a)(e.sessionId);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionId.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionId)){e.sessionId=[];var t,i=Object(s.a)(this.sessionId);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionId.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Po=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),To=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ao=function(){function e(t){if(Object(l.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.userId=void 0,this.collectionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(s.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var n,a=Object(s.a)(e.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var l,c=Object(s.a)(e.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var u,h=Object(s.a)(e.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}this.userId=e.userId,this.collectionId=e.collectionId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(s.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var n,a=Object(s.a)(this.searchCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.searchCriteria.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var l,c=Object(s.a)(this.exemptedIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.exemptedIds.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var u,h=Object(s.a)(this.includeIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.includeIds.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e.userId=this.userId,e.collectionId=this.collectionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),No=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ko=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.periodNumber=void 0,this.groupingName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.periodNumber=e.periodNumber,this.groupingName=e.groupingName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.periodNumber=this.periodNumber,e.groupingName=this.groupingName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Do=function(){function e(t){if(Object(l.a)(this,e),this.userIdList=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userIdList)){this.userIdList=[];var t,i=Object(s.a)(e.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.licenseId=e.licenseId}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userIdList)){e.userIdList=[];var t,i=Object(s.a)(this.userIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lo=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.isRequestFromPortal=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.isRequestFromPortal=e.isRequestFromPortal)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.isRequestFromPortal=this.isRequestFromPortal,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Days=1]="Days",e[e.Weeks=2]="Weeks",e[e.Months=3]="Months"}(Zn||(Zn={})),function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(Xn||(Xn={}));var Jo,Fo=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bo=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.displayOrder=void 0,this.name=void 0,this.type=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.displayOrder=e.displayOrder,this.name=e.name,this.type=e.type,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.displayOrder=this.displayOrder,e.name=this.name,e.type=this.type,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ro=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.type=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.completedDate=void 0,this.timeframeOfCompletion=void 0,this.timeframOfCompletionId=void 0,this.duration=void 0,this.durationType=void 0,this.durationTypeId=void 0,this.requiredCourses=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.incompleteCount=void 0,this.isIncluded=void 0,this.status=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.type=e.type,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,this.timeframeOfCompletion=e.timeframeOfCompletion,this.timeframOfCompletionId=e.timeframOfCompletionId,this.duration=e.duration,this.durationType=e.durationType,this.durationTypeId=e.durationTypeId,this.requiredCourses=e.requiredCourses,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.incompleteCount=e.incompleteCount,this.isIncluded=e.isIncluded,this.status=e.status,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(s.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(Bo.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var n,a=Object(s.a)(e.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanActivities.push(Fo.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.type=this.type,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e.timeframeOfCompletion=this.timeframeOfCompletion,e.timeframOfCompletionId=this.timeframOfCompletionId,e.duration=this.duration,e.durationType=this.durationType,e.durationTypeId=this.durationTypeId,e.requiredCourses=this.requiredCourses,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.incompleteCount=this.incompleteCount,e.isIncluded=this.isIncluded,e.status=this.status,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(s.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var n,a=Object(s.a)(this.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Uo=function(){function e(t){if(Object(l.a)(this,e),this.learningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(s.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(Ro.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(s.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Go=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.status=void 0,this.isIncluded=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.status=e.status,this.isIncluded=e.isIncluded,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(s.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(Bo.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var n,a=Object(s.a)(e.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanActivities.push(Fo.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.status=this.status,e.isIncluded=this.isIncluded,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(s.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var n,a=Object(s.a)(this.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qo=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(s.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(Go.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(s.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mo=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipantId=void 0,this.learningPlanId=void 0,this.requirementId=void 0,this.courseTitle=void 0,this.specificRequirementId=void 0,this.requirementType=void 0,this.name=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanParticipantId=e.learningPlanParticipantId,this.learningPlanId=e.learningPlanId,this.requirementId=e.requirementId,this.courseTitle=e.courseTitle,this.specificRequirementId=e.specificRequirementId,this.requirementType=e.requirementType,this.name=e.name,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanParticipantId=this.learningPlanParticipantId,e.learningPlanId=this.learningPlanId,e.requirementId=this.requirementId,e.courseTitle=this.courseTitle,e.specificRequirementId=this.specificRequirementId,e.requirementType=this.requirementType,e.name=this.name,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zo=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipantRequirements=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanParticipantRequirements)){this.learningPlanParticipantRequirements=[];var t,i=Object(s.a)(e.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanParticipantRequirements.push(Mo.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanParticipantRequirements)){e.learningPlanParticipantRequirements=[];var t,i=Object(s.a)(this.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanParticipantRequirements.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wo=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseCompliancePeriods=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLicenseCompliancePeriods)){this.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(Vo.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vo=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.renewalDate=void 0,this.userSubLicenseCompliancePeriod=void 0,this.industry=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?_o.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.industry=e.industry)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.industry=this.industry,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_o=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yo=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.isValidated=void 0,this.shouldDisplayDateRange=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.isValidated=e.isValidated,this.shouldDisplayDateRange=e.shouldDisplayDateRange)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.isValidated=this.isValidated,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$o=function(){function e(t){if(Object(l.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(s.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Yo.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(s.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ho=function(){function e(t){if(Object(l.a)(this,e),this.emailName=void 0,this.id=void 0,this.emailSubject=void 0,this.liveDomain=void 0,this.portalId=void 0,this.previewKey=void 0,this.previewUrl=void 0,this.publishDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.emailName=e.emailName,this.id=e.id,this.emailSubject=e.emailSubject,this.liveDomain=e.liveDomain,this.portalId=e.portalId,this.previewKey=e.previewKey,this.previewUrl=e.previewUrl,this.publishDate=e.publishDate?new Date(e.publishDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailName=this.emailName,e.id=this.id,e.emailSubject=this.emailSubject,e.liveDomain=this.liveDomain,e.portalId=this.portalId,e.previewKey=this.previewKey,e.previewUrl=this.previewUrl,e.publishDate=this.publishDate?this.publishDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ko=function(){function e(t){if(Object(l.a)(this,e),this.id=void 0,this.url=void 0,this.thumb=void 0,this.tag=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.id=e.id,this.url=e.url,this.thumb=e.thumb,this.tag=e.tag,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).id=this.id,e.url=this.url,e.thumb=this.thumb,e.tag=this.tag,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Insert=1]="Insert",e[e.Update=2]="Update",e[e.Exclude=3]="Exclude",e[e.Error=4]="Error",e[e.Duplicate=5]="Duplicate"}(Jo||(Jo={}));var Qo;!function(e){e[e.Configuring=0]="Configuring",e[e.Scheduled=1]="Scheduled",e[e.Processing=2]="Processing",e[e.PartiallySuccessful=3]="PartiallySuccessful",e[e.Success=4]="Success",e[e.Error=5]="Error",e[e.Skipped=6]="Skipped",e[e.Validated=7]="Validated"}(Qo||(Qo={}));var Zo,Xo,es=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.title=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.courseIdLabel=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timeZone=void 0,this.location=void 0,this.room=void 0,this.cost=void 0,this.detail=void 0,this.duration=void 0,this.isRegistrationApprovalNeeded=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.evaluation=void 0,this.areQuestionsAllowed=void 0,this.url=void 0,this.note=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.isOnlineLearning=void 0,this.validatedCount=void 0,this.tentativeCount=void 0,this.registeredCount=void 0,this.pendingCount=void 0,this.inProgressCount=void 0,this.disqualifiedCount=void 0,this.cancelledDate=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,this.sessionInstructors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.title=e.title,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.courseIdLabel=e.courseIdLabel,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timeZone=e.timeZone,this.location=e.location,this.room=e.room,this.cost=e.cost,this.detail=e.detail,this.duration=e.duration,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.evaluation=e.evaluation,this.areQuestionsAllowed=e.areQuestionsAllowed,this.url=e.url,this.note=e.note,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,this.isOnlineLearning=e.isOnlineLearning,this.validatedCount=e.validatedCount,this.tentativeCount=e.tentativeCount,this.registeredCount=e.registeredCount,this.pendingCount=e.pendingCount,this.inProgressCount=e.inProgressCount,this.disqualifiedCount=e.disqualifiedCount,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var t,i=Object(s.a)(e.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionApprovers.push(nu.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var l,c=Object(s.a)(e.sessionMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionMaterials.push(Du.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var u,h=Object(s.a)(e.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionInstructors.push(v)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.title=this.title,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.courseIdLabel=this.courseIdLabel,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timeZone=this.timeZone,e.location=this.location,e.room=this.room,e.cost=this.cost,e.detail=this.detail,e.duration=this.duration,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.evaluation=this.evaluation,e.areQuestionsAllowed=this.areQuestionsAllowed,e.url=this.url,e.note=this.note,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,e.isOnlineLearning=this.isOnlineLearning,e.validatedCount=this.validatedCount,e.tentativeCount=this.tentativeCount,e.registeredCount=this.registeredCount,e.pendingCount=this.pendingCount,e.inProgressCount=this.inProgressCount,e.disqualifiedCount=this.disqualifiedCount,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var t,i=Object(s.a)(this.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionApprovers.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var l,c=Object(s.a)(this.sessionMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionMaterials.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var u,h=Object(s.a)(this.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionInstructors.push(v)}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ts=function(){function e(t){if(Object(l.a)(this,e),this.integrationId=void 0,this.name=void 0,this.description=void 0,this.url=void 0,this.logo=void 0,this.isEnabled=void 0,this.isVisible=void 0,this.allowManualRun=void 0,this.allowSchedule=void 0,this.allowEdit=void 0,this.schedule=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurrence=void 0,this.nextOccurrence=void 0,this.tags=void 0,this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.integrationId=e.integrationId,this.name=e.name,this.description=e.description,this.url=e.url,this.logo=e.logo,this.isEnabled=e.isEnabled,this.isVisible=e.isVisible,this.allowManualRun=e.allowManualRun,this.allowSchedule=e.allowSchedule,this.allowEdit=e.allowEdit,this.schedule=e.schedule,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Ph.fromJS(e.timezone):void 0,this.recurrence=e.recurrence,this.nextOccurrence=e.nextOccurrence?new Date(e.nextOccurrence.toString()):void 0,Array.isArray(e.tags)){this.tags=[];var t,i=Object(s.a)(e.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tags.push(fs.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.settings)){this.settings=[];var n,a=Object(s.a)(e.settings);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.settings.push(ps.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationId=this.integrationId,e.name=this.name,e.description=this.description,e.url=this.url,e.logo=this.logo,e.isEnabled=this.isEnabled,e.isVisible=this.isVisible,e.allowManualRun=this.allowManualRun,e.allowSchedule=this.allowSchedule,e.allowEdit=this.allowEdit,e.schedule=this.schedule,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,e.recurrence=this.recurrence,e.nextOccurrence=this.nextOccurrence?this.nextOccurrence.toISOString():void 0,Array.isArray(this.tags)){e.tags=[];var t,i=Object(s.a)(this.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tags.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.settings)){e.settings=[];var n,a=Object(s.a)(this.settings);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.settings.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),is=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobAttendeeId=void 0,this.integrationJobId=void 0,this.integrationJob=void 0,this.userId=void 0,this.firstName=void 0,this.lastName=void 0,this.name=void 0,this.email=void 0,this.details=void 0,this.status=void 0,this.courseId=void 0,this.courseTitle=void 0,this.sessionId=void 0,this.completedDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobAttendeeId=e.integrationJobAttendeeId,this.integrationJobId=e.integrationJobId,this.integrationJob=e.integrationJob?os.fromJS(e.integrationJob):void 0,this.userId=e.userId,this.firstName=e.firstName,this.lastName=e.lastName,this.name=e.name,this.email=e.email,this.details=e.details,this.status=e.status,this.courseId=e.courseId,this.courseTitle=e.courseTitle,this.sessionId=e.sessionId,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobAttendeeId=this.integrationJobAttendeeId,e.integrationJobId=this.integrationJobId,e.integrationJob=this.integrationJob?this.integrationJob.toJSON():void 0,e.userId=this.userId,e.firstName=this.firstName,e.lastName=this.lastName,e.name=this.name,e.email=this.email,e.details=this.details,e.status=this.status,e.courseId=this.courseId,e.courseTitle=this.courseTitle,e.sessionId=this.sessionId,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rs=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobAttendees=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationJobAttendees)){this.integrationJobAttendees=[];var t,i=Object(s.a)(e.integrationJobAttendees);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationJobAttendees.push(is.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationJobAttendees)){e.integrationJobAttendees=[];var t,i=Object(s.a)(this.integrationJobAttendees);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationJobAttendees.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ns=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobCourseId=void 0,this.details=void 0,this.status=void 0,this.createdDate=void 0,this.courseId=void 0,this.course=void 0,this.title=void 0,this.integrationJobId=void 0,this.integrationJob=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobCourseId=e.integrationJobCourseId,this.details=e.details,this.status=e.status,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.courseId=e.courseId,this.course=e.course?Mi.fromJS(e.course):void 0,this.title=e.title,this.integrationJobId=e.integrationJobId,this.integrationJob=e.integrationJob?os.fromJS(e.integrationJob):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobCourseId=this.integrationJobCourseId,e.details=this.details,e.status=this.status,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.courseId=this.courseId,e.course=this.course?this.course.toJSON():void 0,e.title=this.title,e.integrationJobId=this.integrationJobId,e.integrationJob=this.integrationJob?this.integrationJob.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),as=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobCourses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationJobCourses)){this.integrationJobCourses=[];var t,i=Object(s.a)(e.integrationJobCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationJobCourses.push(ns.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationJobCourses)){e.integrationJobCourses=[];var t,i=Object(s.a)(this.integrationJobCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationJobCourses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),os=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobId=void 0,this.title=void 0,this.message=void 0,this.status=void 0,this.isManual=void 0,this.isArchive=void 0,this.startDateTime=void 0,this.endDateTime=void 0,this.duration=void 0,this.integrationId=void 0,this.integration=void 0,this.logs=void 0,this.files=void 0,this.courses=void 0,this.attendees=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.integrationJobId=e.integrationJobId,this.title=e.title,this.message=e.message,this.status=e.status,this.isManual=e.isManual,this.isArchive=e.isArchive,this.startDateTime=e.startDateTime?new Date(e.startDateTime.toString()):void 0,this.endDateTime=e.endDateTime?new Date(e.endDateTime.toString()):void 0,this.duration=e.duration,this.integrationId=e.integrationId,this.integration=e.integration?ts.fromJS(e.integration):void 0,Array.isArray(e.logs)){this.logs=[];var t,i=Object(s.a)(e.logs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.logs.push(hs.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.files)){this.files=[];var n,a=Object(s.a)(e.files);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.files.push(ss.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.courses)){this.courses=[];var l,c=Object(s.a)(e.courses);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.courses.push(ns.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.attendees)){this.attendees=[];var u,h=Object(s.a)(e.attendees);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.attendees.push(is.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationJobId=this.integrationJobId,e.title=this.title,e.message=this.message,e.status=this.status,e.isManual=this.isManual,e.isArchive=this.isArchive,e.startDateTime=this.startDateTime?this.startDateTime.toISOString():void 0,e.endDateTime=this.endDateTime?this.endDateTime.toISOString():void 0,e.duration=this.duration,e.integrationId=this.integrationId,e.integration=this.integration?this.integration.toJSON():void 0,Array.isArray(this.logs)){e.logs=[];var t,i=Object(s.a)(this.logs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.logs.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.files)){e.files=[];var n,a=Object(s.a)(this.files);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.files.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.courses)){e.courses=[];var l,c=Object(s.a)(this.courses);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.courses.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.attendees)){e.attendees=[];var u,h=Object(s.a)(this.attendees);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.attendees.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ss=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobFileId=void 0,this.integrationJobId=void 0,this.key=void 0,this.url=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobFileId=e.integrationJobFileId,this.integrationJobId=e.integrationJobId,this.key=e.key,this.url=e.url)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobFileId=this.integrationJobFileId,e.integrationJobId=this.integrationJobId,e.key=this.key,e.url=this.url,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ls=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobs=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationJobs)){this.integrationJobs=[];var t,i=Object(s.a)(e.integrationJobs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationJobs.push(os.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationJobs)){e.integrationJobs=[];var t,i=Object(s.a)(this.integrationJobs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationJobs.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cs=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobSessionId=void 0,this.status=void 0,this.title=void 0,this.details=void 0,this.createdDate=void 0,this.sessionId=void 0,this.integrationJobId=void 0,this.integrationJob=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobSessionId=e.integrationJobSessionId,this.status=e.status,this.title=e.title,this.details=e.details,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.sessionId=e.sessionId,this.integrationJobId=e.integrationJobId,this.integrationJob=e.integrationJob?os.fromJS(e.integrationJob):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobSessionId=this.integrationJobSessionId,e.status=this.status,e.title=this.title,e.details=this.details,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.sessionId=this.sessionId,e.integrationJobId=this.integrationJobId,e.integrationJob=this.integrationJob?this.integrationJob.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ds=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.attendees=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(cs.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.attendees)){this.attendees=[];var n,a=Object(s.a)(e.attendees);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.attendees.push(is.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.attendees)){e.attendees=[];var n,a=Object(s.a)(this.attendees);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.attendees.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),us=function(){function e(t){if(Object(l.a)(this,e),this.integrations=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.integrations)){this.integrations=[];var t,i=Object(s.a)(e.integrations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrations.push(ts.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrations)){e.integrations=[];var t,i=Object(s.a)(this.integrations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrations.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hs=function(){function e(t){if(Object(l.a)(this,e),this.integrationJobId=void 0,this.integrationLogId=void 0,this.message=void 0,this.details=void 0,this.createdDate=void 0,this.duration=void 0,this.isError=void 0,this.parentId=void 0,this.children=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(t){if(t&&(this.integrationJobId=t.integrationJobId,this.integrationLogId=t.integrationLogId,this.message=t.message,this.details=t.details,this.createdDate=t.createdDate?new Date(t.createdDate.toString()):void 0,this.duration=t.duration,this.isError=t.isError,this.parentId=t.parentId,Array.isArray(t.children))){this.children=[];var i,r=Object(s.a)(t.children);try{for(r.s();!(i=r.n()).done;){var n=i.value;this.children.push(e.fromJS(n))}}catch(a){r.e(a)}finally{r.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationJobId=this.integrationJobId,e.integrationLogId=this.integrationLogId,e.message=this.message,e.details=this.details,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.duration=this.duration,e.isError=this.isError,e.parentId=this.parentId,Array.isArray(this.children)){e.children=[];var t,i=Object(s.a)(this.children);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.children.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vs=function(){function e(t){if(Object(l.a)(this,e),this.integrationLogs=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationLogs)){this.integrationLogs=[];var t,i=Object(s.a)(e.integrationLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationLogs.push(hs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationLogs)){e.integrationLogs=[];var t,i=Object(s.a)(this.integrationLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationLogs.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ps=function(){function e(t){if(Object(l.a)(this,e),this.integrationSettingId=void 0,this.key=void 0,this.name=void 0,this.value=void 0,this.type=void 0,this.validation=void 0,this.isEditable=void 0,this.isVisible=void 0,this.integrationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.integrationSettingId=e.integrationSettingId,this.key=e.key,this.name=e.name,this.value=e.value,this.type=e.type,this.validation=e.validation,this.isEditable=e.isEditable,this.isVisible=e.isVisible,this.integrationId=e.integrationId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationSettingId=this.integrationSettingId,e.key=this.key,e.name=this.name,e.value=this.value,e.type=this.type,e.validation=this.validation,e.isEditable=this.isEditable,e.isVisible=this.isVisible,e.integrationId=this.integrationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fs=function(){function e(t){if(Object(l.a)(this,e),this.integrationTagId=void 0,this.name=void 0,this.integrationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.integrationTagId=e.integrationTagId,this.name=e.name,this.integrationId=e.integrationId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationTagId=this.integrationTagId,e.name=this.name,e.integrationId=this.integrationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ms=function(){function e(t){if(Object(l.a)(this,e),this.languageId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.languageId=e.languageId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).languageId=this.languageId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Days=1]="Days",e[e.Weeks=2]="Weeks",e[e.Months=3]="Months"}(Zo||(Zo={})),function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(Xo||(Xo={}));var ys,gs=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bs=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.displayOrder=void 0,this.name=void 0,this.type=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.displayOrder=e.displayOrder,this.name=e.name,this.type=e.type,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.displayOrder=this.displayOrder,e.name=this.name,e.type=this.type,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ss=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.type=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.completedDate=void 0,this.timeframeOfCompletion=void 0,this.timeframOfCompletionId=void 0,this.duration=void 0,this.durationType=void 0,this.durationTypeId=void 0,this.requiredCourses=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.incompleteCount=void 0,this.isIncluded=void 0,this.status=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.type=e.type,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,this.timeframeOfCompletion=e.timeframeOfCompletion,this.timeframOfCompletionId=e.timeframOfCompletionId,this.duration=e.duration,this.durationType=e.durationType,this.durationTypeId=e.durationTypeId,this.requiredCourses=e.requiredCourses,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.incompleteCount=e.incompleteCount,this.isIncluded=e.isIncluded,this.status=e.status,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(s.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(bs.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var n,a=Object(s.a)(e.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanActivities.push(gs.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.type=this.type,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e.timeframeOfCompletion=this.timeframeOfCompletion,e.timeframOfCompletionId=this.timeframOfCompletionId,e.duration=this.duration,e.durationType=this.durationType,e.durationTypeId=this.durationTypeId,e.requiredCourses=this.requiredCourses,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.incompleteCount=this.incompleteCount,e.isIncluded=this.isIncluded,e.status=this.status,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(s.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var n,a=Object(s.a)(this.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Es=function(){function e(t){if(Object(l.a)(this,e),this.learningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(s.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(Ss.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(s.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Is=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.status=void 0,this.isIncluded=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.status=e.status,this.isIncluded=e.isIncluded,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(s.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(bs.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var n,a=Object(s.a)(e.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanActivities.push(gs.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.status=this.status,e.isIncluded=this.isIncluded,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(s.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var n,a=Object(s.a)(this.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Os=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(s.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(Is.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(s.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipantId=void 0,this.learningPlanId=void 0,this.requirementId=void 0,this.courseTitle=void 0,this.specificRequirementId=void 0,this.requirementType=void 0,this.name=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanParticipantId=e.learningPlanParticipantId,this.learningPlanId=e.learningPlanId,this.requirementId=e.requirementId,this.courseTitle=e.courseTitle,this.specificRequirementId=e.specificRequirementId,this.requirementType=e.requirementType,this.name=e.name,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanParticipantId=this.learningPlanParticipantId,e.learningPlanId=this.learningPlanId,e.requirementId=this.requirementId,e.courseTitle=this.courseTitle,e.specificRequirementId=this.specificRequirementId,e.requirementType=this.requirementType,e.name=this.name,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipantRequirements=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanParticipantRequirements)){this.learningPlanParticipantRequirements=[];var t,i=Object(s.a)(e.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanParticipantRequirements.push(Cs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanParticipantRequirements)){e.learningPlanParticipantRequirements=[];var t,i=Object(s.a)(this.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanParticipantRequirements.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),js=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseCompliancePeriods=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLicenseCompliancePeriods)){this.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(ws.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ws=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.renewalDate=void 0,this.userSubLicenseCompliancePeriod=void 0,this.industry=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?Ps.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.industry=e.industry)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.industry=this.industry,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ps=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ts=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.isValidated=void 0,this.shouldDisplayDateRange=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.isValidated=e.isValidated,this.shouldDisplayDateRange=e.shouldDisplayDateRange)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.isValidated=this.isValidated,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),As=function(){function e(t){if(Object(l.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(s.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Ts.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(s.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ns=function(){function e(t){if(Object(l.a)(this,e),this.subCategoryId=void 0,this.competencyFrameworkId=void 0,this.competencyId=void 0,this.description=void 0,this.sequenceNumber=void 0,this.isSelected=void 0,this.developmentPlanId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.subCategoryId=e.subCategoryId,this.competencyFrameworkId=e.competencyFrameworkId,this.competencyId=e.competencyId,this.description=e.description,this.sequenceNumber=e.sequenceNumber,this.isSelected=e.isSelected,this.developmentPlanId=e.developmentPlanId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subCategoryId=this.subCategoryId,e.competencyFrameworkId=this.competencyFrameworkId,e.competencyId=this.competencyId,e.description=this.description,e.sequenceNumber=this.sequenceNumber,e.isSelected=this.isSelected,e.developmentPlanId=this.developmentPlanId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ks=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ds=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ls=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanCatalog=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanCatalog)){this.learningPlanCatalog=[];var t,i=Object(s.a)(e.learningPlanCatalog);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCatalog.push(Ds.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanCatalog)){e.learningPlanCatalog=[];var t,i=Object(s.a)(this.learningPlanCatalog);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCatalog.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Js=function(){function e(t){if(Object(l.a)(this,e),this.competencyId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fs=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.name=void 0,this.displayOrder=void 0,this.type=void 0,this.isRequired=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.name=e.name,this.displayOrder=e.displayOrder,this.type=e.type,this.isRequired=e.isRequired,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.name=this.name,e.displayOrder=this.displayOrder,e.type=this.type,e.isRequired=this.isRequired,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bs=function(){function e(t){if(Object(l.a)(this,e),this.criterionId=void 0,this.criteriaFieldId=void 0,this.title=void 0,this.content=void 0,this.comparison=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.criterionId=e.criterionId,this.criteriaFieldId=e.criteriaFieldId,this.title=e.title,this.content=e.content,this.comparison=e.comparison)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).criterionId=this.criterionId,e.criteriaFieldId=this.criteriaFieldId,e.title=this.title,e.content=this.content,e.comparison=this.comparison,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rs=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.name=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.location=void 0,this.userType=void 0,this.isIncluded=void 0,this.participantCriteriaStatus=void 0,this.criteriaMet=void 0,this.userAvatar=void 0,this.isNewUser=void 0,this.learningPlanStartDate=void 0,this.learningPlanEndDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.name=e.name,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.location=e.location,this.userType=e.userType,this.isIncluded=e.isIncluded,this.participantCriteriaStatus=e.participantCriteriaStatus,Array.isArray(e.criteriaMet)){this.criteriaMet=[];var t,i=Object(s.a)(e.criteriaMet);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.criteriaMet.push(Bs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,this.isNewUser=e.isNewUser,this.learningPlanStartDate=e.learningPlanStartDate?new Date(e.learningPlanStartDate.toString()):void 0,this.learningPlanEndDate=e.learningPlanEndDate?new Date(e.learningPlanEndDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.name=this.name,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.location=this.location,e.userType=this.userType,e.isIncluded=this.isIncluded,e.participantCriteriaStatus=this.participantCriteriaStatus,Array.isArray(this.criteriaMet)){e.criteriaMet=[];var t,i=Object(s.a)(this.criteriaMet);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.criteriaMet.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.isNewUser=this.isNewUser,e.learningPlanStartDate=this.learningPlanStartDate?this.learningPlanStartDate.toISOString():void 0,e.learningPlanEndDate=this.learningPlanEndDate?this.learningPlanEndDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Us=function(){function e(t){if(Object(l.a)(this,e),this.criterionId=void 0,this.learningPlanId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.criterionId=e.criterionId,this.learningPlanId=e.learningPlanId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).criterionId=this.criterionId,e.learningPlanId=this.learningPlanId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.lastModifiedDate=void 0,this.requiredCourses=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.completeCount=void 0,this.incompleteCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.title=e.title,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.requiredCourses=e.requiredCourses,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.completeCount=e.completeCount,this.incompleteCount=e.incompleteCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.requiredCourses=this.requiredCourses,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.completeCount=this.completeCount,e.incompleteCount=this.incompleteCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(s.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(Gs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(s.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ms=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.activityCount=void 0,this.learnersChoiceCount=void 0,this.mandatoryCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.learningPlanActivities=void 0,this.learningPlanCompetencies=void 0,this.learningPlanCourses=void 0,this.learningPlanCriteria=void 0,this.learningPlanParticipants=void 0,this.learningPlanTags=void 0,this.learningPlanMaterials=void 0,this.guid=void 0,this.addParticipantEmail=void 0,this.deleteParticipantEmail=void 0,this.updateParticipantStatusEmail=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.activityCount=e.activityCount,this.learnersChoiceCount=e.learnersChoiceCount,this.mandatoryCount=e.mandatoryCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var t,i=Object(s.a)(e.learningPlanActivities);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanActivities.push(ks.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var n,a=Object(s.a)(e.learningPlanCompetencies);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanCompetencies.push(Js.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var l,c=Object(s.a)(e.learningPlanCourses);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.learningPlanCourses.push(Fs.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.learningPlanCriteria)){this.learningPlanCriteria=[];var u,h=Object(s.a)(e.learningPlanCriteria);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.learningPlanCriteria.push(Us.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.learningPlanParticipants)){this.learningPlanParticipants=[];var p,f=Object(s.a)(e.learningPlanParticipants);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.learningPlanParticipants.push(Xs.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var y,g=Object(s.a)(e.learningPlanTags);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.learningPlanTags.push(dl.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var S,E=Object(s.a)(e.learningPlanMaterials);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.learningPlanMaterials.push(Ks.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}this.guid=e.guid,this.addParticipantEmail=e.addParticipantEmail,this.deleteParticipantEmail=e.deleteParticipantEmail,this.updateParticipantStatusEmail=e.updateParticipantStatusEmail}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.activityCount=this.activityCount,e.learnersChoiceCount=this.learnersChoiceCount,e.mandatoryCount=this.mandatoryCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var t,i=Object(s.a)(this.learningPlanActivities);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanActivities.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var n,a=Object(s.a)(this.learningPlanCompetencies);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanCompetencies.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var l,c=Object(s.a)(this.learningPlanCourses);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.learningPlanCourses.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.learningPlanCriteria)){e.learningPlanCriteria=[];var u,h=Object(s.a)(this.learningPlanCriteria);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.learningPlanCriteria.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.learningPlanParticipants)){e.learningPlanParticipants=[];var p,f=Object(s.a)(this.learningPlanParticipants);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.learningPlanParticipants.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var y,g=Object(s.a)(this.learningPlanTags);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.learningPlanTags.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var S,E=Object(s.a)(this.learningPlanMaterials);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.learningPlanMaterials.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e.guid=this.guid,e.addParticipantEmail=this.addParticipantEmail,e.deleteParticipantEmail=this.deleteParticipantEmail,e.updateParticipantStatusEmail=this.updateParticipantStatusEmail,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanEmailSettingRecurrenceId=void 0,this.learningPlanEmailSettingId=void 0,this.frequency=void 0,this.startDate=void 0,this.endDate=void 0,this.time=void 0,this.timezoneId=void 0,this.timezoneCode=void 0,this.recurDayOfWeek=void 0,this.recurDay=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.jobId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanEmailSettingRecurrenceId=e.learningPlanEmailSettingRecurrenceId,this.learningPlanEmailSettingId=e.learningPlanEmailSettingId,this.frequency=e.frequency,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.time=e.time,this.timezoneId=e.timezoneId,this.timezoneCode=e.timezoneCode,this.recurDayOfWeek=e.recurDayOfWeek,this.recurDay=e.recurDay,this.monthlyOption=e.monthlyOption,this.monthlyDay=e.monthlyDay,this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.jobId=e.jobId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanEmailSettingRecurrenceId=this.learningPlanEmailSettingRecurrenceId,e.learningPlanEmailSettingId=this.learningPlanEmailSettingId,e.frequency=this.frequency,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.time=this.time,e.timezoneId=this.timezoneId,e.timezoneCode=this.timezoneCode,e.recurDayOfWeek=this.recurDayOfWeek,e.recurDay=this.recurDay,e.monthlyOption=this.monthlyOption,e.monthlyDay=this.monthlyDay,e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.jobId=this.jobId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ws=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanEmailSettingScheduleId=void 0,this.learningPlanEmailSettingId=void 0,this.processDate=void 0,this.processTime=void 0,this.timezoneId=void 0,this.timezoneCode=void 0,this.jobId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanEmailSettingScheduleId=e.learningPlanEmailSettingScheduleId,this.learningPlanEmailSettingId=e.learningPlanEmailSettingId,this.processDate=e.processDate?new Date(e.processDate.toString()):void 0,this.processTime=e.processTime,this.timezoneId=e.timezoneId,this.timezoneCode=e.timezoneCode,this.jobId=e.jobId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanEmailSettingScheduleId=this.learningPlanEmailSettingScheduleId,e.learningPlanEmailSettingId=this.learningPlanEmailSettingId,e.processDate=this.processDate?this.processDate.toISOString():void 0,e.processTime=this.processTime,e.timezoneId=this.timezoneId,e.timezoneCode=this.timezoneCode,e.jobId=this.jobId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.title=e.title)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_s=function(){function e(t){if(Object(l.a)(this,e),this.learningPlans=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(s.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(Vs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(s.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ys=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanIdList=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanIdList)){this.learningPlanIdList=[];var t,i=Object(s.a)(e.learningPlanIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanIdList)){e.learningPlanIdList=[];var t,i=Object(s.a)(this.learningPlanIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanIdList.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$s=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.activityCount=void 0,this.learnersChoiceCount=void 0,this.mandatoryCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.learningPlanCompetencies=void 0,this.learningPlanTags=void 0,this.learningPlanMaterials=void 0,this.guid=void 0,this.addParticipantEmail=void 0,this.deleteParticipantEmail=void 0,this.updateParticipantStatusEmail=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.activityCount=e.activityCount,this.learnersChoiceCount=e.learnersChoiceCount,this.mandatoryCount=e.mandatoryCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var t,i=Object(s.a)(e.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCompetencies.push(Js.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var n,a=Object(s.a)(e.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var l,c=Object(s.a)(e.learningPlanMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.learningPlanMaterials.push(Ks.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.guid=e.guid,this.addParticipantEmail=e.addParticipantEmail,this.deleteParticipantEmail=e.deleteParticipantEmail,this.updateParticipantStatusEmail=e.updateParticipantStatusEmail}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.activityCount=this.activityCount,e.learnersChoiceCount=this.learnersChoiceCount,e.mandatoryCount=this.mandatoryCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var t,i=Object(s.a)(this.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCompetencies.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var n,a=Object(s.a)(this.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanTags.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var l,c=Object(s.a)(this.learningPlanMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.learningPlanMaterials.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.guid=this.guid,e.addParticipantEmail=this.addParticipantEmail,e.deleteParticipantEmail=this.deleteParticipantEmail,e.updateParticipantStatusEmail=this.updateParticipantStatusEmail,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.userId=void 0,this.guid=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.userId=e.userId,this.guid=e.guid)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.userId=this.userId,e.guid=this.guid,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ks=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanMaterialId=void 0,this.learningPlanId=void 0,this.fileId=void 0,this.isPublic=void 0,this.libraryFile=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanMaterialId=e.learningPlanMaterialId,this.learningPlanId=e.learningPlanId,this.fileId=e.fileId,this.isPublic=e.isPublic,this.libraryFile=e.libraryFile?gl.fromJS(e.libraryFile):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanMaterialId=this.learningPlanMaterialId,e.learningPlanId=this.learningPlanId,e.fileId=this.fileId,e.isPublic=this.isPublic,e.libraryFile=this.libraryFile?this.libraryFile.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanEmailSettingId=void 0,this.learningPlanId=void 0,this.emailTypeId=void 0,this.scheduleOption=void 0,this.emailTemplateId=void 0,this.subject=void 0,this.replyToUserId=void 0,this.senderId=void 0,this.emailAlias=void 0,this.body=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.includeMaterials=void 0,this.lastSent=void 0,this.learningPlanEmailSettingRecurrenceId=void 0,this.schedules=void 0,this.recurrence=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanEmailSettingId=e.learningPlanEmailSettingId,this.learningPlanId=e.learningPlanId,this.emailTypeId=e.emailTypeId,this.scheduleOption=e.scheduleOption,this.emailTemplateId=e.emailTemplateId,this.subject=e.subject,this.replyToUserId=e.replyToUserId,this.senderId=e.senderId,this.emailAlias=e.emailAlias,this.body=e.body,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,this.includeMaterials=e.includeMaterials,this.lastSent=e.lastSent?new Date(e.lastSent.toString()):void 0,this.learningPlanEmailSettingRecurrenceId=e.learningPlanEmailSettingRecurrenceId,Array.isArray(e.schedules)){this.schedules=[];var t,i=Object(s.a)(e.schedules);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.schedules.push(Ws.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(this.recurrence=e.recurrence?zs.fromJS(e.recurrence):void 0,Array.isArray(e.recipients)){this.recipients=[];var n,a=Object(s.a)(e.recipients);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.recipients.push(Pn.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanEmailSettingId=this.learningPlanEmailSettingId,e.learningPlanId=this.learningPlanId,e.emailTypeId=this.emailTypeId,e.scheduleOption=this.scheduleOption,e.emailTemplateId=this.emailTemplateId,e.subject=this.subject,e.replyToUserId=this.replyToUserId,e.senderId=this.senderId,e.emailAlias=this.emailAlias,e.body=this.body,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,e.includeMaterials=this.includeMaterials,e.lastSent=this.lastSent?this.lastSent.toISOString():void 0,e.learningPlanEmailSettingRecurrenceId=this.learningPlanEmailSettingRecurrenceId,Array.isArray(this.schedules)){e.schedules=[];var t,i=Object(s.a)(this.schedules);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.schedules.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(e.recurrence=this.recurrence?this.recurrence.toJSON():void 0,Array.isArray(this.recipients)){e.recipients=[];var n,a=Object(s.a)(this.recipients);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.recipients.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zs=function(){function e(t){if(Object(l.a)(this,e),this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.settings)){this.settings=[];var t,i=Object(s.a)(e.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.settings.push(Qs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.settings)){e.settings=[];var t,i=Object(s.a)(this.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.settings.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xs=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.name=void 0,this.email=void 0,this.location=void 0,this.userType=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.criteriaStatus=void 0,this.criteriaMet=void 0,this.status=void 0,this.userAvatar=void 0,this.isIncluded=void 0,this.validatedBy=void 0,this.dateAdded=void 0,this.completedDate=void 0,this.isActive=void 0,this.isRecentlyAdded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.name=e.name,this.email=e.email,this.location=e.location,this.userType=e.userType,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.criteriaStatus=e.criteriaStatus,Array.isArray(e.criteriaMet)){this.criteriaMet=[];var t,i=Object(s.a)(e.criteriaMet);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.criteriaMet.push(Bs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.status=e.status,this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,this.isIncluded=e.isIncluded,this.validatedBy=e.validatedBy,this.dateAdded=e.dateAdded?new Date(e.dateAdded.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,this.isActive=e.isActive,this.isRecentlyAdded=e.isRecentlyAdded}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.name=this.name,e.email=this.email,e.location=this.location,e.userType=this.userType,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.criteriaStatus=this.criteriaStatus,Array.isArray(this.criteriaMet)){e.criteriaMet=[];var t,i=Object(s.a)(this.criteriaMet);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.criteriaMet.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.status=this.status,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.isIncluded=this.isIncluded,e.validatedBy=this.validatedBy,e.dateAdded=this.dateAdded?this.dateAdded.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e.isActive=this.isActive,e.isRecentlyAdded=this.isRecentlyAdded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),el=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipants=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanParticipants)){this.learningPlanParticipants=[];var t,i=Object(s.a)(e.learningPlanParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanParticipants.push(Xs.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanParticipants)){e.learningPlanParticipants=[];var t,i=Object(s.a)(this.learningPlanParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanParticipants.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tl=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipantId=void 0,this.learningPlanId=void 0,this.requirementId=void 0,this.courseTitle=void 0,this.specificRequirementId=void 0,this.requirementType=void 0,this.name=void 0,this.startDate=void 0,this.endDate=void 0,this.isCompletedWithinRequiredDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanParticipantId=e.learningPlanParticipantId,this.learningPlanId=e.learningPlanId,this.requirementId=e.requirementId,this.courseTitle=e.courseTitle,this.specificRequirementId=e.specificRequirementId,this.requirementType=e.requirementType,this.name=e.name,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.isCompletedWithinRequiredDate=e.isCompletedWithinRequiredDate)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanParticipantId=this.learningPlanParticipantId,e.learningPlanId=this.learningPlanId,e.requirementId=this.requirementId,e.courseTitle=this.courseTitle,e.specificRequirementId=this.specificRequirementId,e.requirementType=this.requirementType,e.name=this.name,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.isCompletedWithinRequiredDate=this.isCompletedWithinRequiredDate,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),il=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanParticipantRequirements=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanParticipantRequirements)){this.learningPlanParticipantRequirements=[];var t,i=Object(s.a)(e.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanParticipantRequirements.push(tl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanParticipantRequirements)){e.learningPlanParticipantRequirements=[];var t,i=Object(s.a)(this.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanParticipantRequirements.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.PastDue=3]="PastDue",e[e.Excluded=4]="Excluded"}(ys||(ys={}));var rl,nl=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.activityCount=void 0,this.learnersChoiceCount=void 0,this.mandatoryCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.learningPlanCompetencies=void 0,this.learningPlanTags=void 0,this.learningPlanActivities=void 0,this.learningPlanCourses=void 0,this.learningPlanParticipants=void 0,this.learningPlanMaterials=void 0,this.status=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.activityCount=e.activityCount,this.learnersChoiceCount=e.learnersChoiceCount,this.mandatoryCount=e.mandatoryCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var t,i=Object(s.a)(e.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCompetencies.push(Js.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var n,a=Object(s.a)(e.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var l,c=Object(s.a)(e.learningPlanActivities);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.learningPlanActivities.push(ks.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var u,h=Object(s.a)(e.learningPlanCourses);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.learningPlanCourses.push(Fs.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.learningPlanParticipants)){this.learningPlanParticipants=[];var p,f=Object(s.a)(e.learningPlanParticipants);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.learningPlanParticipants.push(Xs.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var y,g=Object(s.a)(e.learningPlanMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.learningPlanMaterials.push(Ks.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}this.status=e.status}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.activityCount=this.activityCount,e.learnersChoiceCount=this.learnersChoiceCount,e.mandatoryCount=this.mandatoryCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var t,i=Object(s.a)(this.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCompetencies.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var n,a=Object(s.a)(this.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanTags.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var l,c=Object(s.a)(this.learningPlanActivities);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.learningPlanActivities.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var u,h=Object(s.a)(this.learningPlanCourses);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.learningPlanCourses.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.learningPlanParticipants)){e.learningPlanParticipants=[];var p,f=Object(s.a)(this.learningPlanParticipants);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.learningPlanParticipants.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var y,g=Object(s.a)(this.learningPlanMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.learningPlanMaterials.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e.status=this.status,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),al=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPlan=void 0,this.learningPlanParticipantRequirementList=void 0,this.user=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLearningPlan=e.userLearningPlan?Sv.fromJS(e.userLearningPlan):void 0,this.learningPlanParticipantRequirementList=e.learningPlanParticipantRequirementList?il.fromJS(e.learningPlanParticipantRequirementList):void 0,this.user=e.user?hv.fromJS(e.user):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLearningPlan=this.userLearningPlan?this.userLearningPlan.toJSON():void 0,e.learningPlanParticipantRequirementList=this.learningPlanParticipantRequirementList?this.learningPlanParticipantRequirementList.toJSON():void 0,e.user=this.user?this.user.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ol=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.requiredCourses=void 0,this.learningPlanActivities=void 0,this.learningPlanCourses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.requiredCourses=e.requiredCourses,Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var t,i=Object(s.a)(e.learningPlanActivities);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanActivities.push(ks.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var n,a=Object(s.a)(e.learningPlanCourses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanCourses.push(Fs.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.requiredCourses=this.requiredCourses,Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var t,i=Object(s.a)(this.learningPlanActivities);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanActivities.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var n,a=Object(s.a)(this.learningPlanCourses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanCourses.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sl=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.cost=void 0,this.detail=void 0,this.duration=void 0,this.isOnlineLearning=void 0,this.isRegistrationApprovalNeeded=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.evaluation=void 0,this.areQuestionsAllowed=void 0,this.launchUrl=void 0,this.url=void 0,this.note=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.isInHouse=void 0,this.cancelledDate=void 0,this.participantCount=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionParticipant=void 0,this.sessionInstructors=void 0,this.sessionWaitlist=void 0,this.sessionMaterials=void 0,this.sessionMediaFiles=void 0,this.guid=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.cost=e.cost,this.detail=e.detail,this.duration=e.duration,this.isOnlineLearning=e.isOnlineLearning,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.evaluation=e.evaluation,this.areQuestionsAllowed=e.areQuestionsAllowed,this.launchUrl=e.launchUrl,this.url=e.url,this.note=e.note,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,this.isInHouse=e.isInHouse,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.participantCount=e.participantCount,Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var t,i=Object(s.a)(e.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionApprovers.push(nu.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.sessionParticipant)){this.sessionParticipant=[];var l,c=Object(s.a)(e.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionParticipant.push(Gu.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var u,h=Object(s.a)(e.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionInstructors.push(Gu.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.sessionWaitlist)){this.sessionWaitlist=[];var p,f=Object(s.a)(e.sessionWaitlist);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.sessionWaitlist.push(dh.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var y,g=Object(s.a)(e.sessionMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.sessionMaterials.push(Du.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var S,E=Object(s.a)(e.sessionMediaFiles);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.sessionMediaFiles.push(Lu.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}this.guid=e.guid}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.cost=this.cost,e.detail=this.detail,e.duration=this.duration,e.isOnlineLearning=this.isOnlineLearning,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.evaluation=this.evaluation,e.areQuestionsAllowed=this.areQuestionsAllowed,e.launchUrl=this.launchUrl,e.url=this.url,e.note=this.note,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,e.isInHouse=this.isInHouse,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.participantCount=this.participantCount,Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var t,i=Object(s.a)(this.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionApprovers.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.sessionParticipant)){e.sessionParticipant=[];var l,c=Object(s.a)(this.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionParticipant.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var u,h=Object(s.a)(this.sessionInstructors);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionInstructors.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.sessionWaitlist)){e.sessionWaitlist=[];var p,f=Object(s.a)(this.sessionWaitlist);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.sessionWaitlist.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var y,g=Object(s.a)(this.sessionMaterials);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.sessionMaterials.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var S,E=Object(s.a)(this.sessionMediaFiles);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.sessionMediaFiles.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e.guid=this.guid,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ll=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.completeCount=void 0,this.incompleteCount=void 0,this.learningPlanCompetencies=void 0,this.learningPlanTags=void 0,this.learningPlanMaterials=void 0,this.guid=void 0,this.addParticipantEmail=void 0,this.deleteParticipantEmail=void 0,this.updateParticipantStatusEmail=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.completeCount=e.completeCount,this.incompleteCount=e.incompleteCount,Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var t,i=Object(s.a)(e.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCompetencies.push(Js.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var n,a=Object(s.a)(e.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var l,c=Object(s.a)(e.learningPlanMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.learningPlanMaterials.push(Ks.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.guid=e.guid,this.addParticipantEmail=e.addParticipantEmail,this.deleteParticipantEmail=e.deleteParticipantEmail,this.updateParticipantStatusEmail=e.updateParticipantStatusEmail}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.completeCount=this.completeCount,e.incompleteCount=this.incompleteCount,Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var t,i=Object(s.a)(this.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCompetencies.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var n,a=Object(s.a)(this.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanTags.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var l,c=Object(s.a)(this.learningPlanMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.learningPlanMaterials.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.guid=this.guid,e.addParticipantEmail=this.addParticipantEmail,e.deleteParticipantEmail=this.deleteParticipantEmail,e.updateParticipantStatusEmail=this.updateParticipantStatusEmail,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cl=function(){function e(t){if(Object(l.a)(this,e),this.learningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(s.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(ll.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(s.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dl=function(){function e(t){if(Object(l.a)(this,e),this.tagId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.tagId=e.tagId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tagId=this.tagId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(rl||(rl={}));var ul,hl=function(){function e(t){if(Object(l.a)(this,e),this.learningSettingId=void 0,this.learningSettingEnumType=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningSettingId=e.learningSettingId,this.learningSettingEnumType=e.learningSettingEnumType,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningSettingId=this.learningSettingId,e.learningSettingEnumType=this.learningSettingEnumType,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.OpenToClients=1]="OpenToClients",e[e.AllowSendEval=2]="AllowSendEval",e[e.AllowTentativeReg=3]="AllowTentativeReg"}(ul||(ul={}));var vl,pl=function(){function e(t){if(Object(l.a)(this,e),this.levelId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.userCount=void 0,this.courseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.userCount=e.userCount,this.courseCount=e.courseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.userCount=this.userCount,e.courseCount=this.courseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fl=function(){function e(t){if(Object(l.a)(this,e),this.levels=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.levels)){this.levels=[];var t,i=Object(s.a)(e.levels);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.levels.push(pl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.levels)){e.levels=[];var t,i=Object(s.a)(this.levels);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.levels.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ml=function(){function e(t){if(Object(l.a)(this,e),this.affiliationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.affiliationId=e.affiliationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).affiliationId=this.affiliationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yl=function(){function e(t){if(Object(l.a)(this,e),this.departmentId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gl=function(){function e(t){if(Object(l.a)(this,e),this.fileId=void 0,this.type=void 0,this.title=void 0,this.name=void 0,this.shortDescription=void 0,this.description=void 0,this.isActive=void 0,this.isAttendanceSheet=void 0,this.archivedDate=void 0,this.url=void 0,this.access=void 0,this.key=void 0,this.extension=void 0,this.size=void 0,this.duration=void 0,this.createdDate=void 0,this.scormCourseId=void 0,this.status=void 0,this.learningPlanCount=void 0,this.sessionMaterialCount=void 0,this.sessionMediaFileCount=void 0,this.scormType=void 0,this.libraryFileAffiliations=void 0,this.libraryFileDepartments=void 0,this.libraryFileLevels=void 0,this.libraryFileLocations=void 0,this.libraryFilePositions=void 0,this.libraryFilePracticeAreas=void 0,this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.fileId=e.fileId,this.type=e.type,this.title=e.title,this.name=e.name,this.shortDescription=e.shortDescription,this.description=e.description,this.isActive=e.isActive,this.isAttendanceSheet=e.isAttendanceSheet,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.url=e.url,this.access=e.access,this.key=e.key,this.extension=e.extension,this.size=e.size,this.duration=e.duration,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.scormCourseId=e.scormCourseId,this.status=e.status,this.learningPlanCount=e.learningPlanCount,this.sessionMaterialCount=e.sessionMaterialCount,this.sessionMediaFileCount=e.sessionMediaFileCount,this.scormType=e.scormType,Array.isArray(e.libraryFileAffiliations)){this.libraryFileAffiliations=[];var t,i=Object(s.a)(e.libraryFileAffiliations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.libraryFileAffiliations.push(ml.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.libraryFileDepartments)){this.libraryFileDepartments=[];var n,a=Object(s.a)(e.libraryFileDepartments);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.libraryFileDepartments.push(yl.fromJS(o))}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(e.libraryFileLevels)){this.libraryFileLevels=[];var l,c=Object(s.a)(e.libraryFileLevels);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.libraryFileLevels.push(bl.fromJS(d))}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(e.libraryFileLocations)){this.libraryFileLocations=[];var u,h=Object(s.a)(e.libraryFileLocations);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.libraryFileLocations.push(El.fromJS(v))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.libraryFilePositions)){this.libraryFilePositions=[];var p,f=Object(s.a)(e.libraryFilePositions);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.libraryFilePositions.push(Ol.fromJS(m))}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(e.libraryFilePracticeAreas)){this.libraryFilePracticeAreas=[];var y,g=Object(s.a)(e.libraryFilePracticeAreas);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.libraryFilePracticeAreas.push(Cl.fromJS(b))}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(e.settings)){this.settings=[];var S,E=Object(s.a)(e.settings);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.settings.push(xl.fromJS(I))}}catch(O){E.e(O)}finally{E.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).fileId=this.fileId,e.type=this.type,e.title=this.title,e.name=this.name,e.shortDescription=this.shortDescription,e.description=this.description,e.isActive=this.isActive,e.isAttendanceSheet=this.isAttendanceSheet,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.url=this.url,e.access=this.access,e.key=this.key,e.extension=this.extension,e.size=this.size,e.duration=this.duration,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.scormCourseId=this.scormCourseId,e.status=this.status,e.learningPlanCount=this.learningPlanCount,e.sessionMaterialCount=this.sessionMaterialCount,e.sessionMediaFileCount=this.sessionMediaFileCount,e.scormType=this.scormType,Array.isArray(this.libraryFileAffiliations)){e.libraryFileAffiliations=[];var t,i=Object(s.a)(this.libraryFileAffiliations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.libraryFileAffiliations.push(r.toJSON())}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(this.libraryFileDepartments)){e.libraryFileDepartments=[];var n,a=Object(s.a)(this.libraryFileDepartments);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.libraryFileDepartments.push(o.toJSON())}}catch(O){a.e(O)}finally{a.f()}}if(Array.isArray(this.libraryFileLevels)){e.libraryFileLevels=[];var l,c=Object(s.a)(this.libraryFileLevels);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.libraryFileLevels.push(d.toJSON())}}catch(O){c.e(O)}finally{c.f()}}if(Array.isArray(this.libraryFileLocations)){e.libraryFileLocations=[];var u,h=Object(s.a)(this.libraryFileLocations);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.libraryFileLocations.push(v.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.libraryFilePositions)){e.libraryFilePositions=[];var p,f=Object(s.a)(this.libraryFilePositions);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.libraryFilePositions.push(m.toJSON())}}catch(O){f.e(O)}finally{f.f()}}if(Array.isArray(this.libraryFilePracticeAreas)){e.libraryFilePracticeAreas=[];var y,g=Object(s.a)(this.libraryFilePracticeAreas);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.libraryFilePracticeAreas.push(b.toJSON())}}catch(O){g.e(O)}finally{g.f()}}if(Array.isArray(this.settings)){e.settings=[];var S,E=Object(s.a)(this.settings);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.settings.push(I.toJSON())}}catch(O){E.e(O)}finally{E.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bl=function(){function e(t){if(Object(l.a)(this,e),this.levelId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sl=function(){function e(t){if(Object(l.a)(this,e),this.files=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.files)){this.files=[];var t,i=Object(s.a)(e.files);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.files.push(gl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.files)){e.files=[];var t,i=Object(s.a)(this.files);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.files.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),El=function(){function e(t){if(Object(l.a)(this,e),this.locationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Il=function(){function e(t){if(Object(l.a)(this,e),this.files=void 0,this.recordCount=void 0,this.activeFile=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.files)){this.files=[];var t,i=Object(s.a)(e.files);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.files.push(gl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount,this.activeFile=e.activeFile}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.files)){e.files=[];var t,i=Object(s.a)(this.files);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.files.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e.activeFile=this.activeFile,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ol=function(){function e(t){if(Object(l.a)(this,e),this.positionId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cl=function(){function e(t){if(Object(l.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xl=function(){function e(t){if(Object(l.a)(this,e),this.libraryFileSettingId=void 0,this.libraryFileSettingType=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueChar=void 0,this.valueOption=void 0,this.libraryFileId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.libraryFileSettingId=e.libraryFileSettingId,this.libraryFileSettingType=e.libraryFileSettingType,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueChar=e.valueChar,this.valueOption=e.valueOption,this.libraryFileId=e.libraryFileId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).libraryFileSettingId=this.libraryFileSettingId,e.libraryFileSettingType=this.libraryFileSettingType,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e.libraryFileId=this.libraryFileId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.EnableCustomVideoSetting=1]="EnableCustomVideoSetting",e[e.EnableSeekbar=2]="EnableSeekbar",e[e.EnableRewind=3]="EnableRewind",e[e.EnableFastForward=4]="EnableFastForward"}(vl||(vl={}));var jl,wl=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.complianceStatusValue=void 0,this.periodLabel=void 0,this.isLocked=void 0,this.lockedBy=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.stateBarOrganization=void 0,this.reportURL=void 0,this.userSubLicenseCompliancePeriod=void 0,this.complianceStatusEnum=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.complianceStatusValue=e.complianceStatusValue,this.periodLabel=e.periodLabel,this.isLocked=e.isLocked,this.lockedBy=e.lockedBy,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.stateBarOrganization=e.stateBarOrganization,this.reportURL=e.reportURL,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?Ih.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.complianceStatusEnum=e.complianceStatusEnum)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.complianceStatusValue=this.complianceStatusValue,e.periodLabel=this.periodLabel,e.isLocked=this.isLocked,e.lockedBy=this.lockedBy,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.stateBarOrganization=this.stateBarOrganization,e.reportURL=this.reportURL,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.complianceStatusEnum=this.complianceStatusEnum,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pl=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseCreditId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseCreditId=e.licenseCreditId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseCreditId=this.licenseCreditId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tl=function(){function e(t){if(Object(l.a)(this,e),this.creditId=void 0,this.name=void 0,this.isArchived=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.name=e.name,this.isArchived=e.isArchived)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.name=this.name,e.isArchived=this.isArchived,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Al=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.name=void 0,this.shortName=void 0,this.originalName=void 0,this.originalState=void 0,this.accreditationTypeId=void 0,this.industryId=void 0,this.isInFirm=void 0,this.link=void 0,this.parentLicenseId=void 0,this.isPlaceholder=void 0,this.isNonMandatory=void 0,this.isNasbaMappingAllowed=void 0,this.jurisdictionReportGuid=void 0,this.firmLicense=void 0,this.fields=void 0,this.licenseCredits=void 0,this.licenseProperties=void 0,this.licenseProfileSettings=void 0,this.rulesHistory=void 0,this.subLicense=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.licenseId=e.licenseId,this.name=e.name,this.shortName=e.shortName,this.originalName=e.originalName,this.originalState=e.originalState,this.accreditationTypeId=e.accreditationTypeId,this.industryId=e.industryId,this.isInFirm=e.isInFirm,this.link=e.link,this.parentLicenseId=e.parentLicenseId,this.isPlaceholder=e.isPlaceholder,this.isNonMandatory=e.isNonMandatory,this.isNasbaMappingAllowed=e.isNasbaMappingAllowed,this.jurisdictionReportGuid=e.jurisdictionReportGuid,this.firmLicense=e.firmLicense?sa.fromJS(e.firmLicense):void 0,Array.isArray(e.fields)){this.fields=[];var t,i=Object(s.a)(e.fields);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.fields.push(kl.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.licenseCredits)){this.licenseCredits=[];var n,a=Object(s.a)(e.licenseCredits);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.licenseCredits.push(Tl.fromJS(o))}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.licenseProperties)){this.licenseProperties=[];var l,c=Object(s.a)(e.licenseProperties);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.licenseProperties.push(Rl.fromJS(d))}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.licenseProfileSettings)){this.licenseProfileSettings=[];var u,h=Object(s.a)(e.licenseProfileSettings);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.licenseProfileSettings.push(Bl.fromJS(v))}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.rulesHistory)){this.rulesHistory=[];var p,f=Object(s.a)(e.rulesHistory);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.rulesHistory.push(Bd.fromJS(m))}}catch(y){f.e(y)}finally{f.f()}}this.subLicense=e.subLicense?Oh.fromJS(e.subLicense):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.name=this.name,e.shortName=this.shortName,e.originalName=this.originalName,e.originalState=this.originalState,e.accreditationTypeId=this.accreditationTypeId,e.industryId=this.industryId,e.isInFirm=this.isInFirm,e.link=this.link,e.parentLicenseId=this.parentLicenseId,e.isPlaceholder=this.isPlaceholder,e.isNonMandatory=this.isNonMandatory,e.isNasbaMappingAllowed=this.isNasbaMappingAllowed,e.jurisdictionReportGuid=this.jurisdictionReportGuid,e.firmLicense=this.firmLicense?this.firmLicense.toJSON():void 0,Array.isArray(this.fields)){e.fields=[];var t,i=Object(s.a)(this.fields);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.fields.push(r.toJSON())}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.licenseCredits)){e.licenseCredits=[];var n,a=Object(s.a)(this.licenseCredits);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.licenseCredits.push(o.toJSON())}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.licenseProperties)){e.licenseProperties=[];var l,c=Object(s.a)(this.licenseProperties);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.licenseProperties.push(d.toJSON())}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.licenseProfileSettings)){e.licenseProfileSettings=[];var u,h=Object(s.a)(this.licenseProfileSettings);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.licenseProfileSettings.push(v.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.rulesHistory)){e.rulesHistory=[];var p,f=Object(s.a)(this.rulesHistory);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.rulesHistory.push(m.toJSON())}}catch(y){f.e(y)}finally{f.f()}}return e.subLicense=this.subLicense?this.subLicense.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nl=function(){function e(t){if(Object(l.a)(this,e),this.label=void 0,this.fieldId=void 0,this.fieldType=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueDateRangeStart=void 0,this.valueDateRangeEnd=void 0,this.sequenceNumber=void 0,this.listId=void 0,this.isCascading=void 0,this.groupName=void 0,this.specializationOptions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.label=e.label,this.fieldId=e.fieldId,this.fieldType=e.fieldType,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueDateRangeStart=e.valueDateRangeStart?new Date(e.valueDateRangeStart.toString()):void 0,this.valueDateRangeEnd=e.valueDateRangeEnd?new Date(e.valueDateRangeEnd.toString()):void 0,this.sequenceNumber=e.sequenceNumber,this.listId=e.listId,this.isCascading=e.isCascading,this.groupName=e.groupName,Array.isArray(e.specializationOptions))){this.specializationOptions=[];var t,i=Object(s.a)(e.specializationOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.specializationOptions.push(vh.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).label=this.label,e.fieldId=this.fieldId,e.fieldType=this.fieldType,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueDateRangeStart=this.valueDateRangeStart?this.valueDateRangeStart.toISOString():void 0,e.valueDateRangeEnd=this.valueDateRangeEnd?this.valueDateRangeEnd.toISOString():void 0,e.sequenceNumber=this.sequenceNumber,e.listId=this.listId,e.isCascading=this.isCascading,e.groupName=this.groupName,Array.isArray(this.specializationOptions)){e.specializationOptions=[];var t,i=Object(s.a)(this.specializationOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.specializationOptions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kl=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.fieldName=void 0,this.fieldDescription=void 0,this.fieldLabel=void 0,this.sequenceNumber=void 0,this.profileId=void 0,this.typeId=void 0,this.isRequired=void 0,this.fieldCode=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.fieldName=e.fieldName,this.fieldDescription=e.fieldDescription,this.fieldLabel=e.fieldLabel,this.sequenceNumber=e.sequenceNumber,this.profileId=e.profileId,this.typeId=e.typeId,this.isRequired=e.isRequired,this.fieldCode=e.fieldCode)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.fieldName=this.fieldName,e.fieldDescription=this.fieldDescription,e.fieldLabel=this.fieldLabel,e.sequenceNumber=this.sequenceNumber,e.profileId=this.profileId,e.typeId=this.typeId,e.isRequired=this.isRequired,e.fieldCode=this.fieldCode,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dl=function(){function e(t){if(Object(l.a)(this,e),this.licenseFields=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.licenseFields)){this.licenseFields=[];var t,i=Object(s.a)(e.licenseFields);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseFields.push(kl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseFields)){e.licenseFields=[];var t,i=Object(s.a)(this.licenseFields);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseFields.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ll=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.name=void 0,this.isSubLicense=void 0,this.isLicenseNotDisplayed=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.name=e.name,this.isSubLicense=e.isSubLicense,this.isLicenseNotDisplayed=e.isLicenseNotDisplayed)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.name=this.name,e.isSubLicense=this.isSubLicense,e.isLicenseNotDisplayed=this.isLicenseNotDisplayed,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jl=function(){function e(t){if(Object(l.a)(this,e),this.licenseIndex=void 0,this.licenseList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.licenseIndex=e.licenseIndex,Array.isArray(e.licenseList))){this.licenseList=[];var t,i=Object(s.a)(e.licenseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseList.push(Ll.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseIndex=this.licenseIndex,Array.isArray(this.licenseList)){e.licenseList=[];var t,i=Object(s.a)(this.licenseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fl=function(){function e(t){if(Object(l.a)(this,e),this.licenses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenses)){this.licenses=[];var t,i=Object(s.a)(e.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenses.push(Al.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenses)){e.licenses=[];var t,i=Object(s.a)(this.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bl=function(){function e(t){if(Object(l.a)(this,e),this.licenseProfileSettingId=void 0,this.licenseId=void 0,this.profileId=void 0,this.typeId=void 0,this.key=void 0,this.name=void 0,this.type=void 0,this.validation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseProfileSettingId=e.licenseProfileSettingId,this.licenseId=e.licenseId,this.profileId=e.profileId,this.typeId=e.typeId,this.key=e.key,this.name=e.name,this.type=e.type,this.validation=e.validation)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseProfileSettingId=this.licenseProfileSettingId,e.licenseId=this.licenseId,e.profileId=this.profileId,e.typeId=this.typeId,e.key=this.key,e.name=this.name,e.type=this.type,e.validation=this.validation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rl=function(){function e(t){if(Object(l.a)(this,e),this.propertyId=void 0,this.label=void 0,this.typeId=void 0,this.licensePropertyGroupId=void 0,this.licensePropertyGroupLabel=void 0,this.isUserLevelAdjustable=void 0,this.isForInstructorValidation=void 0,this.isDisplayedInThirdPartyCourse=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.propertyId=e.propertyId,this.label=e.label,this.typeId=e.typeId,this.licensePropertyGroupId=e.licensePropertyGroupId,this.licensePropertyGroupLabel=e.licensePropertyGroupLabel,this.isUserLevelAdjustable=e.isUserLevelAdjustable,this.isForInstructorValidation=e.isForInstructorValidation,this.isDisplayedInThirdPartyCourse=e.isDisplayedInThirdPartyCourse)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).propertyId=this.propertyId,e.label=this.label,e.typeId=this.typeId,e.licensePropertyGroupId=this.licensePropertyGroupId,e.licensePropertyGroupLabel=this.licensePropertyGroupLabel,e.isUserLevelAdjustable=this.isUserLevelAdjustable,e.isForInstructorValidation=this.isForInstructorValidation,e.isDisplayedInThirdPartyCourse=this.isDisplayedInThirdPartyCourse,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ul=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.criteriaFieldId=void 0,this.fieldTypeId=void 0,this.label=void 0,this.optionListId=void 0,this.sequenceNumber=void 0,this.searchCriteriaOptions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.licenseId=e.licenseId,this.criteriaFieldId=e.criteriaFieldId,this.fieldTypeId=e.fieldTypeId,this.label=e.label,this.optionListId=e.optionListId,this.sequenceNumber=e.sequenceNumber,Array.isArray(e.searchCriteriaOptions))){this.searchCriteriaOptions=[];var t,i=Object(s.a)(e.searchCriteriaOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteriaOptions.push(ql.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.criteriaFieldId=this.criteriaFieldId,e.fieldTypeId=this.fieldTypeId,e.label=this.label,e.optionListId=this.optionListId,e.sequenceNumber=this.sequenceNumber,Array.isArray(this.searchCriteriaOptions)){e.searchCriteriaOptions=[];var t,i=Object(s.a)(this.searchCriteriaOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteriaOptions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gl=function(){function e(t){if(Object(l.a)(this,e),this.licenseSubfilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenseSubfilters)){this.licenseSubfilters=[];var t,i=Object(s.a)(e.licenseSubfilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseSubfilters.push(Ul.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseSubfilters)){e.licenseSubfilters=[];var t,i=Object(s.a)(this.licenseSubfilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseSubfilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ql=function(){function e(t){if(Object(l.a)(this,e),this.optionListId=void 0,this.optionId=void 0,this.label=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.optionListId=e.optionListId,this.optionId=e.optionId,this.label=e.label,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).optionListId=this.optionListId,e.optionId=this.optionId,e.label=this.label,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Approved=1]="Approved",e[e.Pending=2]="Pending",e[e.Denied=3]="Denied"}(jl||(jl={}));var Ml,zl=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.industryId=void 0,this.summary=void 0,this.stateBarOrganization=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.industryId=e.industryId,this.summary=e.summary,this.stateBarOrganization=e.stateBarOrganization)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.industryId=this.industryId,e.summary=this.summary,e.stateBarOrganization=this.stateBarOrganization,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wl=function(){function e(t){if(Object(l.a)(this,e),this.licenseSummaries=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenseSummaries)){this.licenseSummaries=[];var t,i=Object(s.a)(e.licenseSummaries);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseSummaries.push(zl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseSummaries)){e.licenseSummaries=[];var t,i=Object(s.a)(this.licenseSummaries);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseSummaries.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vl=function(){function e(t){if(Object(l.a)(this,e),this.locationId=void 0,this.name=void 0,this.address=void 0,this.code=void 0,this.city=void 0,this.countryId=void 0,this.stateId=void 0,this.zip=void 0,this.telephone=void 0,this.timezoneId=void 0,this.isActive=void 0,this.isFirmOffice=void 0,this.userCount=void 0,this.sessionCount=void 0,this.countyId=void 0,this.country=void 0,this.state=void 0,this.timezone=void 0,this.rooms=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.locationId=e.locationId,this.name=e.name,this.address=e.address,this.code=e.code,this.city=e.city,this.countryId=e.countryId,this.stateId=e.stateId,this.zip=e.zip,this.telephone=e.telephone,this.timezoneId=e.timezoneId,this.isActive=e.isActive,this.isFirmOffice=e.isFirmOffice,this.userCount=e.userCount,this.sessionCount=e.sessionCount,this.countyId=e.countyId,this.country=e.country,this.state=e.state,this.timezone=e.timezone,Array.isArray(e.rooms))){this.rooms=[];var t,i=Object(s.a)(e.rooms);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rooms.push(Jd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e.address=this.address,e.code=this.code,e.city=this.city,e.countryId=this.countryId,e.stateId=this.stateId,e.zip=this.zip,e.telephone=this.telephone,e.timezoneId=this.timezoneId,e.isActive=this.isActive,e.isFirmOffice=this.isFirmOffice,e.userCount=this.userCount,e.sessionCount=this.sessionCount,e.countyId=this.countyId,e.country=this.country,e.state=this.state,e.timezone=this.timezone,Array.isArray(this.rooms)){e.rooms=[];var t,i=Object(s.a)(this.rooms);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rooms.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_l=function(){function e(t){if(Object(l.a)(this,e),this.locations=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.locations)){this.locations=[];var t,i=Object(s.a)(e.locations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.locations.push(Vl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.locations)){e.locations=[];var t,i=Object(s.a)(this.locations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.locations.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.None=0]="None",e[e.Video=1]="Video",e[e.Audio=2]="Audio",e[e.LearningPackage=3]="LearningPackage",e[e.Url=4]="Url"}(Ml||(Ml={}));var Yl,$l=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantDetails=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipantDetails)){this.sessionParticipantDetails=[];var t,i=Object(s.a)(e.sessionParticipantDetails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantDetails.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.userId=e.userId}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipantDetails)){e.sessionParticipantDetails=[];var t,i=Object(s.a)(this.sessionParticipantDetails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantDetails.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hl=function(){function e(t){if(Object(l.a)(this,e),this.firmName=void 0,this.reportName=void 0,this.courseId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.userOnDemandSessionId=void 0,this.sessionMediaFileId=void 0,this.userId=void 0,this.lastName=void 0,this.firstName=void 0,this.userLicenses=void 0,this.courseTitle=void 0,this.multimediaTitle=void 0,this.duration=void 0,this.viewStartDate=void 0,this.viewStartTime=void 0,this.viewEndDate=void 0,this.viewEndTime=void 0,this.viewEndSortBy=void 0,this.viewStatus=void 0,this.credits=void 0,this.registeredBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.firmName=e.firmName,this.reportName=e.reportName,this.courseId=e.courseId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.userOnDemandSessionId=e.userOnDemandSessionId,this.sessionMediaFileId=e.sessionMediaFileId,this.userId=e.userId,this.lastName=e.lastName,this.firstName=e.firstName,this.userLicenses=e.userLicenses,this.courseTitle=e.courseTitle,this.multimediaTitle=e.multimediaTitle,this.duration=e.duration,this.viewStartDate=e.viewStartDate,this.viewStartTime=e.viewStartTime,this.viewEndDate=e.viewEndDate,this.viewEndTime=e.viewEndTime,this.viewEndSortBy=e.viewEndSortBy,this.viewStatus=e.viewStatus,this.credits=e.credits,this.registeredBy=e.registeredBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmName=this.firmName,e.reportName=this.reportName,e.courseId=this.courseId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.userOnDemandSessionId=this.userOnDemandSessionId,e.sessionMediaFileId=this.sessionMediaFileId,e.userId=this.userId,e.lastName=this.lastName,e.firstName=this.firstName,e.userLicenses=this.userLicenses,e.courseTitle=this.courseTitle,e.multimediaTitle=this.multimediaTitle,e.duration=this.duration,e.viewStartDate=this.viewStartDate,e.viewStartTime=this.viewStartTime,e.viewEndDate=this.viewEndDate,e.viewEndTime=this.viewEndTime,e.viewEndSortBy=this.viewEndSortBy,e.viewStatus=this.viewStatus,e.credits=this.credits,e.registeredBy=this.registeredBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kl=function(){function e(t){if(Object(l.a)(this,e),this.reports=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.reports)){this.reports=[];var t,i=Object(s.a)(e.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.reports.push(Hl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.reports)){e.reports=[];var t,i=Object(s.a)(this.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.reports.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ql=function(){function e(t){if(Object(l.a)(this,e),this.certificateDetails=void 0,this.licenseId=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.certificateDetails=e.certificateDetails?Rt.fromJS(e.certificateDetails):void 0,this.licenseId=e.licenseId,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).certificateDetails=this.certificateDetails?this.certificateDetails.toJSON():void 0,e.licenseId=this.licenseId,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zl=function(){function e(t){if(Object(l.a)(this,e),this.sessionDetails=void 0,this.licenseId=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionDetails=e.sessionDetails?ah.fromJS(e.sessionDetails):void 0,this.licenseId=e.licenseId,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionDetails=this.sessionDetails?this.sessionDetails.toJSON():void 0,e.licenseId=this.licenseId,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xl=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.name=void 0,this.expirationDate=void 0,this.licenseStatus=void 0,this.sessionLicenseCredits=void 0,this.sessionLicenseProperties=void 0,this.sessionUsersWithRetro=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.licenseId=e.licenseId,this.name=e.name,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.licenseStatus=e.licenseStatus,Array.isArray(e.sessionLicenseCredits)){this.sessionLicenseCredits=[];var t,i=Object(s.a)(e.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenseCredits.push(xu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var n,a=Object(s.a)(e.sessionLicenseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenseProperties.push(Pu.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.sessionUsersWithRetro)){this.sessionUsersWithRetro=[];var l,c=Object(s.a)(e.sessionUsersWithRetro);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionUsersWithRetro.push(ch.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.name=this.name,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.licenseStatus=this.licenseStatus,Array.isArray(this.sessionLicenseCredits)){e.sessionLicenseCredits=[];var t,i=Object(s.a)(this.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenseCredits.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.sessionLicenseProperties)){e.sessionLicenseProperties=[];var n,a=Object(s.a)(this.sessionLicenseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenseProperties.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.sessionUsersWithRetro)){e.sessionUsersWithRetro=[];var l,c=Object(s.a)(this.sessionUsersWithRetro);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionUsersWithRetro.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ec=function(){function e(t){if(Object(l.a)(this,e),this.multiSessionLicense=void 0,this.showWarningMessage=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.multiSessionLicense)){this.multiSessionLicense=[];var t,i=Object(s.a)(e.multiSessionLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.multiSessionLicense.push(Xl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.showWarningMessage=e.showWarningMessage}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.multiSessionLicense)){e.multiSessionLicense=[];var t,i=Object(s.a)(this.multiSessionLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.multiSessionLicense.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.showWarningMessage=this.showWarningMessage,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tc=function(){function e(t){if(Object(l.a)(this,e),this.countyId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.countyId=e.countyId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).countyId=this.countyId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.InProgress=1]="InProgress",e[e.Done=2]="Done",e[e.Disqualified=3]="Disqualified"}(Yl||(Yl={}));var ic,rc=function(){function e(t){if(Object(l.a)(this,e),this.dateTaken=void 0,this.title=void 0,this.sessionTitle=void 0,this.sessionTypeId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.sessionParticipantId=void 0,this.availableCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.title=e.title,this.sessionTitle=e.sessionTitle,this.sessionTypeId=e.sessionTypeId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.sessionParticipantId=e.sessionParticipantId,Array.isArray(e.availableCredits))){this.availableCredits=[];var t,i=Object(s.a)(e.availableCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.availableCredits.push(Ct.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.title=this.title,e.sessionTitle=this.sessionTitle,e.sessionTypeId=this.sessionTypeId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.sessionParticipantId=this.sessionParticipantId,Array.isArray(this.availableCredits)){e.availableCredits=[];var t,i=Object(s.a)(this.availableCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.availableCredits.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nc=function(){function e(t){if(Object(l.a)(this,e),this.creditId=void 0,this.creditName=void 0,this.parentCreditId=void 0,this.level=void 0,this.sequenceNumber=void 0,this.creditsNeeded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.creditName=e.creditName,this.parentCreditId=e.parentCreditId,this.level=e.level,this.sequenceNumber=e.sequenceNumber,this.creditsNeeded=e.creditsNeeded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.creditName=this.creditName,e.parentCreditId=this.parentCreditId,e.level=this.level,e.sequenceNumber=this.sequenceNumber,e.creditsNeeded=this.creditsNeeded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ac=function(){function e(t){if(Object(l.a)(this,e),this.dateTaken=void 0,this.title=void 0,this.sessionTitle=void 0,this.sessionTypeId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.sessionParticipantId=void 0,this.retroCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.title=e.title,this.sessionTitle=e.sessionTitle,this.sessionTypeId=e.sessionTypeId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.sessionParticipantId=e.sessionParticipantId,Array.isArray(e.retroCredits))){this.retroCredits=[];var t,i=Object(s.a)(e.retroCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.retroCredits.push(jd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.title=this.title,e.sessionTitle=this.sessionTitle,e.sessionTypeId=this.sessionTypeId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.sessionParticipantId=this.sessionParticipantId,Array.isArray(this.retroCredits)){e.retroCredits=[];var t,i=Object(s.a)(this.retroCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.retroCredits.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Dashboard=1e3]="Dashboard",e[e.Users=2e3]="Users",e[e.Courses=3e3]="Courses",e[e.Sessions=4e3]="Sessions",e[e.Activities=5e3]="Activities",e[e.LearningPlans=6e3]="LearningPlans",e[e.Compliance=7e3]="Compliance",e[e.Reports=8e3]="Reports",e[e.Library=9e3]="Library",e[e.ConfigurationsSettings=1e4]="ConfigurationsSettings",e[e.ConfigurationsTemplates=11e3]="ConfigurationsTemplates",e[e.ConfigurationsDataManagement=12e3]="ConfigurationsDataManagement",e[e.ConfigurationsSecurity=13e3]="ConfigurationsSecurity",e[e.ConfigurationsLogs=14e3]="ConfigurationsLogs",e[e.PortalCourses=14001]="PortalCourses",e[e.PortalCompliance=14002]="PortalCompliance",e[e.PortalLearningPlans=14003]="PortalLearningPlans",e[e.PortalTranscripts=14004]="PortalTranscripts",e[e.PortalSettings=14005]="PortalSettings",e[e.PortalInstructorView=14006]="PortalInstructorView",e[e.PortalTeamView=14007]="PortalTeamView",e[e.PortalDevelopmentPlans=14100]="PortalDevelopmentPlans",e[e.PortalDevelopmentRecords=14101]="PortalDevelopmentRecords",e[e.PortalDevelopmentRecordLearningNeeds=14102]="PortalDevelopmentRecordLearningNeeds",e[e.PortalDevelopmentOverallReflections=14103]="PortalDevelopmentOverallReflections",e[e.Evaluations=15e3]="Evaluations"}(ic||(ic={}));var oc,sc=function(){function e(t){if(Object(l.a)(this,e),this.targetPermissionSetId=void 0,this.targetValue=void 0,this.sourceValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.targetPermissionSetId=e.targetPermissionSetId,this.targetValue=e.targetValue,this.sourceValue=e.sourceValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).targetPermissionSetId=this.targetPermissionSetId,e.targetValue=this.targetValue,e.sourceValue=this.sourceValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lc=function(){function e(t){if(Object(l.a)(this,e),this.permissionSetId=void 0,this.name=void 0,this.description=void 0,this.category=void 0,this.dependencies=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.permissionSetId=e.permissionSetId,this.name=e.name,this.description=e.description,this.category=e.category,Array.isArray(e.dependencies))){this.dependencies=[];var t,i=Object(s.a)(e.dependencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.dependencies.push(sc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).permissionSetId=this.permissionSetId,e.name=this.name,e.description=this.description,e.category=this.category,Array.isArray(this.dependencies)){e.dependencies=[];var t,i=Object(s.a)(this.dependencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.dependencies.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotSet=0]="NotSet",e[e.ViewUsers=2001]="ViewUsers",e[e.ManageUsers=2002]="ManageUsers",e[e.DeleteUsers=2003]="DeleteUsers",e[e.ExportUsers=2005]="ExportUsers",e[e.ViewCourses=3001]="ViewCourses",e[e.ManageCourses=3002]="ManageCourses",e[e.DeleteCourses=3003]="DeleteCourses",e[e.ExportCourses=3005]="ExportCourses",e[e.ViewSessions=4001]="ViewSessions",e[e.ManageSessions=4002]="ManageSessions",e[e.DeleteSessions=4003]="DeleteSessions",e[e.ExportSessions=4005]="ExportSessions",e[e.ViewActivities=5001]="ViewActivities",e[e.ManageActivities=5002]="ManageActivities",e[e.DeleteActivities=5003]="DeleteActivities",e[e.ExportActivities=5004]="ExportActivities",e[e.ViewLearningPlans=6001]="ViewLearningPlans",e[e.ManageLearningPlans=6002]="ManageLearningPlans",e[e.DeleteLearningPlans=6003]="DeleteLearningPlans",e[e.ExportLearningPlans=6007]="ExportLearningPlans",e[e.ViewLibrary=9001]="ViewLibrary",e[e.ManageLibrary=9002]="ManageLibrary",e[e.DeleteLibrary=9003]="DeleteLibrary",e[e.ExportLibrary=9004]="ExportLibrary",e[e.DownloadVideo=9005]="DownloadVideo",e[e.ViewSettings=10001]="ViewSettings",e[e.ManageSettings=10002]="ManageSettings",e[e.ViewTemplates=11001]="ViewTemplates",e[e.ManageTemplates=11002]="ManageTemplates",e[e.DeleteTemplates=11003]="DeleteTemplates",e[e.ViewDataManagement=12001]="ViewDataManagement",e[e.ManageDataManagement=12002]="ManageDataManagement",e[e.DeleteDataManagement=12003]="DeleteDataManagement",e[e.ExportDataManagement=12005]="ExportDataManagement",e[e.ViewSecurityUser=13001]="ViewSecurityUser",e[e.ManageSecurityUser=13002]="ManageSecurityUser",e[e.ExportSecurityUsers=13007]="ExportSecurityUsers",e[e.ViewRoles=13101]="ViewRoles",e[e.ManageRoles=13102]="ManageRoles",e[e.DeleteRoles=13103]="DeleteRoles",e[e.ExportRoles=13110]="ExportRoles",e[e.ViewSecurityGroups=13201]="ViewSecurityGroups",e[e.ManageSecurityGroups=13202]="ManageSecurityGroups",e[e.DeleteSecurityGroups=13203]="DeleteSecurityGroups",e[e.ExportSecurityGroups=13206]="ExportSecurityGroups",e[e.ViewApiClients=13301]="ViewApiClients",e[e.ManageApiClients=13302]="ManageApiClients",e[e.DeleteApiClients=13303]="DeleteApiClients",e[e.ViewEmailLogs=14001]="ViewEmailLogs",e[e.ManageEmailLogs=14002]="ManageEmailLogs",e[e.ViewIntegrationLogs=14003]="ViewIntegrationLogs",e[e.ManageIntegrationLogs=14004]="ManageIntegrationLogs",e[e.ViewApplicationLogs=14005]="ViewApplicationLogs",e[e.ViewApiLogs=14007]="ViewApiLogs",e[e.ViewImportLogs=14008]="ViewImportLogs",e[e.ManageImportLogs=14009]="ManageImportLogs",e[e.ViewPortalCourseCatalog=14010]="ViewPortalCourseCatalog",e[e.ViewPortalCourseCalendar=14011]="ViewPortalCourseCalendar",e[e.ViewPortalUserCourses=14012]="ViewPortalUserCourses",e[e.ViewPortalUserCompliance=14013]="ViewPortalUserCompliance",e[e.ViewPortalLearningPlans=14014]="ViewPortalLearningPlans",e[e.ViewPortalTranscripts=14015]="ViewPortalTranscripts",e[e.ViewPortalUserPreference=14016]="ViewPortalUserPreference",e[e.ViewPortalMyCourses=14017]="ViewPortalMyCourses",e[e.ViewPortalInstructorView=14018]="ViewPortalInstructorView",e[e.ViewPortalTeamView=14019]="ViewPortalTeamView",e[e.ManagePortalTeam=14020]="ManagePortalTeam",e[e.ImportUsers=15e3]="ImportUsers",e[e.ImportSessions=15001]="ImportSessions",e[e.ImportDataManagement=15002]="ImportDataManagement",e[e.ImportCourses=15003]="ImportCourses",e[e.ImportLearningPlan=15004]="ImportLearningPlan",e[e.ImportLibrary=15005]="ImportLibrary",e[e.ImportEvaluation=15006]="ImportEvaluation",e[e.ViewCompetencyFrameworks=16e3]="ViewCompetencyFrameworks",e[e.ManageCompetencyFrameworks=16001]="ManageCompetencyFrameworks",e[e.DeleteCompetencyFrameworks=16002]="DeleteCompetencyFrameworks",e[e.ViewPortalDevelopmentPlans=17100]="ViewPortalDevelopmentPlans",e[e.ManagePortalDevelopmentPlans=17101]="ManagePortalDevelopmentPlans",e[e.DeletePortalDevelopmentPlans=17102]="DeletePortalDevelopmentPlans",e[e.ViewPortalDevelopmentRecords=18e3]="ViewPortalDevelopmentRecords",e[e.ManagePortalDevelopmentRecords=18001]="ManagePortalDevelopmentRecords",e[e.DeletePortalDevelopmentRecords=18002]="DeletePortalDevelopmentRecords",e[e.ViewPortalDevelopmentRecordLearningNeeds=19e3]="ViewPortalDevelopmentRecordLearningNeeds",e[e.ManagePortalDevelopmentRecordLearningNeeds=19001]="ManagePortalDevelopmentRecordLearningNeeds",e[e.DeletePortalDevelopmentRecordLearningNeeds=19002]="DeletePortalDevelopmentRecordLearningNeeds",e[e.ManagePortalLearningPlans=19003]="ManagePortalLearningPlans",e[e.DeletePortalLearningPlans=19004]="DeletePortalLearningPlans",e[e.ViewPortalDevelopmentOverallReflections=2e4]="ViewPortalDevelopmentOverallReflections",e[e.ManagePortalDevelopmentOverallReflections=20001]="ManagePortalDevelopmentOverallReflections"}(oc||(oc={}));var cc,dc=function(){function e(t){if(Object(l.a)(this,e),this.permissionSets=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.permissionSets)){this.permissionSets=[];var t,i=Object(s.a)(e.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.permissionSets.push(lc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.permissionSets)){e.permissionSets=[];var t,i=Object(s.a)(this.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.permissionSets.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),uc=function(){function e(t){if(Object(l.a)(this,e),this.headerType=void 0,this.headerText=void 0,this.color=void 0,this.logoUrl=void 0,this.defaultLandingScreen=void 0,this.forLicensesHeldOnly=void 0,this.industryId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.headerType=e.headerType,this.headerText=e.headerText,this.color=e.color,this.logoUrl=e.logoUrl,this.defaultLandingScreen=e.defaultLandingScreen,this.forLicensesHeldOnly=e.forLicensesHeldOnly,this.industryId=e.industryId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).headerType=this.headerType,e.headerText=this.headerText,e.color=this.color,e.logoUrl=this.logoUrl,e.defaultLandingScreen=this.defaultLandingScreen,e.forLicensesHeldOnly=this.forLicensesHeldOnly,e.industryId=this.industryId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hc=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.headerType=void 0,this.headerText=void 0,this.color=void 0,this.logoUrl=void 0,this.thumbnailUrl=void 0,this.isEnabled=void 0,this.defaultLandingScreen=void 0,this.forLicensesHeldOnly=void 0,this.industryId=void 0,this.portalScreenInformations=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.roleId=e.roleId,this.headerType=e.headerType,this.headerText=e.headerText,this.color=e.color,this.logoUrl=e.logoUrl,this.thumbnailUrl=e.thumbnailUrl,this.isEnabled=e.isEnabled,this.defaultLandingScreen=e.defaultLandingScreen,this.forLicensesHeldOnly=e.forLicensesHeldOnly,this.industryId=e.industryId,Array.isArray(e.portalScreenInformations))){this.portalScreenInformations=[];var t,i=Object(s.a)(e.portalScreenInformations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.portalScreenInformations.push(Sc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,e.headerType=this.headerType,e.headerText=this.headerText,e.color=this.color,e.logoUrl=this.logoUrl,e.thumbnailUrl=this.thumbnailUrl,e.isEnabled=this.isEnabled,e.defaultLandingScreen=this.defaultLandingScreen,e.forLicensesHeldOnly=this.forLicensesHeldOnly,e.industryId=this.industryId,Array.isArray(this.portalScreenInformations)){e.portalScreenInformations=[];var t,i=Object(s.a)(this.portalScreenInformations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.portalScreenInformations.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vc=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.title=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timeZone=void 0,this.location=void 0,this.room=void 0,this.sessionParticipantStatusId=void 0,this.isWaitlisted=void 0,this.isInstructor=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.title=e.title,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timeZone=e.timeZone,this.location=e.location,this.room=e.room,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.isWaitlisted=e.isWaitlisted,this.isInstructor=e.isInstructor)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.title=this.title,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timeZone=this.timeZone,e.location=this.location,e.room=this.room,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.isWaitlisted=this.isWaitlisted,e.isInstructor=this.isInstructor,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pc=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(vc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fc=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.periodFrom=void 0,this.periodFromCourse=void 0,this.periodTo=void 0,this.periodToDisplay=void 0,this.periodLabel=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.complianceStatusId=void 0,this.isSubLicensePeriod=void 0,this.isPriorPeriodDeficient=void 0,this.compliancePeriodTotals=void 0,this.compliancePeriodAdditionalRequirements=void 0,this.compliancePeriodChartNotes=void 0,this.compliancePeriodRestrictions=void 0,this.compliancePeriodSubjectAreas=void 0,this.compliancePeriodCourseHistory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userLicenseComplianceId=e.userLicenseComplianceId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.periodLabel=e.periodLabel,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.complianceStatusId=e.complianceStatusId,this.isSubLicensePeriod=e.isSubLicensePeriod,this.isPriorPeriodDeficient=e.isPriorPeriodDeficient,Array.isArray(e.compliancePeriodTotals)){this.compliancePeriodTotals=[];var t,i=Object(s.a)(e.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodTotals.push(yi.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.compliancePeriodAdditionalRequirements)){this.compliancePeriodAdditionalRequirements=[];var n,a=Object(s.a)(e.compliancePeriodAdditionalRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.compliancePeriodAdditionalRequirements.push(ii.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.compliancePeriodChartNotes)){this.compliancePeriodChartNotes=[];var l,c=Object(s.a)(e.compliancePeriodChartNotes);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.compliancePeriodChartNotes.push(ri.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.compliancePeriodRestrictions)){this.compliancePeriodRestrictions=[];var u,h=Object(s.a)(e.compliancePeriodRestrictions);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.compliancePeriodRestrictions.push(fi.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var p,f=Object(s.a)(e.compliancePeriodSubjectAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.compliancePeriodSubjectAreas.push(mi.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.compliancePeriodCourseHistory)){this.compliancePeriodCourseHistory=[];var y,g=Object(s.a)(e.compliancePeriodCourseHistory);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.compliancePeriodCourseHistory.push(pi.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.periodLabel=this.periodLabel,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.complianceStatusId=this.complianceStatusId,e.isSubLicensePeriod=this.isSubLicensePeriod,e.isPriorPeriodDeficient=this.isPriorPeriodDeficient,Array.isArray(this.compliancePeriodTotals)){e.compliancePeriodTotals=[];var t,i=Object(s.a)(this.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodTotals.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.compliancePeriodAdditionalRequirements)){e.compliancePeriodAdditionalRequirements=[];var n,a=Object(s.a)(this.compliancePeriodAdditionalRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.compliancePeriodAdditionalRequirements.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.compliancePeriodChartNotes)){e.compliancePeriodChartNotes=[];var l,c=Object(s.a)(this.compliancePeriodChartNotes);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.compliancePeriodChartNotes.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.compliancePeriodRestrictions)){e.compliancePeriodRestrictions=[];var u,h=Object(s.a)(this.compliancePeriodRestrictions);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.compliancePeriodRestrictions.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var p,f=Object(s.a)(this.compliancePeriodSubjectAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.compliancePeriodSubjectAreas.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.compliancePeriodCourseHistory)){e.compliancePeriodCourseHistory=[];var y,g=Object(s.a)(this.compliancePeriodCourseHistory);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.compliancePeriodCourseHistory.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mc=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.title=void 0,this.sessionTypeId=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timezone=void 0,this.location=void 0,this.room=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.isOnlineLearning=void 0,this.courseTitle=void 0,this.isPublished=void 0,this.cancelledDate=void 0,this.detail=void 0,this.duration=void 0,this.sessionInstructors=void 0,this.registeredParticipantCount=void 0,this.tentativeParticipantCount=void 0,this.validatedParticipantCount=void 0,this.pendingParticipantCount=void 0,this.inProgressParticipantCount=void 0,this.disqualifiedParticipantCount=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.title=e.title,this.sessionTypeId=e.sessionTypeId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timezone=e.timezone,this.location=e.location,this.room=e.room,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isOnlineLearning=e.isOnlineLearning,this.courseTitle=e.courseTitle,this.isPublished=e.isPublished,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.detail=e.detail,this.duration=e.duration,Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var t,i=Object(s.a)(e.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionInstructors.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(this.registeredParticipantCount=e.registeredParticipantCount,this.tentativeParticipantCount=e.tentativeParticipantCount,this.validatedParticipantCount=e.validatedParticipantCount,this.pendingParticipantCount=e.pendingParticipantCount,this.inProgressParticipantCount=e.inProgressParticipantCount,this.disqualifiedParticipantCount=e.disqualifiedParticipantCount,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var l,c=Object(s.a)(e.sessionMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionMaterials.push(Du.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.title=this.title,e.sessionTypeId=this.sessionTypeId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timezone=this.timezone,e.location=this.location,e.room=this.room,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isOnlineLearning=this.isOnlineLearning,e.courseTitle=this.courseTitle,e.isPublished=this.isPublished,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.detail=this.detail,e.duration=this.duration,Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var t,i=Object(s.a)(this.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionInstructors.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(e.registeredParticipantCount=this.registeredParticipantCount,e.tentativeParticipantCount=this.tentativeParticipantCount,e.validatedParticipantCount=this.validatedParticipantCount,e.pendingParticipantCount=this.pendingParticipantCount,e.inProgressParticipantCount=this.inProgressParticipantCount,e.disqualifiedParticipantCount=this.disqualifiedParticipantCount,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var l,c=Object(s.a)(this.sessionMaterials);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionMaterials.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yc=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(mc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gc=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.enableSeekBar=void 0,this.enableMakeupDisqualifiedVideo=void 0,this.enableMakeupDisqualifiedScorm=void 0,this.enableRewind=void 0,this.enableFastForward=void 0,this.forLicensesHeldOnly=void 0,this.portalDepartmentFilterIds=void 0,this.portalLevelFilterIds=void 0,this.portalLocationFilterIds=void 0,this.portalPracticeAreaFilterIds=void 0,this.portalProviderFilterIds=void 0,this.defaultLandingScreen=void 0,this.portalCompetencyFilterIds=void 0,this.portalClassYearFilterIds=void 0,this.portalTagFilterIds=void 0,this.portalCourseFormatFilterIds=void 0,this.portalCalendarCourseFormatFilterIds=void 0,this.portalCalendarDepartmentFilterIds=void 0,this.portalCalendarLevelFilterIds=void 0,this.portalCalendarLocationFilterIds=void 0,this.portalCalendarPracticeAreaFilterIds=void 0,this.portalCalendarProviderFilterIds=void 0,this.portalCalendarCompetencyFilterIds=void 0,this.portalCalendarClassYearFilterIds=void 0,this.portalCalendarTagFilterIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.roleId=e.roleId,this.enableSeekBar=e.enableSeekBar,this.enableMakeupDisqualifiedVideo=e.enableMakeupDisqualifiedVideo,this.enableMakeupDisqualifiedScorm=e.enableMakeupDisqualifiedScorm,this.enableRewind=e.enableRewind,this.enableFastForward=e.enableFastForward,this.forLicensesHeldOnly=e.forLicensesHeldOnly,Array.isArray(e.portalDepartmentFilterIds)){this.portalDepartmentFilterIds=[];var t,i=Object(s.a)(e.portalDepartmentFilterIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.portalDepartmentFilterIds.push(r)}}catch(ie){i.e(ie)}finally{i.f()}}if(Array.isArray(e.portalLevelFilterIds)){this.portalLevelFilterIds=[];var n,a=Object(s.a)(e.portalLevelFilterIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.portalLevelFilterIds.push(o)}}catch(ie){a.e(ie)}finally{a.f()}}if(Array.isArray(e.portalLocationFilterIds)){this.portalLocationFilterIds=[];var l,c=Object(s.a)(e.portalLocationFilterIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.portalLocationFilterIds.push(d)}}catch(ie){c.e(ie)}finally{c.f()}}if(Array.isArray(e.portalPracticeAreaFilterIds)){this.portalPracticeAreaFilterIds=[];var u,h=Object(s.a)(e.portalPracticeAreaFilterIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.portalPracticeAreaFilterIds.push(v)}}catch(ie){h.e(ie)}finally{h.f()}}if(Array.isArray(e.portalProviderFilterIds)){this.portalProviderFilterIds=[];var p,f=Object(s.a)(e.portalProviderFilterIds);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.portalProviderFilterIds.push(m)}}catch(ie){f.e(ie)}finally{f.f()}}if(this.defaultLandingScreen=e.defaultLandingScreen,Array.isArray(e.portalCompetencyFilterIds)){this.portalCompetencyFilterIds=[];var y,g=Object(s.a)(e.portalCompetencyFilterIds);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.portalCompetencyFilterIds.push(b)}}catch(ie){g.e(ie)}finally{g.f()}}if(Array.isArray(e.portalClassYearFilterIds)){this.portalClassYearFilterIds=[];var S,E=Object(s.a)(e.portalClassYearFilterIds);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.portalClassYearFilterIds.push(I)}}catch(ie){E.e(ie)}finally{E.f()}}if(Array.isArray(e.portalTagFilterIds)){this.portalTagFilterIds=[];var O,C=Object(s.a)(e.portalTagFilterIds);try{for(C.s();!(O=C.n()).done;){var x=O.value;this.portalTagFilterIds.push(x)}}catch(ie){C.e(ie)}finally{C.f()}}if(Array.isArray(e.portalCourseFormatFilterIds)){this.portalCourseFormatFilterIds=[];var j,w=Object(s.a)(e.portalCourseFormatFilterIds);try{for(w.s();!(j=w.n()).done;){var P=j.value;this.portalCourseFormatFilterIds.push(P)}}catch(ie){w.e(ie)}finally{w.f()}}if(Array.isArray(e.portalCalendarCourseFormatFilterIds)){this.portalCalendarCourseFormatFilterIds=[];var T,A=Object(s.a)(e.portalCalendarCourseFormatFilterIds);try{for(A.s();!(T=A.n()).done;){var N=T.value;this.portalCalendarCourseFormatFilterIds.push(N)}}catch(ie){A.e(ie)}finally{A.f()}}if(Array.isArray(e.portalCalendarDepartmentFilterIds)){this.portalCalendarDepartmentFilterIds=[];var k,D=Object(s.a)(e.portalCalendarDepartmentFilterIds);try{for(D.s();!(k=D.n()).done;){var L=k.value;this.portalCalendarDepartmentFilterIds.push(L)}}catch(ie){D.e(ie)}finally{D.f()}}if(Array.isArray(e.portalCalendarLevelFilterIds)){this.portalCalendarLevelFilterIds=[];var J,F=Object(s.a)(e.portalCalendarLevelFilterIds);try{for(F.s();!(J=F.n()).done;){var B=J.value;this.portalCalendarLevelFilterIds.push(B)}}catch(ie){F.e(ie)}finally{F.f()}}if(Array.isArray(e.portalCalendarLocationFilterIds)){this.portalCalendarLocationFilterIds=[];var R,U=Object(s.a)(e.portalCalendarLocationFilterIds);try{for(U.s();!(R=U.n()).done;){var G=R.value;this.portalCalendarLocationFilterIds.push(G)}}catch(ie){U.e(ie)}finally{U.f()}}if(Array.isArray(e.portalCalendarPracticeAreaFilterIds)){this.portalCalendarPracticeAreaFilterIds=[];var q,M=Object(s.a)(e.portalCalendarPracticeAreaFilterIds);try{for(M.s();!(q=M.n()).done;){var z=q.value;this.portalCalendarPracticeAreaFilterIds.push(z)}}catch(ie){M.e(ie)}finally{M.f()}}if(Array.isArray(e.portalCalendarProviderFilterIds)){this.portalCalendarProviderFilterIds=[];var W,V=Object(s.a)(e.portalCalendarProviderFilterIds);try{for(V.s();!(W=V.n()).done;){var _=W.value;this.portalCalendarProviderFilterIds.push(_)}}catch(ie){V.e(ie)}finally{V.f()}}if(Array.isArray(e.portalCalendarCompetencyFilterIds)){this.portalCalendarCompetencyFilterIds=[];var Y,$=Object(s.a)(e.portalCalendarCompetencyFilterIds);try{for($.s();!(Y=$.n()).done;){var H=Y.value;this.portalCalendarCompetencyFilterIds.push(H)}}catch(ie){$.e(ie)}finally{$.f()}}if(Array.isArray(e.portalCalendarClassYearFilterIds)){this.portalCalendarClassYearFilterIds=[];var K,Q=Object(s.a)(e.portalCalendarClassYearFilterIds);try{for(Q.s();!(K=Q.n()).done;){var Z=K.value;this.portalCalendarClassYearFilterIds.push(Z)}}catch(ie){Q.e(ie)}finally{Q.f()}}if(Array.isArray(e.portalCalendarTagFilterIds)){this.portalCalendarTagFilterIds=[];var X,ee=Object(s.a)(e.portalCalendarTagFilterIds);try{for(ee.s();!(X=ee.n()).done;){var te=X.value;this.portalCalendarTagFilterIds.push(te)}}catch(ie){ee.e(ie)}finally{ee.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,e.enableSeekBar=this.enableSeekBar,e.enableMakeupDisqualifiedVideo=this.enableMakeupDisqualifiedVideo,e.enableMakeupDisqualifiedScorm=this.enableMakeupDisqualifiedScorm,e.enableRewind=this.enableRewind,e.enableFastForward=this.enableFastForward,e.forLicensesHeldOnly=this.forLicensesHeldOnly,Array.isArray(this.portalDepartmentFilterIds)){e.portalDepartmentFilterIds=[];var t,i=Object(s.a)(this.portalDepartmentFilterIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.portalDepartmentFilterIds.push(r)}}catch(ie){i.e(ie)}finally{i.f()}}if(Array.isArray(this.portalLevelFilterIds)){e.portalLevelFilterIds=[];var n,a=Object(s.a)(this.portalLevelFilterIds);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.portalLevelFilterIds.push(o)}}catch(ie){a.e(ie)}finally{a.f()}}if(Array.isArray(this.portalLocationFilterIds)){e.portalLocationFilterIds=[];var l,c=Object(s.a)(this.portalLocationFilterIds);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.portalLocationFilterIds.push(d)}}catch(ie){c.e(ie)}finally{c.f()}}if(Array.isArray(this.portalPracticeAreaFilterIds)){e.portalPracticeAreaFilterIds=[];var u,h=Object(s.a)(this.portalPracticeAreaFilterIds);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.portalPracticeAreaFilterIds.push(v)}}catch(ie){h.e(ie)}finally{h.f()}}if(Array.isArray(this.portalProviderFilterIds)){e.portalProviderFilterIds=[];var p,f=Object(s.a)(this.portalProviderFilterIds);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.portalProviderFilterIds.push(m)}}catch(ie){f.e(ie)}finally{f.f()}}if(e.defaultLandingScreen=this.defaultLandingScreen,Array.isArray(this.portalCompetencyFilterIds)){e.portalCompetencyFilterIds=[];var y,g=Object(s.a)(this.portalCompetencyFilterIds);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.portalCompetencyFilterIds.push(b)}}catch(ie){g.e(ie)}finally{g.f()}}if(Array.isArray(this.portalClassYearFilterIds)){e.portalClassYearFilterIds=[];var S,E=Object(s.a)(this.portalClassYearFilterIds);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.portalClassYearFilterIds.push(I)}}catch(ie){E.e(ie)}finally{E.f()}}if(Array.isArray(this.portalTagFilterIds)){e.portalTagFilterIds=[];var O,C=Object(s.a)(this.portalTagFilterIds);try{for(C.s();!(O=C.n()).done;){var x=O.value;e.portalTagFilterIds.push(x)}}catch(ie){C.e(ie)}finally{C.f()}}if(Array.isArray(this.portalCourseFormatFilterIds)){e.portalCourseFormatFilterIds=[];var j,w=Object(s.a)(this.portalCourseFormatFilterIds);try{for(w.s();!(j=w.n()).done;){var P=j.value;e.portalCourseFormatFilterIds.push(P)}}catch(ie){w.e(ie)}finally{w.f()}}if(Array.isArray(this.portalCalendarCourseFormatFilterIds)){e.portalCalendarCourseFormatFilterIds=[];var T,A=Object(s.a)(this.portalCalendarCourseFormatFilterIds);try{for(A.s();!(T=A.n()).done;){var N=T.value;e.portalCalendarCourseFormatFilterIds.push(N)}}catch(ie){A.e(ie)}finally{A.f()}}if(Array.isArray(this.portalCalendarDepartmentFilterIds)){e.portalCalendarDepartmentFilterIds=[];var k,D=Object(s.a)(this.portalCalendarDepartmentFilterIds);try{for(D.s();!(k=D.n()).done;){var L=k.value;e.portalCalendarDepartmentFilterIds.push(L)}}catch(ie){D.e(ie)}finally{D.f()}}if(Array.isArray(this.portalCalendarLevelFilterIds)){e.portalCalendarLevelFilterIds=[];var J,F=Object(s.a)(this.portalCalendarLevelFilterIds);try{for(F.s();!(J=F.n()).done;){var B=J.value;e.portalCalendarLevelFilterIds.push(B)}}catch(ie){F.e(ie)}finally{F.f()}}if(Array.isArray(this.portalCalendarLocationFilterIds)){e.portalCalendarLocationFilterIds=[];var R,U=Object(s.a)(this.portalCalendarLocationFilterIds);try{for(U.s();!(R=U.n()).done;){var G=R.value;e.portalCalendarLocationFilterIds.push(G)}}catch(ie){U.e(ie)}finally{U.f()}}if(Array.isArray(this.portalCalendarPracticeAreaFilterIds)){e.portalCalendarPracticeAreaFilterIds=[];var q,M=Object(s.a)(this.portalCalendarPracticeAreaFilterIds);try{for(M.s();!(q=M.n()).done;){var z=q.value;e.portalCalendarPracticeAreaFilterIds.push(z)}}catch(ie){M.e(ie)}finally{M.f()}}if(Array.isArray(this.portalCalendarProviderFilterIds)){e.portalCalendarProviderFilterIds=[];var W,V=Object(s.a)(this.portalCalendarProviderFilterIds);try{for(V.s();!(W=V.n()).done;){var _=W.value;e.portalCalendarProviderFilterIds.push(_)}}catch(ie){V.e(ie)}finally{V.f()}}if(Array.isArray(this.portalCalendarCompetencyFilterIds)){e.portalCalendarCompetencyFilterIds=[];var Y,$=Object(s.a)(this.portalCalendarCompetencyFilterIds);try{for($.s();!(Y=$.n()).done;){var H=Y.value;e.portalCalendarCompetencyFilterIds.push(H)}}catch(ie){$.e(ie)}finally{$.f()}}if(Array.isArray(this.portalCalendarClassYearFilterIds)){e.portalCalendarClassYearFilterIds=[];var K,Q=Object(s.a)(this.portalCalendarClassYearFilterIds);try{for(Q.s();!(K=Q.n()).done;){var Z=K.value;e.portalCalendarClassYearFilterIds.push(Z)}}catch(ie){Q.e(ie)}finally{Q.f()}}if(Array.isArray(this.portalCalendarTagFilterIds)){e.portalCalendarTagFilterIds=[];var X,ee=Object(s.a)(this.portalCalendarTagFilterIds);try{for(ee.s();!(X=ee.n()).done;){var te=X.value;e.portalCalendarTagFilterIds.push(te)}}catch(ie){ee.e(ie)}finally{ee.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Home=1]="Home",e[e.CourseCatalog=2]="CourseCatalog",e[e.CourseCalendar=3]="CourseCalendar",e[e.UserCourses=4]="UserCourses",e[e.Compliance=5]="Compliance",e[e.LearningPlans=6]="LearningPlans",e[e.Transcripts=7]="Transcripts",e[e.InstructorView=8]="InstructorView",e[e.TeamView=9]="TeamView"}(cc||(cc={}));var bc,Sc=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.portalScreen=void 0,this.shortDescription=void 0,this.text=void 0,this.title=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.portalScreen=e.portalScreen,this.shortDescription=e.shortDescription,this.text=e.text,this.title=e.title)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.portalScreen=this.portalScreen,e.shortDescription=this.shortDescription,e.text=this.text,e.title=this.title,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ec=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantCertificateId=void 0,this.sessionParticipantId=void 0,this.fileId=void 0,this.fileName=void 0,this.fileType=void 0,this.fileExt=void 0,this.uploadDate=void 0,this.createdBy=void 0,this.createdByUserType=void 0,this.integrationId=void 0,this.integrationSessionParticipantCertificateId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantCertificateId=e.sessionParticipantCertificateId,this.sessionParticipantId=e.sessionParticipantId,this.fileId=e.fileId,this.fileName=e.fileName,this.fileType=e.fileType,this.fileExt=e.fileExt,this.uploadDate=e.uploadDate?new Date(e.uploadDate.toString()):void 0,this.createdBy=e.createdBy,this.createdByUserType=e.createdByUserType,this.integrationId=e.integrationId,this.integrationSessionParticipantCertificateId=e.integrationSessionParticipantCertificateId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantCertificateId=this.sessionParticipantCertificateId,e.sessionParticipantId=this.sessionParticipantId,e.fileId=this.fileId,e.fileName=this.fileName,e.fileType=this.fileType,e.fileExt=this.fileExt,e.uploadDate=this.uploadDate?this.uploadDate.toISOString():void 0,e.createdBy=this.createdBy,e.createdByUserType=this.createdByUserType,e.integrationId=this.integrationId,e.integrationSessionParticipantCertificateId=this.integrationSessionParticipantCertificateId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ic=function(){function e(t){if(Object(l.a)(this,e),this.certificates=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.certificates)){this.certificates=[];var t,i=Object(s.a)(e.certificates);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.certificates.push(Ec.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.certificates)){e.certificates=[];var t,i=Object(s.a)(this.certificates);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.certificates.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oc=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.name=void 0,this.initials=void 0,this.email=void 0,this.location=void 0,this.userType=void 0,this.value=void 0,this.userName=void 0,this.portalAccessEnabled=void 0,this.idpId=void 0,this.hasUKLicense=void 0,this.hasPortalDevelopmentPlanAccess=void 0,this.userAvatar=void 0,this.userDepartment=void 0,this.userPosition=void 0,this.userRole=void 0,this.userLicense=void 0,this.sourceRelationShips=void 0,this.targetRelationShips=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.name=e.name,this.initials=e.initials,this.email=e.email,this.location=e.location,this.userType=e.userType,this.value=e.value,this.userName=e.userName,this.portalAccessEnabled=e.portalAccessEnabled,this.idpId=e.idpId,this.hasUKLicense=e.hasUKLicense,this.hasPortalDevelopmentPlanAccess=e.hasPortalDevelopmentPlanAccess,this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,Array.isArray(e.userDepartment)){this.userDepartment=[];var t,i=Object(s.a)(e.userDepartment);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userDepartment.push(uv.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var n,a=Object(s.a)(e.userPosition);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userPosition.push(qv.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.userRole)){this.userRole=[];var l,c=Object(s.a)(e.userRole);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userRole.push(Vv.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.userLicense)){this.userLicense=[];var u,h=Object(s.a)(e.userLicense);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userLicense.push(Av.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.sourceRelationShips)){this.sourceRelationShips=[];var p,f=Object(s.a)(e.sourceRelationShips);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.sourceRelationShips.push(Wv.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.targetRelationShips)){this.targetRelationShips=[];var y,g=Object(s.a)(e.targetRelationShips);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.targetRelationShips.push(Wv.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.name=this.name,e.initials=this.initials,e.email=this.email,e.location=this.location,e.userType=this.userType,e.value=this.value,e.userName=this.userName,e.portalAccessEnabled=this.portalAccessEnabled,e.idpId=this.idpId,e.hasUKLicense=this.hasUKLicense,e.hasPortalDevelopmentPlanAccess=this.hasPortalDevelopmentPlanAccess,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.userDepartment)){e.userDepartment=[];var t,i=Object(s.a)(this.userDepartment);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userDepartment.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.userPosition)){e.userPosition=[];var n,a=Object(s.a)(this.userPosition);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userPosition.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.userRole)){e.userRole=[];var l,c=Object(s.a)(this.userRole);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userRole.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.userLicense)){e.userLicense=[];var u,h=Object(s.a)(this.userLicense);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userLicense.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.sourceRelationShips)){e.sourceRelationShips=[];var p,f=Object(s.a)(this.sourceRelationShips);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.sourceRelationShips.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.targetRelationShips)){e.targetRelationShips=[];var y,g=Object(s.a)(this.targetRelationShips);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.targetRelationShips.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cc=function(){function e(t){if(Object(l.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(s.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(Oc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(s.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xc=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.userType=void 0,this.userAvatarThumbnailURl=void 0,this.licenseId=void 0,this.licenseName=void 0,this.subLicenseId=void 0,this.isSubLicenseRolling=void 0,this.complianceStatusId=void 0,this.isCarryOverAllowed=void 0,this.isSubLicenseCarryOverAllowed=void 0,this.isRetroAllowed=void 0,this.totalPeriodCount=void 0,this.userLicenseProfile=void 0,this.compliancePeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.userType=e.userType,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.subLicenseId=e.subLicenseId,this.isSubLicenseRolling=e.isSubLicenseRolling,this.complianceStatusId=e.complianceStatusId,this.isCarryOverAllowed=e.isCarryOverAllowed,this.isSubLicenseCarryOverAllowed=e.isSubLicenseCarryOverAllowed,this.isRetroAllowed=e.isRetroAllowed,this.totalPeriodCount=e.totalPeriodCount,Array.isArray(e.userLicenseProfile)){this.userLicenseProfile=[];var t,i=Object(s.a)(e.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseProfile.push(Nv.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.compliancePeriods)){this.compliancePeriods=[];var n,a=Object(s.a)(e.compliancePeriods);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.compliancePeriods.push(fc.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.userType=this.userType,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.subLicenseId=this.subLicenseId,e.isSubLicenseRolling=this.isSubLicenseRolling,e.complianceStatusId=this.complianceStatusId,e.isCarryOverAllowed=this.isCarryOverAllowed,e.isSubLicenseCarryOverAllowed=this.isSubLicenseCarryOverAllowed,e.isRetroAllowed=this.isRetroAllowed,e.totalPeriodCount=this.totalPeriodCount,Array.isArray(this.userLicenseProfile)){e.userLicenseProfile=[];var t,i=Object(s.a)(this.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseProfile.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.compliancePeriods)){e.compliancePeriods=[];var n,a=Object(s.a)(this.compliancePeriods);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.compliancePeriods.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jc=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseFullName=void 0,this.licenseStatus=void 0,this.expirationDate=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.creditShortName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseFullName=e.licenseFullName,this.licenseStatus=e.licenseStatus,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.creditShortName=e.creditShortName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseFullName=this.licenseFullName,e.licenseStatus=this.licenseStatus,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.creditShortName=this.creditShortName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wc=function(){function e(t){if(Object(l.a)(this,e),this.transcriptId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,this.registrationDate=void 0,this.registeredBy=void 0,this.validationDate=void 0,this.validatedBy=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.tentativeDate=void 0,this.isCreditAdjusted=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.courseId=void 0,this.title=void 0,this.sessionTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.locationId=void 0,this.location=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.evaluation=void 0,this.evaluationDisplayStatusId=void 0,this.evaluationDisplayStatus=void 0,this.certificates=void 0,this.certificateDisplayStatusId=void 0,this.certificateDisplayStatus=void 0,this.activityParticipantId=void 0,this.activityId=void 0,this.hoursSpent=void 0,this.yearGrouping=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.transcriptId=e.transcriptId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.registeredBy=e.registeredBy,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.validatedBy=e.validatedBy,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.isCreditAdjusted=e.isCreditAdjusted,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.courseId=e.courseId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.locationId=e.locationId,this.location=e.location,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(s.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(ju.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var n,a=Object(s.a)(e.sessionMaterials);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionMaterials.push(Du.fromJS(o))}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var l,c=Object(s.a)(e.userLicenseCreditValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicenseCreditValues.push(jc.fromJS(d))}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var u,h=Object(s.a)(e.userLicensePropertyValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userLicensePropertyValues.push(Dv.fromJS(v))}}catch(y){h.e(y)}finally{h.f()}}if(this.evaluation=e.evaluation?fv.fromJS(e.evaluation):void 0,this.evaluationDisplayStatusId=e.evaluationDisplayStatusId,this.evaluationDisplayStatus=e.evaluationDisplayStatus,Array.isArray(e.certificates)){this.certificates=[];var p,f=Object(s.a)(e.certificates);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.certificates.push(iv.fromJS(m))}}catch(y){f.e(y)}finally{f.f()}}this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.certificateDisplayStatus=e.certificateDisplayStatus,this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.hoursSpent=e.hoursSpent,this.yearGrouping=e.yearGrouping}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).transcriptId=this.transcriptId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.registeredBy=this.registeredBy,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.isCreditAdjusted=this.isCreditAdjusted,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.courseId=this.courseId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.locationId=this.locationId,e.location=this.location,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(s.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var n,a=Object(s.a)(this.sessionMaterials);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionMaterials.push(o.toJSON())}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var l,c=Object(s.a)(this.userLicenseCreditValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicenseCreditValues.push(d.toJSON())}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var u,h=Object(s.a)(this.userLicensePropertyValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userLicensePropertyValues.push(v.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(e.evaluation=this.evaluation?this.evaluation.toJSON():void 0,e.evaluationDisplayStatusId=this.evaluationDisplayStatusId,e.evaluationDisplayStatus=this.evaluationDisplayStatus,Array.isArray(this.certificates)){e.certificates=[];var p,f=Object(s.a)(this.certificates);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.certificates.push(m.toJSON())}}catch(y){f.e(y)}finally{f.f()}}return e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.certificateDisplayStatus=this.certificateDisplayStatus,e.activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.hoursSpent=this.hoursSpent,e.yearGrouping=this.yearGrouping,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pc=function(){function e(t){if(Object(l.a)(this,e),this.userTranscripts=void 0,this.yearGrouping=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(s.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(wc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.yearGrouping)){this.yearGrouping=[];var n,a=Object(s.a)(e.yearGrouping);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.yearGrouping.push(o)}}catch(l){a.e(l)}finally{a.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(s.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.yearGrouping)){e.yearGrouping=[];var n,a=Object(s.a)(this.yearGrouping);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.yearGrouping.push(o)}}catch(l){a.e(l)}finally{a.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tc=function(){function e(t){if(Object(l.a)(this,e),this.transcriptId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,this.cancelledDate=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isIndividualSessionDateAllowed=void 0,this.courseId=void 0,this.title=void 0,this.sessionTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.isInHouse=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.locationId=void 0,this.location=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.sessionParticipantStatusId=void 0,this.withRetro=void 0,this.evaluation=void 0,this.evaluationDisplayStatusId=void 0,this.evaluationDisplayStatus=void 0,this.certificates=void 0,this.certificateDisplayStatusId=void 0,this.certificateDisplayStatus=void 0,this.createdby=void 0,this.activityParticipantId=void 0,this.activityId=void 0,this.hoursSpent=void 0,this.yearGrouping=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.transcriptId=e.transcriptId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.courseId=e.courseId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.providerId=e.providerId,this.providerName=e.providerName,this.isInHouse=e.isInHouse,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.locationId=e.locationId,this.location=e.location,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(s.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(ju.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var n,a=Object(s.a)(e.sessionMaterials);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionMaterials.push(Du.fromJS(o))}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var l,c=Object(s.a)(e.userLicenseCreditValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicenseCreditValues.push(jc.fromJS(d))}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var u,h=Object(s.a)(e.userLicensePropertyValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userLicensePropertyValues.push(Dv.fromJS(v))}}catch(y){h.e(y)}finally{h.f()}}if(this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.withRetro=e.withRetro,this.evaluation=e.evaluation?fv.fromJS(e.evaluation):void 0,this.evaluationDisplayStatusId=e.evaluationDisplayStatusId,this.evaluationDisplayStatus=e.evaluationDisplayStatus,Array.isArray(e.certificates)){this.certificates=[];var p,f=Object(s.a)(e.certificates);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.certificates.push(iv.fromJS(m))}}catch(y){f.e(y)}finally{f.f()}}this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.certificateDisplayStatus=e.certificateDisplayStatus,this.createdby=e.createdby,this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.hoursSpent=e.hoursSpent,this.yearGrouping=e.yearGrouping}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).transcriptId=this.transcriptId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.courseId=this.courseId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.providerId=this.providerId,e.providerName=this.providerName,e.isInHouse=this.isInHouse,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.locationId=this.locationId,e.location=this.location,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(s.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var n,a=Object(s.a)(this.sessionMaterials);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionMaterials.push(o.toJSON())}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var l,c=Object(s.a)(this.userLicenseCreditValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicenseCreditValues.push(d.toJSON())}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var u,h=Object(s.a)(this.userLicensePropertyValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userLicensePropertyValues.push(v.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.withRetro=this.withRetro,e.evaluation=this.evaluation?this.evaluation.toJSON():void 0,e.evaluationDisplayStatusId=this.evaluationDisplayStatusId,e.evaluationDisplayStatus=this.evaluationDisplayStatus,Array.isArray(this.certificates)){e.certificates=[];var p,f=Object(s.a)(this.certificates);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.certificates.push(m.toJSON())}}catch(y){f.e(y)}finally{f.f()}}return e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.certificateDisplayStatus=this.certificateDisplayStatus,e.createdby=this.createdby,e.activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.hoursSpent=this.hoursSpent,e.yearGrouping=this.yearGrouping,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ac=function(){function e(t){if(Object(l.a)(this,e),this.userTranscripts=void 0,this.yearGrouping=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(s.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Tc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.yearGrouping)){this.yearGrouping=[];var n,a=Object(s.a)(e.yearGrouping);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.yearGrouping.push(o)}}catch(l){a.e(l)}finally{a.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(s.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.yearGrouping)){e.yearGrouping=[];var n,a=Object(s.a)(this.yearGrouping);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.yearGrouping.push(o)}}catch(l){a.e(l)}finally{a.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nc=function(){function e(t){if(Object(l.a)(this,e),this.positionId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.userCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.userCount=e.userCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.userCount=this.userCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kc=function(){function e(t){if(Object(l.a)(this,e),this.positions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.positions)){this.positions=[];var t,i=Object(s.a)(e.positions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.positions.push(Nc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.positions)){e.positions=[];var t,i=Object(s.a)(this.positions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.positions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dc=function(){function e(t){if(Object(l.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.isActive=void 0,this.code=void 0,this.courseCount=void 0,this.userCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.isActive=e.isActive,this.code=e.code,this.courseCount=e.courseCount,this.userCount=e.userCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.isActive=this.isActive,e.code=this.code,e.courseCount=this.courseCount,e.userCount=this.userCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lc=function(){function e(t){if(Object(l.a)(this,e),this.practiceAreas=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.practiceAreas)){this.practiceAreas=[];var t,i=Object(s.a)(e.practiceAreas);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.practiceAreas.push(Dc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.practiceAreas)){e.practiceAreas=[];var t,i=Object(s.a)(this.practiceAreas);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.practiceAreas.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jc=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.userType=void 0,this.userAvatarThumbnailURl=void 0,this.licenseId=void 0,this.licenseName=void 0,this.subLicenseId=void 0,this.isSubLicenseRolling=void 0,this.complianceStatusId=void 0,this.isCarryOverAllowed=void 0,this.isSubLicenseCarryOverAllowed=void 0,this.isRetroAllowed=void 0,this.userLicenseProfile=void 0,this.periodsList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.userType=e.userType,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.subLicenseId=e.subLicenseId,this.isSubLicenseRolling=e.isSubLicenseRolling,this.complianceStatusId=e.complianceStatusId,this.isCarryOverAllowed=e.isCarryOverAllowed,this.isSubLicenseCarryOverAllowed=e.isSubLicenseCarryOverAllowed,this.isRetroAllowed=e.isRetroAllowed,Array.isArray(e.userLicenseProfile)){this.userLicenseProfile=[];var t,i=Object(s.a)(e.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseProfile.push(Nv.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.periodsList)){this.periodsList=[];var n,a=Object(s.a)(e.periodsList);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.periodsList.push(Bc.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.userType=this.userType,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.subLicenseId=this.subLicenseId,e.isSubLicenseRolling=this.isSubLicenseRolling,e.complianceStatusId=this.complianceStatusId,e.isCarryOverAllowed=this.isCarryOverAllowed,e.isSubLicenseCarryOverAllowed=this.isSubLicenseCarryOverAllowed,e.isRetroAllowed=this.isRetroAllowed,Array.isArray(this.userLicenseProfile)){e.userLicenseProfile=[];var t,i=Object(s.a)(this.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseProfile.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.periodsList)){e.periodsList=[];var n,a=Object(s.a)(this.periodsList);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.periodsList.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fc=function(){function e(t){if(Object(l.a)(this,e),this.listId=void 0,this.userLicenseComplianceId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.title=void 0,this.sessionTitle=void 0,this.provider=void 0,this.courseFormat=void 0,this.dateTaken=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isInstructed=void 0,this.isCreditAdjusted=void 0,this.isWithinGracePeriod=void 0,this.isWithinPrevGracePeriod=void 0,this.periodNumber=void 0,this.location=void 0,this.userRetroactiveCredits=void 0,this.sessionLicenses=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.listId=e.listId,this.userLicenseComplianceId=e.userLicenseComplianceId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.provider=e.provider,this.courseFormat=e.courseFormat,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isInstructed=e.isInstructed,this.isCreditAdjusted=e.isCreditAdjusted,this.isWithinGracePeriod=e.isWithinGracePeriod,this.isWithinPrevGracePeriod=e.isWithinPrevGracePeriod,this.periodNumber=e.periodNumber,this.location=e.location,Array.isArray(e.userRetroactiveCredits)){this.userRetroactiveCredits=[];var t,i=Object(s.a)(e.userRetroactiveCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRetroactiveCredits.push(li.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var l,c=Object(s.a)(e.userLicenseCreditValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicenseCreditValues.push(Tv.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var u,h=Object(s.a)(e.userLicensePropertyValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userLicensePropertyValues.push(Dv.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).listId=this.listId,e.userLicenseComplianceId=this.userLicenseComplianceId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.provider=this.provider,e.courseFormat=this.courseFormat,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isInstructed=this.isInstructed,e.isCreditAdjusted=this.isCreditAdjusted,e.isWithinGracePeriod=this.isWithinGracePeriod,e.isWithinPrevGracePeriod=this.isWithinPrevGracePeriod,e.periodNumber=this.periodNumber,e.location=this.location,Array.isArray(this.userRetroactiveCredits)){e.userRetroactiveCredits=[];var t,i=Object(s.a)(this.userRetroactiveCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRetroactiveCredits.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var l,c=Object(s.a)(this.userLicenseCreditValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicenseCreditValues.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var u,h=Object(s.a)(this.userLicensePropertyValues);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userLicensePropertyValues.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bc=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.licenseId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.periodToDisplay=void 0,this.periodLabel=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.complianceStatusId=void 0,this.isSubLicensePeriod=void 0,this.isPriorPeriodDeficient=void 0,this.compliancePeriodTotals=void 0,this.compliancePeriodAdditionalRequirements=void 0,this.compliancePeriodChartNotes=void 0,this.compliancePeriodRestrictions=void 0,this.compliancePeriodSubjectAreas=void 0,this.compliancePeriodCourseHistory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userLicenseComplianceId=e.userLicenseComplianceId,this.licenseId=e.licenseId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.periodLabel=e.periodLabel,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.complianceStatusId=e.complianceStatusId,this.isSubLicensePeriod=e.isSubLicensePeriod,this.isPriorPeriodDeficient=e.isPriorPeriodDeficient,Array.isArray(e.compliancePeriodTotals)){this.compliancePeriodTotals=[];var t,i=Object(s.a)(e.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodTotals.push(yi.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.compliancePeriodAdditionalRequirements)){this.compliancePeriodAdditionalRequirements=[];var n,a=Object(s.a)(e.compliancePeriodAdditionalRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.compliancePeriodAdditionalRequirements.push(ii.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.compliancePeriodChartNotes)){this.compliancePeriodChartNotes=[];var l,c=Object(s.a)(e.compliancePeriodChartNotes);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.compliancePeriodChartNotes.push(ri.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.compliancePeriodRestrictions)){this.compliancePeriodRestrictions=[];var u,h=Object(s.a)(e.compliancePeriodRestrictions);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.compliancePeriodRestrictions.push(fi.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var p,f=Object(s.a)(e.compliancePeriodSubjectAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.compliancePeriodSubjectAreas.push(mi.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.compliancePeriodCourseHistory)){this.compliancePeriodCourseHistory=[];var y,g=Object(s.a)(e.compliancePeriodCourseHistory);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.compliancePeriodCourseHistory.push(pi.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.licenseId=this.licenseId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.periodLabel=this.periodLabel,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.complianceStatusId=this.complianceStatusId,e.isSubLicensePeriod=this.isSubLicensePeriod,e.isPriorPeriodDeficient=this.isPriorPeriodDeficient,Array.isArray(this.compliancePeriodTotals)){e.compliancePeriodTotals=[];var t,i=Object(s.a)(this.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodTotals.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.compliancePeriodAdditionalRequirements)){e.compliancePeriodAdditionalRequirements=[];var n,a=Object(s.a)(this.compliancePeriodAdditionalRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.compliancePeriodAdditionalRequirements.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.compliancePeriodChartNotes)){e.compliancePeriodChartNotes=[];var l,c=Object(s.a)(this.compliancePeriodChartNotes);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.compliancePeriodChartNotes.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.compliancePeriodRestrictions)){e.compliancePeriodRestrictions=[];var u,h=Object(s.a)(this.compliancePeriodRestrictions);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.compliancePeriodRestrictions.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var p,f=Object(s.a)(this.compliancePeriodSubjectAreas);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.compliancePeriodSubjectAreas.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.compliancePeriodCourseHistory)){e.compliancePeriodCourseHistory=[];var y,g=Object(s.a)(this.compliancePeriodCourseHistory);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.compliancePeriodCourseHistory.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rc=function(){function e(t){if(Object(l.a)(this,e),this.providerId=void 0,this.name=void 0,this.isInHouse=void 0,this.isActive=void 0,this.code=void 0,this.url=void 0,this.isScheduleAllowed=void 0,this.isRegistrationAllowed=void 0,this.isCertificateAllowed=void 0,this.isReportingAllowed=void 0,this.courseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.providerId=e.providerId,this.name=e.name,this.isInHouse=e.isInHouse,this.isActive=e.isActive,this.code=e.code,this.url=e.url,this.isScheduleAllowed=e.isScheduleAllowed,this.isRegistrationAllowed=e.isRegistrationAllowed,this.isCertificateAllowed=e.isCertificateAllowed,this.isReportingAllowed=e.isReportingAllowed,this.courseCount=e.courseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).providerId=this.providerId,e.name=this.name,e.isInHouse=this.isInHouse,e.isActive=this.isActive,e.code=this.code,e.url=this.url,e.isScheduleAllowed=this.isScheduleAllowed,e.isRegistrationAllowed=this.isRegistrationAllowed,e.isCertificateAllowed=this.isCertificateAllowed,e.isReportingAllowed=this.isReportingAllowed,e.courseCount=this.courseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Uc=function(){function e(t){if(Object(l.a)(this,e),this.providers=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.providers)){this.providers=[];var t,i=Object(s.a)(e.providers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.providers.push(Rc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.providers)){e.providers=[];var t,i=Object(s.a)(this.providers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.providers.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.AdministrativeAssistant=1]="AdministrativeAssistant",e[e.Supervisor=2]="Supervisor",e[e.Coach=3]="Coach",e[e.Mentor=4]="Mentor",e[e.MatrixManager=5]="MatrixManager",e[e.PracticeGroupLeader=6]="PracticeGroupLeader"}(bc||(bc={}));var Gc,qc=function(){function e(t){if(Object(l.a)(this,e),this.reminderScheduleId=void 0,this.isActive=void 0,this.frequency=void 0,this.jobId=void 0,this.lastEmailSent=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.reminderScheduleId=e.reminderScheduleId,this.isActive=e.isActive,this.frequency=e.frequency,this.jobId=e.jobId,this.lastEmailSent=e.lastEmailSent?new Date(e.lastEmailSent.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).reminderScheduleId=this.reminderScheduleId,e.isActive=this.isActive,e.frequency=this.frequency,e.jobId=this.jobId,e.lastEmailSent=this.lastEmailSent?this.lastEmailSent.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mc=function(){function e(t){if(Object(l.a)(this,e),this.reminderScheduleId=void 0,this.isActive=void 0,this.minimumCredit=void 0,this.reminderPeriod=void 0,this.licenseIds=void 0,this.emailTemplateId=void 0,this.template=void 0,this.frequency=void 0,this.time=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurDayOfWeek=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.numberOfMonths=void 0,this.monthlyDayWithInterval=void 0,this.numberOfMonthsInterval=void 0,this.dayOfMonthWithInterval=void 0,this.dayOfWeekWithInterval=void 0,this.jobId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.reminderScheduleId=e.reminderScheduleId,this.isActive=e.isActive,this.minimumCredit=e.minimumCredit,this.reminderPeriod=e.reminderPeriod,this.licenseIds=e.licenseIds,this.emailTemplateId=e.emailTemplateId,this.template=e.template?kn.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Ph.fromJS(e.timezone):void 0,Array.isArray(e.recurDayOfWeek)){this.recurDayOfWeek=[];var t,i=Object(s.a)(e.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.recurDayOfWeek.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var n,a=Object(s.a)(e.monthlyDay);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.monthlyDay.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.numberOfMonths=e.numberOfMonths,Array.isArray(e.monthlyDayWithInterval)){this.monthlyDayWithInterval=[];var l,c=Object(s.a)(e.monthlyDayWithInterval);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.monthlyDayWithInterval.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(this.numberOfMonthsInterval=e.numberOfMonthsInterval,this.dayOfMonthWithInterval=e.dayOfMonthWithInterval,this.dayOfWeekWithInterval=e.dayOfWeekWithInterval,this.jobId=e.jobId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,Array.isArray(e.recipients)){this.recipients=[];var u,h=Object(s.a)(e.recipients);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.recipients.push(Pn.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).reminderScheduleId=this.reminderScheduleId,e.isActive=this.isActive,e.minimumCredit=this.minimumCredit,e.reminderPeriod=this.reminderPeriod,e.licenseIds=this.licenseIds,e.emailTemplateId=this.emailTemplateId,e.template=this.template?this.template.toJSON():void 0,e.frequency=this.frequency,e.time=this.time,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.recurDayOfWeek)){e.recurDayOfWeek=[];var t,i=Object(s.a)(this.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.recurDayOfWeek.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var n,a=Object(s.a)(this.monthlyDay);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.monthlyDay.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.numberOfMonths=this.numberOfMonths,Array.isArray(this.monthlyDayWithInterval)){e.monthlyDayWithInterval=[];var l,c=Object(s.a)(this.monthlyDayWithInterval);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.monthlyDayWithInterval.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(e.numberOfMonthsInterval=this.numberOfMonthsInterval,e.dayOfMonthWithInterval=this.dayOfMonthWithInterval,e.dayOfWeekWithInterval=this.dayOfWeekWithInterval,e.jobId=this.jobId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,Array.isArray(this.recipients)){e.recipients=[];var u,h=Object(s.a)(this.recipients);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.recipients.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zc=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.collectionId=void 0,this.courseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.collectionId=e.collectionId,Array.isArray(e.courseId))){this.courseId=[];var t,i=Object(s.a)(e.courseId);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseId.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.collectionId=this.collectionId,Array.isArray(this.courseId)){e.courseId=[];var t,i=Object(s.a)(this.courseId);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseId.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wc=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.title=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezone=void 0,this.location=void 0,this.room=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.isPublished=void 0,this.sessionInstructors=void 0,this.courseTitle=void 0,this.cancelledDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.title=e.title,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezone=e.timezone,this.location=e.location,this.room=e.room,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isPublished=e.isPublished,Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var t,i=Object(s.a)(e.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionInstructors.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.courseTitle=e.courseTitle,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.title=this.title,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezone=this.timezone,e.location=this.location,e.room=this.room,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isPublished=this.isPublished,Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var t,i=Object(s.a)(this.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionInstructors.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.courseTitle=this.courseTitle,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vc=function(){function e(t){if(Object(l.a)(this,e),this.resultList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.resultList)){this.resultList=[];var t,i=Object(s.a)(e.resultList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.resultList.push(Wc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.resultList)){e.resultList=[];var t,i=Object(s.a)(this.resultList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.resultList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.SystemUsers=1]="SystemUsers",e[e.ComplianceReports=2]="ComplianceReports",e[e.CoursesAndActivities=3]="CoursesAndActivities",e[e.LearningPlans=4]="LearningPlans",e[e.ProviderReports=5]="ProviderReports",e[e.MaterialAndELearning=6]="MaterialAndELearning",e[e.CustomReports=7]="CustomReports"}(Gc||(Gc={}));var _c,Yc=function(){function e(t){if(Object(l.a)(this,e),this.listId=void 0,this.userLicenseComplianceId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.title=void 0,this.sessionTitle=void 0,this.provider=void 0,this.courseFormat=void 0,this.dateTaken=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isInstructed=void 0,this.periodNumber=void 0,this.location=void 0,this.userLicenseCreditValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.listId=e.listId,this.userLicenseComplianceId=e.userLicenseComplianceId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.provider=e.provider,this.courseFormat=e.courseFormat,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isInstructed=e.isInstructed,this.periodNumber=e.periodNumber,this.location=e.location,Array.isArray(e.userLicenseCreditValues))){this.userLicenseCreditValues=[];var t,i=Object(s.a)(e.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCreditValues.push(Tv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).listId=this.listId,e.userLicenseComplianceId=this.userLicenseComplianceId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.provider=this.provider,e.courseFormat=this.courseFormat,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isInstructed=this.isInstructed,e.periodNumber=this.periodNumber,e.location=this.location,Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var t,i=Object(s.a)(this.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCreditValues.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$c=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.lastName=void 0,this.licenseDetails=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.firstName=e.firstName,this.lastName=e.lastName,Array.isArray(e.licenseDetails))){this.licenseDetails=[];var t,i=Object(s.a)(e.licenseDetails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseDetails.push(Kc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.lastName=this.lastName,Array.isArray(this.licenseDetails)){e.licenseDetails=[];var t,i=Object(s.a)(this.licenseDetails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseDetails.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hc=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.creditId=void 0,this.required=void 0,this.earned=void 0,this.creditsNeeded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.creditId=e.creditId,this.required=e.required,this.earned=e.earned,this.creditsNeeded=e.creditsNeeded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.creditId=this.creditId,e.required=this.required,e.earned=this.earned,e.creditsNeeded=this.creditsNeeded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kc=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.admissionDate=void 0,this.barAdmissionNumber=void 0,this.periods=void 0,this.creditRequirements=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.admissionDate=e.admissionDate,this.barAdmissionNumber=e.barAdmissionNumber,Array.isArray(e.periods)){this.periods=[];var t,i=Object(s.a)(e.periods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.periods.push(Qc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.creditRequirements)){this.creditRequirements=[];var n,a=Object(s.a)(e.creditRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.creditRequirements.push(Tl.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.admissionDate=this.admissionDate,e.barAdmissionNumber=this.barAdmissionNumber,Array.isArray(this.periods)){e.periods=[];var t,i=Object(s.a)(this.periods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.periods.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.creditRequirements)){e.creditRequirements=[];var n,a=Object(s.a)(this.creditRequirements);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.creditRequirements.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qc=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.courseHistory=void 0,this.totals=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,Array.isArray(e.courseHistory)){this.courseHistory=[];var t,i=Object(s.a)(e.courseHistory);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseHistory.push(Yc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.totals)){this.totals=[];var n,a=Object(s.a)(e.totals);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.totals.push(Hc.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,Array.isArray(this.courseHistory)){e.courseHistory=[];var t,i=Object(s.a)(this.courseHistory);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseHistory.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.totals)){e.totals=[];var n,a=Object(s.a)(this.totals);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.totals.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zc=function(){function e(t){if(Object(l.a)(this,e),this.firmName=void 0,this.complianceAuditSummary=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.firmName=e.firmName,Array.isArray(e.complianceAuditSummary))){this.complianceAuditSummary=[];var t,i=Object(s.a)(e.complianceAuditSummary);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.complianceAuditSummary.push($c.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firmName=this.firmName,Array.isArray(this.complianceAuditSummary)){e.complianceAuditSummary=[];var t,i=Object(s.a)(this.complianceAuditSummary);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.complianceAuditSummary.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xc=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.loginName=void 0,this.userStatus=void 0,this.location=void 0,this.complianceReports=void 0,this.courseHistory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.loginName=e.loginName,this.userStatus=e.userStatus,this.location=e.location,this.complianceReports=e.complianceReports?Jc.fromJS(e.complianceReports):void 0,Array.isArray(e.courseHistory))){this.courseHistory=[];var t,i=Object(s.a)(e.courseHistory);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseHistory.push(Fc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.loginName=this.loginName,e.userStatus=this.userStatus,e.location=this.location,e.complianceReports=this.complianceReports?this.complianceReports.toJSON():void 0,Array.isArray(this.courseHistory)){e.courseHistory=[];var t,i=Object(s.a)(this.courseHistory);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseHistory.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ed=function(){function e(t){if(Object(l.a)(this,e),this.reportComplianceList=void 0,this.totalRecords=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.reportComplianceList)){this.reportComplianceList=[];var t,i=Object(s.a)(e.reportComplianceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.reportComplianceList.push(Xc.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.totalRecords=e.totalRecords}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.reportComplianceList)){e.reportComplianceList=[];var t,i=Object(s.a)(this.reportComplianceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.reportComplianceList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.totalRecords=this.totalRecords,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),td=function(){function e(t){if(Object(l.a)(this,e),this.reportGuid=void 0,this.name=void 0,this.description=void 0,this.categoryId=void 0,this.categoryName=void 0,this.reportType=void 0,this.licenseId=void 0,this.isEnabled=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.reportGuid=e.reportGuid,this.name=e.name,this.description=e.description,this.categoryId=e.categoryId,this.categoryName=e.categoryName,this.reportType=e.reportType,this.licenseId=e.licenseId,this.isEnabled=e.isEnabled)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).reportGuid=this.reportGuid,e.name=this.name,e.description=this.description,e.categoryId=this.categoryId,e.categoryName=this.categoryName,e.reportType=this.reportType,e.licenseId=this.licenseId,e.isEnabled=this.isEnabled,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),id=function(){function e(t){if(Object(l.a)(this,e),this.title=void 0,this.questions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.title=e.title,Array.isArray(e.questions))){this.questions=[];var t,i=Object(s.a)(e.questions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.questions.push(nd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).title=this.title,Array.isArray(this.questions)){e.questions=[];var t,i=Object(s.a)(this.questions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.questions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rd=function(){function e(t){if(Object(l.a)(this,e),this.evaluationSummary=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.evaluationSummary)){this.evaluationSummary=[];var t,i=Object(s.a)(e.evaluationSummary);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluationSummary.push(id.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.evaluationSummary)){e.evaluationSummary=[];var t,i=Object(s.a)(this.evaluationSummary);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluationSummary.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nd=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.questionId=void 0,this.name=void 0,this.questionType=void 0,this.texts=void 0,this.responses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.questionId=e.questionId,this.name=e.name,this.questionType=e.questionType,Array.isArray(e.texts)){this.texts=[];var t,i=Object(s.a)(e.texts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.texts.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.responses)){this.responses=[];var n,a=Object(s.a)(e.responses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.responses.push(ad.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.questionId=this.questionId,e.name=this.name,e.questionType=this.questionType,Array.isArray(this.texts)){e.texts=[];var t,i=Object(s.a)(this.texts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.texts.push(r)}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.responses)){e.responses=[];var n,a=Object(s.a)(this.responses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.responses.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ad=function(){function e(t){if(Object(l.a)(this,e),this.answerId=void 0,this.questionId=void 0,this.text=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.answerId=e.answerId,this.questionId=e.questionId,this.text=e.text,this.count=e.count)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).answerId=this.answerId,e.questionId=this.questionId,e.text=this.text,e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),od=function(){function e(t){if(Object(l.a)(this,e),this.users=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.users)){this.users=[];var t,i=Object(s.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(sd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(s.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sd=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.personnelId=void 0,this.clientId=void 0,this.status=void 0,this.type=void 0,this.lastName=void 0,this.firstName=void 0,this.middleName=void 0,this.preferredName=void 0,this.loginId=void 0,this.email=void 0,this.location=void 0,this.administrativeAssistant=void 0,this.supervisor=void 0,this.position=void 0,this.department=void 0,this.practiceArea=void 0,this.level=void 0,this.classYear=void 0,this.ethnicity=void 0,this.gender=void 0,this.creationDate=void 0,this.hireDate=void 0,this.terminationDate=void 0,this.inactivationDate=void 0,this.role=void 0,this.group=void 0,this.privateAdministratorNotes=void 0,this.clientAffiliation=void 0,this.title=void 0,this.street=void 0,this.city=void 0,this.state=void 0,this.zip=void 0,this.country=void 0,this.license=void 0,this.barAdmissionDate=void 0,this.barNumber=void 0,this.birthDate=void 0,this.graduationDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.personnelId=e.personnelId,this.clientId=e.clientId,this.status=e.status,this.type=e.type,this.lastName=e.lastName,this.firstName=e.firstName,this.middleName=e.middleName,this.preferredName=e.preferredName,this.loginId=e.loginId,this.email=e.email,this.location=e.location,this.administrativeAssistant=e.administrativeAssistant,this.supervisor=e.supervisor,this.position=e.position,this.department=e.department,this.practiceArea=e.practiceArea,this.level=e.level,this.classYear=e.classYear,this.ethnicity=e.ethnicity,this.gender=e.gender,this.creationDate=e.creationDate,this.hireDate=e.hireDate,this.terminationDate=e.terminationDate,this.inactivationDate=e.inactivationDate,this.role=e.role,this.group=e.group,this.privateAdministratorNotes=e.privateAdministratorNotes,this.clientAffiliation=e.clientAffiliation,this.title=e.title,this.street=e.street,this.city=e.city,this.state=e.state,this.zip=e.zip,this.country=e.country,this.license=e.license,this.barAdmissionDate=e.barAdmissionDate,this.barNumber=e.barNumber,this.birthDate=e.birthDate,this.graduationDate=e.graduationDate)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.personnelId=this.personnelId,e.clientId=this.clientId,e.status=this.status,e.type=this.type,e.lastName=this.lastName,e.firstName=this.firstName,e.middleName=this.middleName,e.preferredName=this.preferredName,e.loginId=this.loginId,e.email=this.email,e.location=this.location,e.administrativeAssistant=this.administrativeAssistant,e.supervisor=this.supervisor,e.position=this.position,e.department=this.department,e.practiceArea=this.practiceArea,e.level=this.level,e.classYear=this.classYear,e.ethnicity=this.ethnicity,e.gender=this.gender,e.creationDate=this.creationDate,e.hireDate=this.hireDate,e.terminationDate=this.terminationDate,e.inactivationDate=this.inactivationDate,e.role=this.role,e.group=this.group,e.privateAdministratorNotes=this.privateAdministratorNotes,e.clientAffiliation=this.clientAffiliation,e.title=this.title,e.street=this.street,e.city=this.city,e.state=this.state,e.zip=this.zip,e.country=this.country,e.license=this.license,e.barAdmissionDate=this.barAdmissionDate,e.barNumber=this.barNumber,e.birthDate=this.birthDate,e.graduationDate=this.graduationDate,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ld=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.courseId=void 0,this.title=void 0,this.sessionTypeId=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezone=void 0,this.location=void 0,this.room=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.isInHouse=void 0,this.isPublished=void 0,this.pcamId=void 0,this.sessionInstructors=void 0,this.courseTitle=void 0,this.cancelledDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.courseId=e.courseId,this.title=e.title,this.sessionTypeId=e.sessionTypeId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezone=e.timezone,this.location=e.location,this.room=e.room,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isInHouse=e.isInHouse,this.isPublished=e.isPublished,this.pcamId=e.pcamId,Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var t,i=Object(s.a)(e.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionInstructors.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.courseTitle=e.courseTitle,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.courseId=this.courseId,e.title=this.title,e.sessionTypeId=this.sessionTypeId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezone=this.timezone,e.location=this.location,e.room=this.room,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isInHouse=this.isInHouse,e.isPublished=this.isPublished,e.pcamId=this.pcamId,Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var t,i=Object(s.a)(this.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionInstructors.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.courseTitle=this.courseTitle,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cd=function(){function e(t){if(Object(l.a)(this,e),this.resultList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.resultList)){this.resultList=[];var t,i=Object(s.a)(e.resultList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.resultList.push(ld.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.resultList)){e.resultList=[];var t,i=Object(s.a)(this.resultList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.resultList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dd=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.recordType=void 0,this.pcamCourseId=void 0,this.attendanceDate=void 0,this.attendanceMethod=void 0,this.ardcNumber=void 0,this.firstName=void 0,this.lastName=void 0,this.hardshipIndicator=void 0,this.deleteIndicator=void 0,this.totalCreditHours=void 0,this.prMhsa=void 0,this.prDiv=void 0,this.prOther=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.recordType=e.recordType,this.pcamCourseId=e.pcamCourseId,this.attendanceDate=e.attendanceDate,this.attendanceMethod=e.attendanceMethod,this.ardcNumber=e.ardcNumber,this.firstName=e.firstName,this.lastName=e.lastName,this.hardshipIndicator=e.hardshipIndicator,this.deleteIndicator=e.deleteIndicator,this.totalCreditHours=e.totalCreditHours,this.prMhsa=e.prMhsa,this.prDiv=e.prDiv,this.prOther=e.prOther)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.recordType=this.recordType,e.pcamCourseId=this.pcamCourseId,e.attendanceDate=this.attendanceDate,e.attendanceMethod=this.attendanceMethod,e.ardcNumber=this.ardcNumber,e.firstName=this.firstName,e.lastName=this.lastName,e.hardshipIndicator=this.hardshipIndicator,e.deleteIndicator=this.deleteIndicator,e.totalCreditHours=this.totalCreditHours,e.prMhsa=this.prMhsa,e.prDiv=this.prDiv,e.prOther=this.prOther,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ud=function(){function e(t){if(Object(l.a)(this,e),this.attendanceList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.attendanceList)){this.attendanceList=[];var t,i=Object(s.a)(e.attendanceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.attendanceList.push(dd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.attendanceList)){e.attendanceList=[];var t,i=Object(s.a)(this.attendanceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.attendanceList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hd=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.sessionTitle=void 0,this.courseTitle=void 0,this.courseNumber=void 0,this.rowData=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,this.sessionTitle=e.sessionTitle,this.courseTitle=e.courseTitle,this.courseNumber=e.courseNumber,Array.isArray(e.rowData))){this.rowData=[];var t,i=Object(s.a)(e.rowData);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rowData.push(pd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.sessionTitle=this.sessionTitle,e.courseTitle=this.courseTitle,e.courseNumber=this.courseNumber,Array.isArray(this.rowData)){e.rowData=[];var t,i=Object(s.a)(this.rowData);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rowData.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vd=function(){function e(t){if(Object(l.a)(this,e),this.courseList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courseList)){this.courseList=[];var t,i=Object(s.a)(e.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseList.push(hd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseList)){e.courseList=[];var t,i=Object(s.a)(this.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pd=function(){function e(t){if(Object(l.a)(this,e),this.rowNumber=void 0,this.pcamIdNumber=void 0,this.sessionTitle=void 0,this.sessionDescription=void 0,this.sessionId=void 0,this.isInHouse=void 0,this.isBasicSkills=void 0,this.cost=void 0,this.credits=void 0,this.valAllLic=void 0,this.methodTypeDesc=void 0,this.locationName=void 0,this.isInternational=void 0,this.stateAbbreviation=void 0,this.address=void 0,this.zip=void 0,this.city=void 0,this.countryName=void 0,this.startDate=void 0,this.endDate=void 0,this.licenseList=void 0,this.sessionUrl=void 0,this.evalMethod=void 0,this.distributedMaterials=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.rowNumber=e.rowNumber,this.pcamIdNumber=e.pcamIdNumber,this.sessionTitle=e.sessionTitle,this.sessionDescription=e.sessionDescription,this.sessionId=e.sessionId,this.isInHouse=e.isInHouse,this.isBasicSkills=e.isBasicSkills,this.cost=e.cost,this.credits=e.credits,this.valAllLic=e.valAllLic,this.methodTypeDesc=e.methodTypeDesc,this.locationName=e.locationName,this.isInternational=e.isInternational,this.stateAbbreviation=e.stateAbbreviation,this.address=e.address,this.zip=e.zip,this.city=e.city,this.countryName=e.countryName,this.startDate=e.startDate,this.endDate=e.endDate,this.licenseList=e.licenseList,this.sessionUrl=e.sessionUrl,this.evalMethod=e.evalMethod,this.distributedMaterials=e.distributedMaterials)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).rowNumber=this.rowNumber,e.pcamIdNumber=this.pcamIdNumber,e.sessionTitle=this.sessionTitle,e.sessionDescription=this.sessionDescription,e.sessionId=this.sessionId,e.isInHouse=this.isInHouse,e.isBasicSkills=this.isBasicSkills,e.cost=this.cost,e.credits=this.credits,e.valAllLic=this.valAllLic,e.methodTypeDesc=this.methodTypeDesc,e.locationName=this.locationName,e.isInternational=this.isInternational,e.stateAbbreviation=this.stateAbbreviation,e.address=this.address,e.zip=this.zip,e.city=this.city,e.countryName=this.countryName,e.startDate=this.startDate,e.endDate=this.endDate,e.licenseList=this.licenseList,e.sessionUrl=this.sessionUrl,e.evalMethod=this.evalMethod,e.distributedMaterials=this.distributedMaterials,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fd=function(){function e(t){if(Object(l.a)(this,e),this.reports=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.reports)){this.reports=[];var t,i=Object(s.a)(e.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.reports.push(td.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.reports)){e.reports=[];var t,i=Object(s.a)(this.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.reports.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),md=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.userId=void 0,this.providerName=void 0,this.title=void 0,this.completionDate=void 0,this.isInstructor=void 0,this.courseFormatId=void 0,this.earned=void 0,this.fCredits=void 0,this.pdCredits=void 0,this.sCredits=void 0,this.cCredits=void 0,this.tcCredits=void 0,this.iCredits=void 0,this.pCredits=void 0,this.eCredits=void 0,this.isNasbaApproved=void 0,this.isSelfStudyAdjusted=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId,this.providerName=e.providerName,this.title=e.title,this.completionDate=e.completionDate,this.isInstructor=e.isInstructor,this.courseFormatId=e.courseFormatId,this.earned=e.earned,this.fCredits=e.fCredits,this.pdCredits=e.pdCredits,this.sCredits=e.sCredits,this.cCredits=e.cCredits,this.tcCredits=e.tcCredits,this.iCredits=e.iCredits,this.pCredits=e.pCredits,this.eCredits=e.eCredits,this.isNasbaApproved=e.isNasbaApproved,this.isSelfStudyAdjusted=e.isSelfStudyAdjusted)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e.providerName=this.providerName,e.title=this.title,e.completionDate=this.completionDate,e.isInstructor=this.isInstructor,e.courseFormatId=this.courseFormatId,e.earned=this.earned,e.fCredits=this.fCredits,e.pdCredits=this.pdCredits,e.sCredits=this.sCredits,e.cCredits=this.cCredits,e.tcCredits=this.tcCredits,e.iCredits=this.iCredits,e.pCredits=this.pCredits,e.eCredits=this.eCredits,e.isNasbaApproved=this.isNasbaApproved,e.isSelfStudyAdjusted=this.isSelfStudyAdjusted,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yd=function(){function e(t){if(Object(l.a)(this,e),this.name=void 0,this.address=void 0,this.email=void 0,this.firmName=void 0,this.phone=void 0,this.birthYear=void 0,this.yearOnePDCredits=void 0,this.yearTwoPDCredits=void 0,this.courseList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.name=e.name,this.address=e.address,this.email=e.email,this.firmName=e.firmName,this.phone=e.phone,this.birthYear=e.birthYear,this.yearOnePDCredits=e.yearOnePDCredits,this.yearTwoPDCredits=e.yearTwoPDCredits,Array.isArray(e.courseList))){this.courseList=[];var t,i=Object(s.a)(e.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseList.push(md.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).name=this.name,e.address=this.address,e.email=this.email,e.firmName=this.firmName,e.phone=this.phone,e.birthYear=this.birthYear,e.yearOnePDCredits=this.yearOnePDCredits,e.yearTwoPDCredits=this.yearTwoPDCredits,Array.isArray(this.courseList)){e.courseList=[];var t,i=Object(s.a)(this.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gd=function(){function e(t){if(Object(l.a)(this,e),this.userReports=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userReports)){this.userReports=[];var t,i=Object(s.a)(e.userReports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userReports.push(yd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userReports)){e.userReports=[];var t,i=Object(s.a)(this.userReports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userReports.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bd=function(){function e(t){if(Object(l.a)(this,e),this.title=void 0,this.sessionTitle=void 0,this.isAppropriateForNewlyAdmittedAttorneys=void 0,this.hasEthicsCredits=void 0,this.hasDiversityCredits=void 0,this.hasCybersecurityEthicsCredits=void 0,this.hasCybersecurityGeneralCredits=void 0,this.sessionDate=void 0,this.countyName=void 0,this.averageFeeLiveFormat=void 0,this.averageFeeRecordedFormat=void 0,this.averageFeeOtherFormat=void 0,this.totalCreditHours=void 0,this.financialAidRequests=void 0,this.financialAidRequestsGranted=void 0,this.format1=void 0,this.format2=void 0,this.format3=void 0,this.format4=void 0,this.format5=void 0,this.format6=void 0,this.format=void 0,this.otherFormats=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.title=e.title,this.sessionTitle=e.sessionTitle,this.isAppropriateForNewlyAdmittedAttorneys=e.isAppropriateForNewlyAdmittedAttorneys,this.hasEthicsCredits=e.hasEthicsCredits,this.hasDiversityCredits=e.hasDiversityCredits,this.hasCybersecurityEthicsCredits=e.hasCybersecurityEthicsCredits,this.hasCybersecurityGeneralCredits=e.hasCybersecurityGeneralCredits,this.sessionDate=e.sessionDate?new Date(e.sessionDate.toString()):void 0,this.countyName=e.countyName,this.averageFeeLiveFormat=e.averageFeeLiveFormat,this.averageFeeRecordedFormat=e.averageFeeRecordedFormat,this.averageFeeOtherFormat=e.averageFeeOtherFormat,this.totalCreditHours=e.totalCreditHours,this.financialAidRequests=e.financialAidRequests,this.financialAidRequestsGranted=e.financialAidRequestsGranted,this.format1=e.format1,this.format2=e.format2,this.format3=e.format3,this.format4=e.format4,this.format5=e.format5,this.format6=e.format6,this.format=e.format,this.otherFormats=e.otherFormats)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).title=this.title,e.sessionTitle=this.sessionTitle,e.isAppropriateForNewlyAdmittedAttorneys=this.isAppropriateForNewlyAdmittedAttorneys,e.hasEthicsCredits=this.hasEthicsCredits,e.hasDiversityCredits=this.hasDiversityCredits,e.hasCybersecurityEthicsCredits=this.hasCybersecurityEthicsCredits,e.hasCybersecurityGeneralCredits=this.hasCybersecurityGeneralCredits,e.sessionDate=this.sessionDate?this.sessionDate.toISOString():void 0,e.countyName=this.countyName,e.averageFeeLiveFormat=this.averageFeeLiveFormat,e.averageFeeRecordedFormat=this.averageFeeRecordedFormat,e.averageFeeOtherFormat=this.averageFeeOtherFormat,e.totalCreditHours=this.totalCreditHours,e.financialAidRequests=this.financialAidRequests,e.financialAidRequestsGranted=this.financialAidRequestsGranted,e.format1=this.format1,e.format2=this.format2,e.format3=this.format3,e.format4=this.format4,e.format5=this.format5,e.format6=this.format6,e.format=this.format,e.otherFormats=this.otherFormats,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sd=function(){function e(t){if(Object(l.a)(this,e),this.providerName=void 0,this.address=void 0,this.contactPerson=void 0,this.telephone=void 0,this.email=void 0,this.format1InsideNYCount=void 0,this.format1OutsideNYCount=void 0,this.format2Count=void 0,this.format3Count=void 0,this.format4Count=void 0,this.format5Count=void 0,this.format6Count=void 0,this.otherFormats=void 0,this.ethicsCount=void 0,this.diversityCount=void 0,this.cybersecurityEthicsCount=void 0,this.cybersecurityGeneralCount=void 0,this.financialAidRequestsCount=void 0,this.financialAidRequestsGrantedCount=void 0,this.activityTableRows=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.providerName=e.providerName,this.address=e.address,this.contactPerson=e.contactPerson,this.telephone=e.telephone,this.email=e.email,this.format1InsideNYCount=e.format1InsideNYCount,this.format1OutsideNYCount=e.format1OutsideNYCount,this.format2Count=e.format2Count,this.format3Count=e.format3Count,this.format4Count=e.format4Count,this.format5Count=e.format5Count,this.format6Count=e.format6Count,this.otherFormats=e.otherFormats,this.ethicsCount=e.ethicsCount,this.diversityCount=e.diversityCount,this.cybersecurityEthicsCount=e.cybersecurityEthicsCount,this.cybersecurityGeneralCount=e.cybersecurityGeneralCount,this.financialAidRequestsCount=e.financialAidRequestsCount,this.financialAidRequestsGrantedCount=e.financialAidRequestsGrantedCount,Array.isArray(e.activityTableRows))){this.activityTableRows=[];var t,i=Object(s.a)(e.activityTableRows);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activityTableRows.push(bd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).providerName=this.providerName,e.address=this.address,e.contactPerson=this.contactPerson,e.telephone=this.telephone,e.email=this.email,e.format1InsideNYCount=this.format1InsideNYCount,e.format1OutsideNYCount=this.format1OutsideNYCount,e.format2Count=this.format2Count,e.format3Count=this.format3Count,e.format4Count=this.format4Count,e.format5Count=this.format5Count,e.format6Count=this.format6Count,e.otherFormats=this.otherFormats,e.ethicsCount=this.ethicsCount,e.diversityCount=this.diversityCount,e.cybersecurityEthicsCount=this.cybersecurityEthicsCount,e.cybersecurityGeneralCount=this.cybersecurityGeneralCount,e.financialAidRequestsCount=this.financialAidRequestsCount,e.financialAidRequestsGrantedCount=this.financialAidRequestsGrantedCount,Array.isArray(this.activityTableRows)){e.activityTableRows=[];var t,i=Object(s.a)(this.activityTableRows);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activityTableRows.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ed=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.sessionId=void 0,this.title=void 0,this.deliveryMethod=void 0,this.cpeCredits=void 0,this.date=void 0,this.fosCreditList=void 0,this.location=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.sessionId=e.sessionId,this.title=e.title,this.deliveryMethod=e.deliveryMethod,this.cpeCredits=e.cpeCredits,this.date=e.date,Array.isArray(e.fosCreditList)){this.fosCreditList=[];var t,i=Object(s.a)(e.fosCreditList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.fosCreditList.push(Id.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.location=e.location}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.sessionId=this.sessionId,e.title=this.title,e.deliveryMethod=this.deliveryMethod,e.cpeCredits=this.cpeCredits,e.date=this.date,Array.isArray(this.fosCreditList)){e.fosCreditList=[];var t,i=Object(s.a)(this.fosCreditList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.fosCreditList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.location=this.location,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Id=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.creditName=void 0,this.creditValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.creditName=e.creditName,this.creditValue=e.creditValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.creditName=this.creditName,e.creditValue=this.creditValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Od=function(){function e(t){if(Object(l.a)(this,e),this.programList=void 0,this.programCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.programList)){this.programList=[];var t,i=Object(s.a)(e.programList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.programList.push(Ed.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.programCount=e.programCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.programList)){e.programList=[];var t,i=Object(s.a)(this.programList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.programList.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.programCount=this.programCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cd=function(){function e(t){if(Object(l.a)(this,e),this.tenantId=void 0,this.tenantName=void 0,this.token=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.tenantId=e.tenantId,this.tenantName=e.tenantName,this.token=e.token)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tenantId=this.tenantId,e.tenantName=this.tenantName,e.token=this.token,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Izenda=1]="Izenda",e[e.Html=2]="Html"}(_c||(_c={}));var xd,jd=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.retroactiveCredit=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.retroactiveCredit=e.retroactiveCredit)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.retroactiveCredit=this.retroactiveCredit,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wd=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.apiClientId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.apiClientId=e.apiClientId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.apiClientId=this.apiClientId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pd=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isDefault=void 0,this.isSystem=void 0,this.type=void 0,this.subRoleType=void 0,this.lastModifiedDate=void 0,this.createdDate=void 0,this.roleApiClients=void 0,this.rolePermissionSets=void 0,this.roleLicenseLimitations=void 0,this.userCount=void 0,this.isRoleSettingsEnabled=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.roleId=e.roleId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isDefault=e.isDefault,this.isSystem=e.isSystem,this.type=e.type,this.subRoleType=e.subRoleType,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,Array.isArray(e.roleApiClients)){this.roleApiClients=[];var t,i=Object(s.a)(e.roleApiClients);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleApiClients.push(wd.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.rolePermissionSets)){this.rolePermissionSets=[];var n,a=Object(s.a)(e.rolePermissionSets);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.rolePermissionSets.push(Nd.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.roleLicenseLimitations)){this.roleLicenseLimitations=[];var l,c=Object(s.a)(e.roleLicenseLimitations);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.roleLicenseLimitations.push(Td.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.userCount=e.userCount,this.isRoleSettingsEnabled=e.isRoleSettingsEnabled}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isDefault=this.isDefault,e.isSystem=this.isSystem,e.type=this.type,e.subRoleType=this.subRoleType,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,Array.isArray(this.roleApiClients)){e.roleApiClients=[];var t,i=Object(s.a)(this.roleApiClients);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleApiClients.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.rolePermissionSets)){e.rolePermissionSets=[];var n,a=Object(s.a)(this.rolePermissionSets);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.rolePermissionSets.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.roleLicenseLimitations)){e.roleLicenseLimitations=[];var l,c=Object(s.a)(this.roleLicenseLimitations);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.roleLicenseLimitations.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.userCount=this.userCount,e.isRoleSettingsEnabled=this.isRoleSettingsEnabled,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Td=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.licenseId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.licenseId=e.licenseId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.licenseId=this.licenseId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ad=function(){function e(t){if(Object(l.a)(this,e),this.roles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.roles)){this.roles=[];var t,i=Object(s.a)(e.roles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roles.push(Pd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roles)){e.roles=[];var t,i=Object(s.a)(this.roles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roles.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nd=function(){function e(t){if(Object(l.a)(this,e),this.permissionSetId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.permissionSetId=e.permissionSetId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).permissionSetId=this.permissionSetId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Administrator=1]="Administrator",e[e.Client=2]="Client",e[e.Employee=3]="Employee",e[e.GlobalWorkAdministrator=4]="GlobalWorkAdministrator",e[e.GlobalWorkManager=5]="GlobalWorkManager",e[e.GlobalWorkEmployee=6]="GlobalWorkEmployee",e[e.ApiClient=7]="ApiClient",e[e.LawCruitBizCruitAdministrator=8]="LawCruitBizCruitAdministrator",e[e.LawCruitBizCruitEmployee=9]="LawCruitBizCruitEmployee",e[e.LawCruitBizCruitInterviewer=10]="LawCruitBizCruitInterviewer",e[e.LawCruitBizCruitHiringManager=11]="LawCruitBizCruitHiringManager",e[e.LawCruitBizCruitSummerAssociate=12]="LawCruitBizCruitSummerAssociate"}(xd||(xd={}));var kd,Dd=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.userId=void 0,this.canBeDeleted=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.avatar=void 0,this.isActive=void 0,this.userType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.userId=e.userId,this.canBeDeleted=e.canBeDeleted,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.avatar=e.avatar,this.isActive=e.isActive,this.userType=e.userType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.userId=this.userId,e.canBeDeleted=this.canBeDeleted,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.avatar=this.avatar,e.isActive=this.isActive,e.userType=this.userType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ld=function(){function e(t){if(Object(l.a)(this,e),this.userRoles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userRoles)){this.userRoles=[];var t,i=Object(s.a)(e.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRoles.push(Dd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userRoles)){e.userRoles=[];var t,i=Object(s.a)(this.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRoles.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jd=function(){function e(t){if(Object(l.a)(this,e),this.roomId=void 0,this.locationId=void 0,this.location=void 0,this.name=void 0,this.capacity=void 0,this.isActive=void 0,this.code=void 0,this.sessionCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roomId=e.roomId,this.locationId=e.locationId,this.location=e.location,this.name=e.name,this.capacity=e.capacity,this.isActive=e.isActive,this.code=e.code,this.sessionCount=e.sessionCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roomId=this.roomId,e.locationId=this.locationId,e.location=this.location,e.name=this.name,e.capacity=this.capacity,e.isActive=this.isActive,e.code=this.code,e.sessionCount=this.sessionCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fd=function(){function e(t){if(Object(l.a)(this,e),this.rooms=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.rooms)){this.rooms=[];var t,i=Object(s.a)(e.rooms);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rooms.push(Jd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.rooms)){e.rooms=[];var t,i=Object(s.a)(this.rooms);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rooms.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bd=function(){function e(t){if(Object(l.a)(this,e),this.rulesHistoryTimelineId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.programmedDate=void 0,this.description=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.rulesHistoryTimelineId=e.rulesHistoryTimelineId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.programmedDate=e.programmedDate?new Date(e.programmedDate.toString()):void 0,this.description=e.description)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).rulesHistoryTimelineId=this.rulesHistoryTimelineId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.programmedDate=this.programmedDate?this.programmedDate.toISOString():void 0,e.description=this.description,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rd=function(){function e(t){if(Object(l.a)(this,e),this.savedEmailTemplateId=void 0,this.key=void 0,this.emailTemplateId=void 0,this.sendAsUserId=void 0,this.replyToUserId=void 0,this.emailAlias=void 0,this.subject=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.includeMaterials=void 0,this.includeMatchedSessionsOnly=void 0,this.includeLicensesHeldOnly=void 0,this.body=void 0,this.emailTemplate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.savedEmailTemplateId=e.savedEmailTemplateId,this.key=e.key,this.emailTemplateId=e.emailTemplateId,this.sendAsUserId=e.sendAsUserId,this.replyToUserId=e.replyToUserId,this.emailAlias=e.emailAlias,this.subject=e.subject,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.includeMaterials=e.includeMaterials,this.includeMatchedSessionsOnly=e.includeMatchedSessionsOnly,this.includeLicensesHeldOnly=e.includeLicensesHeldOnly,this.body=e.body,this.emailTemplate=e.emailTemplate?Nn.fromJS(e.emailTemplate):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).savedEmailTemplateId=this.savedEmailTemplateId,e.key=this.key,e.emailTemplateId=this.emailTemplateId,e.sendAsUserId=this.sendAsUserId,e.replyToUserId=this.replyToUserId,e.emailAlias=this.emailAlias,e.subject=this.subject,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.includeMaterials=this.includeMaterials,e.includeMatchedSessionsOnly=this.includeMatchedSessionsOnly,e.includeLicensesHeldOnly=this.includeLicensesHeldOnly,e.body=this.body,e.emailTemplate=this.emailTemplate?this.emailTemplate.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ud=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userSavedFilterId=void 0,this.courseSavedFilterId=void 0,this.calendarSavedFilterId=void 0,this.activitySavedFilterId=void 0,this.complianceLicenseeSavedFilterId=void 0,this.learningPlanSavedFilterId=void 0,this.securityUserSavedFilterId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.userSavedFilterId=e.userSavedFilterId,this.courseSavedFilterId=e.courseSavedFilterId,this.calendarSavedFilterId=e.calendarSavedFilterId,this.activitySavedFilterId=e.activitySavedFilterId,this.complianceLicenseeSavedFilterId=e.complianceLicenseeSavedFilterId,this.learningPlanSavedFilterId=e.learningPlanSavedFilterId,this.securityUserSavedFilterId=e.securityUserSavedFilterId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.userSavedFilterId=this.userSavedFilterId,e.courseSavedFilterId=this.courseSavedFilterId,e.calendarSavedFilterId=this.calendarSavedFilterId,e.activitySavedFilterId=this.activitySavedFilterId,e.complianceLicenseeSavedFilterId=this.complianceLicenseeSavedFilterId,e.learningPlanSavedFilterId=this.learningPlanSavedFilterId,e.securityUserSavedFilterId=this.securityUserSavedFilterId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gd=function(){function e(t){if(Object(l.a)(this,e),this.sessionEvaluationId=void 0,this.answers=void 0,this.isSubmit=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionEvaluationId=e.sessionEvaluationId,Array.isArray(e.answers)){this.answers=[];var t,i=Object(s.a)(e.answers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.answers.push(uu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.isSubmit=e.isSubmit}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionEvaluationId=this.sessionEvaluationId,Array.isArray(this.answers)){e.answers=[];var t,i=Object(s.a)(this.answers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.answers.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.isSubmit=this.isSubmit,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qd=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantIds=void 0,this.requestedBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipantIds)){this.sessionParticipantIds=[];var t,i=Object(s.a)(e.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.requestedBy=e.requestedBy}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipantIds)){e.sessionParticipantIds=[];var t,i=Object(s.a)(this.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.requestedBy=this.requestedBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Md=function(){function e(t){if(Object(l.a)(this,e),this.title=void 0,this.scormCourseId=void 0,this.score=void 0,this.duration=void 0,this.status=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.title=e.title,this.scormCourseId=e.scormCourseId,this.score=e.score,this.duration=e.duration,this.status=e.status)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).title=this.title,e.scormCourseId=this.scormCourseId,e.score=this.score,e.duration=this.duration,e.status=this.status,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zd=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.providerName=void 0,this.providerId=void 0,this.isArchived=void 0,this.sessionCount=void 0,this.courseIdLabel=void 0,this.sessionFormats=void 0,this.coursePracticeArea=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.title=e.title,this.providerName=e.providerName,this.providerId=e.providerId,this.isArchived=e.isArchived,this.sessionCount=e.sessionCount,this.courseIdLabel=e.courseIdLabel,Array.isArray(e.sessionFormats)){this.sessionFormats=[];var t,i=Object(s.a)(e.sessionFormats);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionFormats.push(zi.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var n,a=Object(s.a)(e.coursePracticeArea);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.coursePracticeArea.push(Yi.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.providerName=this.providerName,e.providerId=this.providerId,e.isArchived=this.isArchived,e.sessionCount=this.sessionCount,e.courseIdLabel=this.courseIdLabel,Array.isArray(this.sessionFormats)){e.sessionFormats=[];var t,i=Object(s.a)(this.sessionFormats);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionFormats.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var n,a=Object(s.a)(this.coursePracticeArea);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.coursePracticeArea.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wd=function(){function e(t){if(Object(l.a)(this,e),this.criterionId=void 0,this.criteriaFieldId=void 0,this.title=void 0,this.content=void 0,this.comparison=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.criterionId=e.criterionId,this.criteriaFieldId=e.criteriaFieldId,this.title=e.title,this.content=e.content,this.comparison=e.comparison)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).criterionId=this.criterionId,e.criteriaFieldId=this.criteriaFieldId,e.title=this.title,e.content=this.content,e.comparison=this.comparison,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vd=function(){function e(t){if(Object(l.a)(this,e),this.securityGroupId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.lastModifiedDate=void 0,this.createdDate=void 0,this.createdBy=void 0,this.lastModifiedBy=void 0,this.userCount=void 0,this.removeIfNotMetCriteria=void 0,this.securityGroupUsers=void 0,this.securityGroupCriteria=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.securityGroupId=e.securityGroupId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.createdBy=e.createdBy,this.lastModifiedBy=e.lastModifiedBy,this.userCount=e.userCount,this.removeIfNotMetCriteria=e.removeIfNotMetCriteria,Array.isArray(e.securityGroupUsers)){this.securityGroupUsers=[];var t,i=Object(s.a)(e.securityGroupUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.securityGroupUsers.push(Hd.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.securityGroupCriteria)){this.securityGroupCriteria=[];var n,a=Object(s.a)(e.securityGroupCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.securityGroupCriteria.push(Wd.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).securityGroupId=this.securityGroupId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.createdBy=this.createdBy,e.lastModifiedBy=this.lastModifiedBy,e.userCount=this.userCount,e.removeIfNotMetCriteria=this.removeIfNotMetCriteria,Array.isArray(this.securityGroupUsers)){e.securityGroupUsers=[];var t,i=Object(s.a)(this.securityGroupUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.securityGroupUsers.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.securityGroupCriteria)){e.securityGroupCriteria=[];var n,a=Object(s.a)(this.securityGroupCriteria);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.securityGroupCriteria.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_d=function(){function e(t){if(Object(l.a)(this,e),this.securityGroupId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.securityGroupId=e.securityGroupId,this.name=e.name,this.description=e.description,this.isActive=e.isActive)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).securityGroupId=this.securityGroupId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yd=function(){function e(t){if(Object(l.a)(this,e),this.securityGroups=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.securityGroups)){this.securityGroups=[];var t,i=Object(s.a)(e.securityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.securityGroups.push(_d.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.securityGroups)){e.securityGroups=[];var t,i=Object(s.a)(this.securityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.securityGroups.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$d=function(){function e(t){if(Object(l.a)(this,e),this.securityGroups=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.securityGroups)){this.securityGroups=[];var t,i=Object(s.a)(e.securityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.securityGroups.push(Vd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.securityGroups)){e.securityGroups=[];var t,i=Object(s.a)(this.securityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.securityGroups.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hd=function(){function e(t){if(Object(l.a)(this,e),this.securityGroupId=void 0,this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.avatar=void 0,this.isIncluded=void 0,this.personnelId=void 0,this.inactiveDate=void 0,this.criteriaStatus=void 0,this.userType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.securityGroupId=e.securityGroupId,this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.avatar=e.avatar,this.isIncluded=e.isIncluded,this.personnelId=e.personnelId,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.criteriaStatus=e.criteriaStatus,this.userType=e.userType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).securityGroupId=this.securityGroupId,e.userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.avatar=this.avatar,e.isIncluded=this.isIncluded,e.personnelId=this.personnelId,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.criteriaStatus=this.criteriaStatus,e.userType=this.userType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kd=function(){function e(t){if(Object(l.a)(this,e),this.securityGroupUser=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.securityGroupUser)){this.securityGroupUser=[];var t,i=Object(s.a)(e.securityGroupUser);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.securityGroupUser.push(Hd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.securityGroupUser)){e.securityGroupUser=[];var t,i=Object(s.a)(this.securityGroupUser);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.securityGroupUser.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qd=function(){function e(t){if(Object(l.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?wh.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zd=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userType=void 0,this.userName=void 0,this.idpId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.phone=void 0,this.isActive=void 0,this.portalAccessEnabled=void 0,this.emailVerified=void 0,this.smsMfaEnabled=void 0,this.inactiveDate=void 0,this.passwordAge=void 0,this.lastActivityDate=void 0,this.createdDate=void 0,this.createdBy=void 0,this.lastModifiedDate=void 0,this.lastModifiedBy=void 0,this.userSecurityGroups=void 0,this.userRoles=void 0,this.userApplicationAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.userType=e.userType,this.userName=e.userName,this.idpId=e.idpId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.phone=e.phone,this.isActive=e.isActive,this.portalAccessEnabled=e.portalAccessEnabled,this.emailVerified=e.emailVerified,this.smsMfaEnabled=e.smsMfaEnabled,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.passwordAge=e.passwordAge?new Date(e.passwordAge.toString()):void 0,this.lastActivityDate=e.lastActivityDate?new Date(e.lastActivityDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.createdBy=e.createdBy,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.lastModifiedBy=e.lastModifiedBy,Array.isArray(e.userSecurityGroups)){this.userSecurityGroups=[];var t,i=Object(s.a)(e.userSecurityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userSecurityGroups.push(iu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.userRoles)){this.userRoles=[];var n,a=Object(s.a)(e.userRoles);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userRoles.push(tu.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.userApplicationAccess)){this.userApplicationAccess=[];var l,c=Object(s.a)(e.userApplicationAccess);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userApplicationAccess.push(Qd.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.userName=this.userName,e.idpId=this.idpId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.phone=this.phone,e.isActive=this.isActive,e.portalAccessEnabled=this.portalAccessEnabled,e.emailVerified=this.emailVerified,e.smsMfaEnabled=this.smsMfaEnabled,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.passwordAge=this.passwordAge?this.passwordAge.toISOString():void 0,e.lastActivityDate=this.lastActivityDate?this.lastActivityDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.createdBy=this.createdBy,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.lastModifiedBy=this.lastModifiedBy,Array.isArray(this.userSecurityGroups)){e.userSecurityGroups=[];var t,i=Object(s.a)(this.userSecurityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userSecurityGroups.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.userRoles)){e.userRoles=[];var n,a=Object(s.a)(this.userRoles);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userRoles.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.userApplicationAccess)){e.userApplicationAccess=[];var l,c=Object(s.a)(this.userApplicationAccess);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userApplicationAccess.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xd=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userType=void 0,this.userName=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.isActive=void 0,this.emailVerified=void 0,this.inactiveDate=void 0,this.userAvatarThumbnailURl=void 0,this.userSecurityGroups=void 0,this.userRoles=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.userType=e.userType,this.userName=e.userName,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.isActive=e.isActive,this.emailVerified=e.emailVerified,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl,Array.isArray(e.userSecurityGroups)){this.userSecurityGroups=[];var t,i=Object(s.a)(e.userSecurityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userSecurityGroups.push(iu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userRoles)){this.userRoles=[];var n,a=Object(s.a)(e.userRoles);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userRoles.push(tu.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.userName=this.userName,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.isActive=this.isActive,e.emailVerified=this.emailVerified,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,Array.isArray(this.userSecurityGroups)){e.userSecurityGroups=[];var t,i=Object(s.a)(this.userSecurityGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userSecurityGroups.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.userRoles)){e.userRoles=[];var n,a=Object(s.a)(this.userRoles);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userRoles.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),eu=function(){function e(t){if(Object(l.a)(this,e),this.securityUsers=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.securityUsers)){this.securityUsers=[];var t,i=Object(s.a)(e.securityUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.securityUsers.push(Xd.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.securityUsers)){e.securityUsers=[];var t,i=Object(s.a)(this.securityUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.securityUsers.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tu=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.roleId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.roleId=e.roleId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.roleId=this.roleId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),iu=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.securityGroupId=void 0,this.name=void 0,this.criteriaStatus=void 0,this.isIncluded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.securityGroupId=e.securityGroupId,this.name=e.name,this.criteriaStatus=e.criteriaStatus,this.isIncluded=e.isIncluded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.securityGroupId=this.securityGroupId,e.name=this.name,e.criteriaStatus=this.criteriaStatus,e.isIncluded=this.isIncluded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.DoNotSendToResponded=0]="DoNotSendToResponded",e[e.SendToAll=1]="SendToAll"}(kd||(kd={}));var ru,nu=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.userId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),au=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.code=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.courseIdLabel=void 0,this.providerId=void 0,this.provider=void 0,this.isCourseArchived=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.cost=void 0,this.detail=void 0,this.duration=void 0,this.isRegistrationApprovalNeeded=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.attendanceFormId=void 0,this.evaluation=void 0,this.areQuestionsAllowed=void 0,this.launchUrl=void 0,this.url=void 0,this.note=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.isInHouse=void 0,this.isOnlineLearning=void 0,this.cancelledDate=void 0,this.withAnsweredEvaluation=void 0,this.isSessionSettingsEnabled=void 0,this.sessionInstructors=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionParticipant=void 0,this.sessionMaterials=void 0,this.sessionMediaFiles=void 0,this.guid=void 0,this.registeredParticipantCount=void 0,this.tentativeParticipantCount=void 0,this.validatedParticipantCount=void 0,this.inProgressParticipantCount=void 0,this.disqualifiedParticipantCount=void 0,this.failedParticipantCount=void 0,this.unexcusedParticipantCount=void 0,this.waitlistParticipantCount=void 0,this.sessionLink=void 0,this.isSessionAttendanceValidated=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.code=e.code,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.courseIdLabel=e.courseIdLabel,this.providerId=e.providerId,this.provider=e.provider,this.isCourseArchived=e.isCourseArchived,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.cost=e.cost,this.detail=e.detail,this.duration=e.duration,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.attendanceFormId=e.attendanceFormId,this.evaluation=e.evaluation,this.areQuestionsAllowed=e.areQuestionsAllowed,this.launchUrl=e.launchUrl,this.url=e.url,this.note=e.note,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,this.isInHouse=e.isInHouse,this.isOnlineLearning=e.isOnlineLearning,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.withAnsweredEvaluation=e.withAnsweredEvaluation,this.isSessionSettingsEnabled=e.isSessionSettingsEnabled,Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var t,i=Object(s.a)(e.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionInstructors.push(r)}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var n,a=Object(s.a)(e.sessionApprovers);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionApprovers.push(nu.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var l,c=Object(s.a)(e.sessionLicenses);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionLicenses.push(ju.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.sessionParticipant)){this.sessionParticipant=[];var u,h=Object(s.a)(e.sessionParticipant);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionParticipant.push(Uu.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var p,f=Object(s.a)(e.sessionMaterials);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.sessionMaterials.push(Du.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var y,g=Object(s.a)(e.sessionMediaFiles);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.sessionMediaFiles.push(Lu.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}this.guid=e.guid,this.registeredParticipantCount=e.registeredParticipantCount,this.tentativeParticipantCount=e.tentativeParticipantCount,this.validatedParticipantCount=e.validatedParticipantCount,this.inProgressParticipantCount=e.inProgressParticipantCount,this.disqualifiedParticipantCount=e.disqualifiedParticipantCount,this.failedParticipantCount=e.failedParticipantCount,this.unexcusedParticipantCount=e.unexcusedParticipantCount,this.waitlistParticipantCount=e.waitlistParticipantCount,this.sessionLink=e.sessionLink,this.isSessionAttendanceValidated=e.isSessionAttendanceValidated}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.code=this.code,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.courseIdLabel=this.courseIdLabel,e.providerId=this.providerId,e.provider=this.provider,e.isCourseArchived=this.isCourseArchived,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.cost=this.cost,e.detail=this.detail,e.duration=this.duration,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.attendanceFormId=this.attendanceFormId,e.evaluation=this.evaluation,e.areQuestionsAllowed=this.areQuestionsAllowed,e.launchUrl=this.launchUrl,e.url=this.url,e.note=this.note,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,e.isInHouse=this.isInHouse,e.isOnlineLearning=this.isOnlineLearning,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.withAnsweredEvaluation=this.withAnsweredEvaluation,e.isSessionSettingsEnabled=this.isSessionSettingsEnabled,Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var t,i=Object(s.a)(this.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionInstructors.push(r)}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var n,a=Object(s.a)(this.sessionApprovers);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionApprovers.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var l,c=Object(s.a)(this.sessionLicenses);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionLicenses.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.sessionParticipant)){e.sessionParticipant=[];var u,h=Object(s.a)(this.sessionParticipant);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionParticipant.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var p,f=Object(s.a)(this.sessionMaterials);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.sessionMaterials.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var y,g=Object(s.a)(this.sessionMediaFiles);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.sessionMediaFiles.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e.guid=this.guid,e.registeredParticipantCount=this.registeredParticipantCount,e.tentativeParticipantCount=this.tentativeParticipantCount,e.validatedParticipantCount=this.validatedParticipantCount,e.inProgressParticipantCount=this.inProgressParticipantCount,e.disqualifiedParticipantCount=this.disqualifiedParticipantCount,e.failedParticipantCount=this.failedParticipantCount,e.unexcusedParticipantCount=this.unexcusedParticipantCount,e.waitlistParticipantCount=this.waitlistParticipantCount,e.sessionLink=this.sessionLink,e.isSessionAttendanceValidated=this.isSessionAttendanceValidated,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ou=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.mediaTypeId=void 0,this.title=void 0,this.code=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.courseTitle=void 0,this.courseIdLabel=void 0,this.providerId=void 0,this.provider=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezoneId=void 0,this.timeZone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.cost=void 0,this.detail=void 0,this.duration=void 0,this.isRegistrationApprovalNeeded=void 0,this.registrationLimit=void 0,this.isWaitlistingAllowed=void 0,this.evaluationId=void 0,this.evaluation=void 0,this.areQuestionsAllowed=void 0,this.launchUrl=void 0,this.url=void 0,this.note=void 0,this.isOpenToClient=void 0,this.isIndividualSessionDateAllowed=void 0,this.isPublished=void 0,this.isInHouse=void 0,this.isOnlineLearning=void 0,this.cancelledDate=void 0,this.withAnsweredEvaluation=void 0,this.sessionApprovers=void 0,this.sessionLicenses=void 0,this.sessionParticipant=void 0,this.sessionMaterials=void 0,this.sessionMediaFiles=void 0,this.sessionUsersWithRetro=void 0,this.guid=void 0,this.registeredParticipantCount=void 0,this.tentativeParticipantCount=void 0,this.validatedParticipantCount=void 0,this.inProgressParticipantCount=void 0,this.disqualifiedParticipantCount=void 0,this.failedParticipantCount=void 0,this.unexcusedParticipantCount=void 0,this.waitlistParticipantCount=void 0,this.sessionLink=void 0,this.isCourseArchived=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.courseId=e.courseId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.mediaTypeId=e.mediaTypeId,this.title=e.title,this.code=e.code,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.courseTitle=e.courseTitle,this.courseIdLabel=e.courseIdLabel,this.providerId=e.providerId,this.provider=e.provider,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezoneId=e.timezoneId,this.timeZone=e.timeZone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.cost=e.cost,this.detail=e.detail,this.duration=e.duration,this.isRegistrationApprovalNeeded=e.isRegistrationApprovalNeeded,this.registrationLimit=e.registrationLimit,this.isWaitlistingAllowed=e.isWaitlistingAllowed,this.evaluationId=e.evaluationId,this.evaluation=e.evaluation,this.areQuestionsAllowed=e.areQuestionsAllowed,this.launchUrl=e.launchUrl,this.url=e.url,this.note=e.note,this.isOpenToClient=e.isOpenToClient,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.isPublished=e.isPublished,this.isInHouse=e.isInHouse,this.isOnlineLearning=e.isOnlineLearning,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.withAnsweredEvaluation=e.withAnsweredEvaluation,Array.isArray(e.sessionApprovers)){this.sessionApprovers=[];var t,i=Object(s.a)(e.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionApprovers.push(nu.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var n,a=Object(s.a)(e.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenses.push(ju.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.sessionParticipant)){this.sessionParticipant=[];var l,c=Object(s.a)(e.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionParticipant.push(Gu.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var u,h=Object(s.a)(e.sessionMaterials);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionMaterials.push(Du.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var p,f=Object(s.a)(e.sessionMediaFiles);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.sessionMediaFiles.push(Lu.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.sessionUsersWithRetro)){this.sessionUsersWithRetro=[];var y,g=Object(s.a)(e.sessionUsersWithRetro);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.sessionUsersWithRetro.push(ch.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}this.guid=e.guid,this.registeredParticipantCount=e.registeredParticipantCount,this.tentativeParticipantCount=e.tentativeParticipantCount,this.validatedParticipantCount=e.validatedParticipantCount,this.inProgressParticipantCount=e.inProgressParticipantCount,this.disqualifiedParticipantCount=e.disqualifiedParticipantCount,this.failedParticipantCount=e.failedParticipantCount,this.unexcusedParticipantCount=e.unexcusedParticipantCount,this.waitlistParticipantCount=e.waitlistParticipantCount,this.sessionLink=e.sessionLink,this.isCourseArchived=e.isCourseArchived}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.mediaTypeId=this.mediaTypeId,e.title=this.title,e.code=this.code,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.courseTitle=this.courseTitle,e.courseIdLabel=this.courseIdLabel,e.providerId=this.providerId,e.provider=this.provider,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezoneId=this.timezoneId,e.timeZone=this.timeZone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.cost=this.cost,e.detail=this.detail,e.duration=this.duration,e.isRegistrationApprovalNeeded=this.isRegistrationApprovalNeeded,e.registrationLimit=this.registrationLimit,e.isWaitlistingAllowed=this.isWaitlistingAllowed,e.evaluationId=this.evaluationId,e.evaluation=this.evaluation,e.areQuestionsAllowed=this.areQuestionsAllowed,e.launchUrl=this.launchUrl,e.url=this.url,e.note=this.note,e.isOpenToClient=this.isOpenToClient,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.isPublished=this.isPublished,e.isInHouse=this.isInHouse,e.isOnlineLearning=this.isOnlineLearning,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.withAnsweredEvaluation=this.withAnsweredEvaluation,Array.isArray(this.sessionApprovers)){e.sessionApprovers=[];var t,i=Object(s.a)(this.sessionApprovers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionApprovers.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var n,a=Object(s.a)(this.sessionLicenses);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenses.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.sessionParticipant)){e.sessionParticipant=[];var l,c=Object(s.a)(this.sessionParticipant);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionParticipant.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var u,h=Object(s.a)(this.sessionMaterials);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionMaterials.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var p,f=Object(s.a)(this.sessionMediaFiles);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.sessionMediaFiles.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.sessionUsersWithRetro)){e.sessionUsersWithRetro=[];var y,g=Object(s.a)(this.sessionUsersWithRetro);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.sessionUsersWithRetro.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e.guid=this.guid,e.registeredParticipantCount=this.registeredParticipantCount,e.tentativeParticipantCount=this.tentativeParticipantCount,e.validatedParticipantCount=this.validatedParticipantCount,e.inProgressParticipantCount=this.inProgressParticipantCount,e.disqualifiedParticipantCount=this.disqualifiedParticipantCount,e.failedParticipantCount=this.failedParticipantCount,e.unexcusedParticipantCount=this.unexcusedParticipantCount,e.waitlistParticipantCount=this.waitlistParticipantCount,e.sessionLink=this.sessionLink,e.isCourseArchived=this.isCourseArchived,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),su=function(){function e(t){if(Object(l.a)(this,e),this.sessionEmailSettingId=void 0,this.sessionId=void 0,this.emailTypeId=void 0,this.scheduleOption=void 0,this.emailTemplateId=void 0,this.subject=void 0,this.replyToUserId=void 0,this.senderId=void 0,this.emailAlias=void 0,this.body=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.includeMaterials=void 0,this.includeMatchedSessionsOnly=void 0,this.lastSent=void 0,this.sessionEmailSettingRecurrenceId=void 0,this.schedules=void 0,this.recurrence=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionEmailSettingId=e.sessionEmailSettingId,this.sessionId=e.sessionId,this.emailTypeId=e.emailTypeId,this.scheduleOption=e.scheduleOption,this.emailTemplateId=e.emailTemplateId,this.subject=e.subject,this.replyToUserId=e.replyToUserId,this.senderId=e.senderId,this.emailAlias=e.emailAlias,this.body=e.body,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,this.includeMaterials=e.includeMaterials,this.includeMatchedSessionsOnly=e.includeMatchedSessionsOnly,this.lastSent=e.lastSent?new Date(e.lastSent.toString()):void 0,this.sessionEmailSettingRecurrenceId=e.sessionEmailSettingRecurrenceId,Array.isArray(e.schedules)){this.schedules=[];var t,i=Object(s.a)(e.schedules);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.schedules.push(du.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(this.recurrence=e.recurrence?cu.fromJS(e.recurrence):void 0,Array.isArray(e.recipients)){this.recipients=[];var n,a=Object(s.a)(e.recipients);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.recipients.push(Pn.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionEmailSettingId=this.sessionEmailSettingId,e.sessionId=this.sessionId,e.emailTypeId=this.emailTypeId,e.scheduleOption=this.scheduleOption,e.emailTemplateId=this.emailTemplateId,e.subject=this.subject,e.replyToUserId=this.replyToUserId,e.senderId=this.senderId,e.emailAlias=this.emailAlias,e.body=this.body,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,e.includeMaterials=this.includeMaterials,e.includeMatchedSessionsOnly=this.includeMatchedSessionsOnly,e.lastSent=this.lastSent?this.lastSent.toISOString():void 0,e.sessionEmailSettingRecurrenceId=this.sessionEmailSettingRecurrenceId,Array.isArray(this.schedules)){e.schedules=[];var t,i=Object(s.a)(this.schedules);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.schedules.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(e.recurrence=this.recurrence?this.recurrence.toJSON():void 0,Array.isArray(this.recipients)){e.recipients=[];var n,a=Object(s.a)(this.recipients);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.recipients.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lu=function(){function e(t){if(Object(l.a)(this,e),this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.settings)){this.settings=[];var t,i=Object(s.a)(e.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.settings.push(su.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.settings)){e.settings=[];var t,i=Object(s.a)(this.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.settings.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cu=function(){function e(t){if(Object(l.a)(this,e),this.sessionEmailSettingRecurrenceId=void 0,this.sessionEmailSettingId=void 0,this.frequency=void 0,this.startDate=void 0,this.endDate=void 0,this.time=void 0,this.timezoneId=void 0,this.timezoneCode=void 0,this.recurDayOfWeek=void 0,this.recurDay=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.jobId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionEmailSettingRecurrenceId=e.sessionEmailSettingRecurrenceId,this.sessionEmailSettingId=e.sessionEmailSettingId,this.frequency=e.frequency,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.time=e.time,this.timezoneId=e.timezoneId,this.timezoneCode=e.timezoneCode,this.recurDayOfWeek=e.recurDayOfWeek,this.recurDay=e.recurDay,this.monthlyOption=e.monthlyOption,this.monthlyDay=e.monthlyDay,this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.jobId=e.jobId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEmailSettingRecurrenceId=this.sessionEmailSettingRecurrenceId,e.sessionEmailSettingId=this.sessionEmailSettingId,e.frequency=this.frequency,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.time=this.time,e.timezoneId=this.timezoneId,e.timezoneCode=this.timezoneCode,e.recurDayOfWeek=this.recurDayOfWeek,e.recurDay=this.recurDay,e.monthlyOption=this.monthlyOption,e.monthlyDay=this.monthlyDay,e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.jobId=this.jobId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),du=function(){function e(t){if(Object(l.a)(this,e),this.sessionEmailSettingScheduleId=void 0,this.sessionEmailSettingId=void 0,this.processDate=void 0,this.processTime=void 0,this.timezoneId=void 0,this.timezoneCode=void 0,this.jobId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionEmailSettingScheduleId=e.sessionEmailSettingScheduleId,this.sessionEmailSettingId=e.sessionEmailSettingId,this.processDate=e.processDate?new Date(e.processDate.toString()):void 0,this.processTime=e.processTime,this.timezoneId=e.timezoneId,this.timezoneCode=e.timezoneCode,this.jobId=e.jobId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEmailSettingScheduleId=this.sessionEmailSettingScheduleId,e.sessionEmailSettingId=this.sessionEmailSettingId,e.processDate=this.processDate?this.processDate.toISOString():void 0,e.processTime=this.processTime,e.timezoneId=this.timezoneId,e.timezoneCode=this.timezoneCode,e.jobId=this.jobId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),uu=function(){function e(t){if(Object(l.a)(this,e),this.sessionEvaluationAnswerId=void 0,this.sessionEvaluationId=void 0,this.instructorId=void 0,this.questionId=void 0,this.answer=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionEvaluationAnswerId=e.sessionEvaluationAnswerId,this.sessionEvaluationId=e.sessionEvaluationId,this.instructorId=e.instructorId,this.questionId=e.questionId,this.answer=e.answer)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEvaluationAnswerId=this.sessionEvaluationAnswerId,e.sessionEvaluationId=this.sessionEvaluationId,e.instructorId=this.instructorId,e.questionId=this.questionId,e.answer=this.answer,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hu=function(){function e(t){if(Object(l.a)(this,e),this.evaluation=void 0,this.statistics=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.evaluation=e.evaluation?_n.fromJS(e.evaluation):void 0,Array.isArray(e.statistics))){this.statistics=[];var t,i=Object(s.a)(e.statistics);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.statistics.push(Ii.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).evaluation=this.evaluation?this.evaluation.toJSON():void 0,Array.isArray(this.statistics)){e.statistics=[];var t,i=Object(s.a)(this.statistics);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.statistics.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vu=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.courseIdLabel=void 0,this.title=void 0,this.provider=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.courseIdLabel=e.courseIdLabel,this.title=e.title,this.provider=e.provider)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.courseIdLabel=this.courseIdLabel,e.title=this.title,e.provider=this.provider,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pu=function(){function e(t){if(Object(l.a)(this,e),this.courseFormatId=void 0,this.name=void 0,this.portalCategory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseFormatId=e.courseFormatId,this.name=e.name,this.portalCategory=e.portalCategory)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseFormatId=this.courseFormatId,e.name=this.name,e.portalCategory=this.portalCategory,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fu=function(){function e(t){if(Object(l.a)(this,e),this.sessionEvaluationId=void 0,this.sessionId=void 0,this.userId=void 0,this.personnelId=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.avatar=void 0,this.email=void 0,this.validatedDate=void 0,this.requestDate=void 0,this.requestedBy=void 0,this.evaluationDate=void 0,this.declinedDate=void 0,this.status=void 0,this.location=void 0,this.userTypeId=void 0,this.userType=void 0,this.emails=void 0,this.sessionEvaluationAnswers=void 0,this.evaluation=void 0,this.departments=void 0,this.course=void 0,this.session=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionEvaluationId=e.sessionEvaluationId,this.sessionId=e.sessionId,this.userId=e.userId,this.personnelId=e.personnelId,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.avatar=e.avatar,this.email=e.email,this.validatedDate=e.validatedDate?new Date(e.validatedDate.toString()):void 0,this.requestDate=e.requestDate?new Date(e.requestDate.toString()):void 0,this.requestedBy=e.requestedBy,this.evaluationDate=e.evaluationDate?new Date(e.evaluationDate.toString()):void 0,this.declinedDate=e.declinedDate?new Date(e.declinedDate.toString()):void 0,this.status=e.status,this.location=e.location,this.userTypeId=e.userTypeId,this.userType=e.userType,Array.isArray(e.emails)){this.emails=[];var t,i=Object(s.a)(e.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emails.push(mu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionEvaluationAnswers)){this.sessionEvaluationAnswers=[];var n,a=Object(s.a)(e.sessionEvaluationAnswers);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionEvaluationAnswers.push(uu.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(this.evaluation=e.evaluation?_n.fromJS(e.evaluation):void 0,Array.isArray(e.departments)){this.departments=[];var l,c=Object(s.a)(e.departments);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.departments.push(lh.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.course=e.course?vu.fromJS(e.course):void 0,this.session=e.session?gu.fromJS(e.session):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionEvaluationId=this.sessionEvaluationId,e.sessionId=this.sessionId,e.userId=this.userId,e.personnelId=this.personnelId,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.avatar=this.avatar,e.email=this.email,e.validatedDate=this.validatedDate?this.validatedDate.toISOString():void 0,e.requestDate=this.requestDate?this.requestDate.toISOString():void 0,e.requestedBy=this.requestedBy,e.evaluationDate=this.evaluationDate?this.evaluationDate.toISOString():void 0,e.declinedDate=this.declinedDate?this.declinedDate.toISOString():void 0,e.status=this.status,e.location=this.location,e.userTypeId=this.userTypeId,e.userType=this.userType,Array.isArray(this.emails)){e.emails=[];var t,i=Object(s.a)(this.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emails.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.sessionEvaluationAnswers)){e.sessionEvaluationAnswers=[];var n,a=Object(s.a)(this.sessionEvaluationAnswers);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionEvaluationAnswers.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(e.evaluation=this.evaluation?this.evaluation.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var l,c=Object(s.a)(this.departments);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.departments.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.course=this.course?this.course.toJSON():void 0,e.session=this.session?this.session.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mu=function(){function e(t){if(Object(l.a)(this,e),this.sessionEvaluationEmailId=void 0,this.sessionEvaluationId=void 0,this.emailTransactionId=void 0,this.emailTransaction=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionEvaluationEmailId=e.sessionEvaluationEmailId,this.sessionEvaluationId=e.sessionEvaluationId,this.emailTransactionId=e.emailTransactionId,this.emailTransaction=e.emailTransaction?Bn.fromJS(e.emailTransaction):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEvaluationEmailId=this.sessionEvaluationEmailId,e.sessionEvaluationId=this.sessionEvaluationId,e.emailTransactionId=this.emailTransactionId,e.emailTransaction=this.emailTransaction?this.emailTransaction.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yu=function(){function e(t){if(Object(l.a)(this,e),this.evaluations=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.evaluations)){this.evaluations=[];var t,i=Object(s.a)(e.evaluations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluations.push(fu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.evaluations)){e.evaluations=[];var t,i=Object(s.a)(this.evaluations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluations.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gu=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.title=void 0,this.courseFormat=void 0,this.detail=void 0,this.location=void 0,this.room=void 0,this.startDate=void 0,this.startTime=void 0,this.endDate=void 0,this.endTime=void 0,this.timezone=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.title=e.title,this.courseFormat=e.courseFormat?pu.fromJS(e.courseFormat):void 0,this.detail=e.detail,this.location=e.location,this.room=e.room,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.startTime=e.startTime,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.endTime=e.endTime,this.timezone=e.timezone)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.title=this.title,e.courseFormat=this.courseFormat?this.courseFormat.toJSON():void 0,e.detail=this.detail,e.location=this.location,e.room=this.room,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.startTime=this.startTime,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.endTime=this.endTime,e.timezone=this.timezone,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bu=function(){function e(t){if(Object(l.a)(this,e),this.sessionEvaluationStatisticId=void 0,this.sessionId=void 0,this.questionId=void 0,this.instructorId=void 0,this.responses=void 0,this.comments=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionEvaluationStatisticId=e.sessionEvaluationStatisticId,this.sessionId=e.sessionId,this.questionId=e.questionId,this.instructorId=e.instructorId,this.responses=e.responses,this.comments=e.comments)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEvaluationStatisticId=this.sessionEvaluationStatisticId,e.sessionId=this.sessionId,e.questionId=this.questionId,e.instructorId=this.instructorId,e.responses=this.responses,e.comments=this.comments,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Su=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.title=void 0,this.courseFormat=void 0,this.courseTitle=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timeZone=void 0,this.location=void 0,this.room=void 0,this.isSessionSettingsEnabled=void 0,this.attendanceFormId=void 0,this.sessionLicenses=void 0,this.sessionParticipants=void 0,this.sessionInstructors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.title=e.title,this.courseFormat=e.courseFormat,this.courseTitle=e.courseTitle,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timeZone=e.timeZone,this.location=e.location,this.room=e.room,this.isSessionSettingsEnabled=e.isSessionSettingsEnabled,this.attendanceFormId=e.attendanceFormId,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(s.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(wu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionParticipants)){this.sessionParticipants=[];var n,a=Object(s.a)(e.sessionParticipants);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionParticipants.push(qu.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var l,c=Object(s.a)(e.sessionInstructors);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionInstructors.push(qu.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.title=this.title,e.courseFormat=this.courseFormat,e.courseTitle=this.courseTitle,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timeZone=this.timeZone,e.location=this.location,e.room=this.room,e.isSessionSettingsEnabled=this.isSessionSettingsEnabled,e.attendanceFormId=this.attendanceFormId,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(s.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.sessionParticipants)){e.sessionParticipants=[];var n,a=Object(s.a)(this.sessionParticipants);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionParticipants.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var l,c=Object(s.a)(this.sessionInstructors);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionInstructors.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Eu=function(){function e(t){if(Object(l.a)(this,e),this.sessionInviteId=void 0,this.sessionId=void 0,this.userId=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.avatar=void 0,this.email=void 0,this.inviteDate=void 0,this.invitedBy=void 0,this.responseDate=void 0,this.declineDate=void 0,this.status=void 0,this.registeredBy=void 0,this.waitlistedDate=void 0,this.location=void 0,this.userTypeId=void 0,this.userType=void 0,this.emails=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionInviteId=e.sessionInviteId,this.sessionId=e.sessionId,this.userId=e.userId,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.avatar=e.avatar,this.email=e.email,this.inviteDate=e.inviteDate?new Date(e.inviteDate.toString()):void 0,this.invitedBy=e.invitedBy,this.responseDate=e.responseDate?new Date(e.responseDate.toString()):void 0,this.declineDate=e.declineDate?new Date(e.declineDate.toString()):void 0,this.status=e.status,this.registeredBy=e.registeredBy,this.waitlistedDate=e.waitlistedDate?new Date(e.waitlistedDate.toString()):void 0,this.location=e.location,this.userTypeId=e.userTypeId,this.userType=e.userType,Array.isArray(e.emails))){this.emails=[];var t,i=Object(s.a)(e.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emails.push(Iu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionInviteId=this.sessionInviteId,e.sessionId=this.sessionId,e.userId=this.userId,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.avatar=this.avatar,e.email=this.email,e.inviteDate=this.inviteDate?this.inviteDate.toISOString():void 0,e.invitedBy=this.invitedBy,e.responseDate=this.responseDate?this.responseDate.toISOString():void 0,e.declineDate=this.declineDate?this.declineDate.toISOString():void 0,e.status=this.status,e.registeredBy=this.registeredBy,e.waitlistedDate=this.waitlistedDate?this.waitlistedDate.toISOString():void 0,e.location=this.location,e.userTypeId=this.userTypeId,e.userType=this.userType,Array.isArray(this.emails)){e.emails=[];var t,i=Object(s.a)(this.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emails.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Iu=function(){function e(t){if(Object(l.a)(this,e),this.sessionInviteEmailId=void 0,this.sessionInviteId=void 0,this.emailTransactionId=void 0,this.emailTransaction=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionInviteEmailId=e.sessionInviteEmailId,this.sessionInviteId=e.sessionInviteId,this.emailTransactionId=e.emailTransactionId,this.emailTransaction=e.emailTransaction?Bn.fromJS(e.emailTransaction):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionInviteEmailId=this.sessionInviteEmailId,e.sessionInviteId=this.sessionInviteId,e.emailTransactionId=this.emailTransactionId,e.emailTransaction=this.emailTransaction?this.emailTransaction.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ou=function(){function e(t){if(Object(l.a)(this,e),this.invites=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.invites)){this.invites=[];var t,i=Object(s.a)(e.invites);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.invites.push(Eu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.invites)){e.invites=[];var t,i=Object(s.a)(this.invites);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.invites.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cu=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.licenseCertificateId=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.licenseCertificateId=e.licenseCertificateId,this.licenseId=e.licenseId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.licenseCertificateId=this.licenseCertificateId,e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xu=function(){function e(t){if(Object(l.a)(this,e),this.creditId=void 0,this.creditName=void 0,this.creditValue=void 0,this.isArchived=void 0,this.isFieldsOfStudyApproved=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.creditName=e.creditName,this.creditValue=e.creditValue,this.isArchived=e.isArchived,this.isFieldsOfStudyApproved=e.isFieldsOfStudyApproved)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.creditName=this.creditName,e.creditValue=this.creditValue,e.isArchived=this.isArchived,e.isFieldsOfStudyApproved=this.isFieldsOfStudyApproved,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ju=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.licenseId=void 0,this.name=void 0,this.expirationDate=void 0,this.licenseStatus=void 0,this.sessionLicenseCredits=void 0,this.sessionLicenseProperties=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.licenseId=e.licenseId,this.name=e.name,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.licenseStatus=e.licenseStatus,Array.isArray(e.sessionLicenseCredits)){this.sessionLicenseCredits=[];var t,i=Object(s.a)(e.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenseCredits.push(xu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var n,a=Object(s.a)(e.sessionLicenseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenseProperties.push(Pu.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.licenseId=this.licenseId,e.name=this.name,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.licenseStatus=this.licenseStatus,Array.isArray(this.sessionLicenseCredits)){e.sessionLicenseCredits=[];var t,i=Object(s.a)(this.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenseCredits.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.sessionLicenseProperties)){e.sessionLicenseProperties=[];var n,a=Object(s.a)(this.sessionLicenseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenseProperties.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wu=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.licenseId=void 0,this.name=void 0,this.licenseStatus=void 0,this.sessionLicenseCredits=void 0,this.sessionLicenseProperties=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.licenseId=e.licenseId,this.name=e.name,this.licenseStatus=e.licenseStatus,Array.isArray(e.sessionLicenseCredits)){this.sessionLicenseCredits=[];var t,i=Object(s.a)(e.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenseCredits.push(xu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var n,a=Object(s.a)(e.sessionLicenseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionLicenseProperties.push(Pu.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.licenseId=this.licenseId,e.name=this.name,e.licenseStatus=this.licenseStatus,Array.isArray(this.sessionLicenseCredits)){e.sessionLicenseCredits=[];var t,i=Object(s.a)(this.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenseCredits.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.sessionLicenseProperties)){e.sessionLicenseProperties=[];var n,a=Object(s.a)(this.sessionLicenseProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionLicenseProperties.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pu=function(){function e(t){if(Object(l.a)(this,e),this.propertyId=void 0,this.propertyLabel=void 0,this.propertyValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.propertyId=e.propertyId,this.propertyLabel=e.propertyLabel,this.propertyValue=e.propertyValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).propertyId=this.propertyId,e.propertyLabel=this.propertyLabel,e.propertyValue=this.propertyValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tu=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.propertyId=void 0,this.propertyLabel=void 0,this.propertyValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.propertyId=e.propertyId,this.propertyLabel=e.propertyLabel,this.propertyValue=e.propertyValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.propertyId=this.propertyId,e.propertyLabel=this.propertyLabel,e.propertyValue=this.propertyValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Au=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.courseId=void 0,this.guid=void 0,this.userId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.courseId=e.courseId,this.guid=e.guid,this.userId=e.userId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.courseId=this.courseId,e.guid=this.guid,e.userId=this.userId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nu=function(){function e(t){if(Object(l.a)(this,e),this.sessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(s.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(ou.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(s.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ku=function(){function e(t){if(Object(l.a)(this,e),this.locationId=void 0,this.name=void 0,this.address=void 0,this.code=void 0,this.city=void 0,this.countryId=void 0,this.stateId=void 0,this.zip=void 0,this.telephone=void 0,this.timezoneId=void 0,this.isActive=void 0,this.isFirmOffice=void 0,this.countyId=void 0,this.country=void 0,this.state=void 0,this.timezone=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name,this.address=e.address,this.code=e.code,this.city=e.city,this.countryId=e.countryId,this.stateId=e.stateId,this.zip=e.zip,this.telephone=e.telephone,this.timezoneId=e.timezoneId,this.isActive=e.isActive,this.isFirmOffice=e.isFirmOffice,this.countyId=e.countyId,this.country=e.country,this.state=e.state,this.timezone=e.timezone)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e.address=this.address,e.code=this.code,e.city=this.city,e.countryId=this.countryId,e.stateId=this.stateId,e.zip=this.zip,e.telephone=this.telephone,e.timezoneId=this.timezoneId,e.isActive=this.isActive,e.isFirmOffice=this.isFirmOffice,e.countyId=this.countyId,e.country=this.country,e.state=this.state,e.timezone=this.timezone,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Du=function(){function e(t){if(Object(l.a)(this,e),this.sessionMaterialId=void 0,this.sessionId=void 0,this.fileId=void 0,this.isPublic=void 0,this.isAttendanceSheet=void 0,this.libraryFile=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionMaterialId=e.sessionMaterialId,this.sessionId=e.sessionId,this.fileId=e.fileId,this.isPublic=e.isPublic,this.isAttendanceSheet=e.isAttendanceSheet,this.libraryFile=e.libraryFile?gl.fromJS(e.libraryFile):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionMaterialId=this.sessionMaterialId,e.sessionId=this.sessionId,e.fileId=this.fileId,e.isPublic=this.isPublic,e.isAttendanceSheet=this.isAttendanceSheet,e.libraryFile=this.libraryFile?this.libraryFile.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lu=function(){function e(t){if(Object(l.a)(this,e),this.sessionMediaFileId=void 0,this.sessionId=void 0,this.fileId=void 0,this.isRequired=void 0,this.displayOrder=void 0,this.verificationDisplayLimit=void 0,this.verificationDisplayDuration=void 0,this.verificationCode=void 0,this.verificationCodeEnabled=void 0,this.verificationAttemptLimit=void 0,this.viewingVerificationEnabled=void 0,this.viewingVerificationDisplayLimit=void 0,this.viewingVerificationDisplayDuration=void 0,this.allowedToBeViewed=void 0,this.libraryFile=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.fileId=e.fileId,this.isRequired=e.isRequired,this.displayOrder=e.displayOrder,this.verificationDisplayLimit=e.verificationDisplayLimit,this.verificationDisplayDuration=e.verificationDisplayDuration,this.verificationCode=e.verificationCode,this.verificationCodeEnabled=e.verificationCodeEnabled,this.verificationAttemptLimit=e.verificationAttemptLimit,this.viewingVerificationEnabled=e.viewingVerificationEnabled,this.viewingVerificationDisplayLimit=e.viewingVerificationDisplayLimit,this.viewingVerificationDisplayDuration=e.viewingVerificationDisplayDuration,this.allowedToBeViewed=e.allowedToBeViewed,this.libraryFile=e.libraryFile?gl.fromJS(e.libraryFile):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionMediaFileId=this.sessionMediaFileId,e.sessionId=this.sessionId,e.fileId=this.fileId,e.isRequired=this.isRequired,e.displayOrder=this.displayOrder,e.verificationDisplayLimit=this.verificationDisplayLimit,e.verificationDisplayDuration=this.verificationDisplayDuration,e.verificationCode=this.verificationCode,e.verificationCodeEnabled=this.verificationCodeEnabled,e.verificationAttemptLimit=this.verificationAttemptLimit,e.viewingVerificationEnabled=this.viewingVerificationEnabled,e.viewingVerificationDisplayLimit=this.viewingVerificationDisplayLimit,e.viewingVerificationDisplayDuration=this.viewingVerificationDisplayDuration,e.allowedToBeViewed=this.allowedToBeViewed,e.libraryFile=this.libraryFile?this.libraryFile.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ju=function(){function e(t){if(Object(l.a)(this,e),this.mediaFiles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.mediaFiles)){this.mediaFiles=[];var t,i=Object(s.a)(e.mediaFiles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.mediaFiles.push(Lu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.mediaFiles)){e.mediaFiles=[];var t,i=Object(s.a)(this.mediaFiles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.mediaFiles.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isCreditAdjusted=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isCreditAdjusted=e.isCreditAdjusted,Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var t,i=Object(s.a)(e.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCreditValues.push(Tv.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var n,a=Object(s.a)(e.userLicensePropertyValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicensePropertyValues.push(Dv.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isCreditAdjusted=this.isCreditAdjusted,Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var t,i=Object(s.a)(this.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCreditValues.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var n,a=Object(s.a)(this.userLicensePropertyValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicensePropertyValues.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantCertificateId=void 0,this.sessionParticipantId=void 0,this.fileId=void 0,this.fileName=void 0,this.fileType=void 0,this.fileExt=void 0,this.uploadDate=void 0,this.integrationId=void 0,this.integrationSessionParticipantCertificateId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantCertificateId=e.sessionParticipantCertificateId,this.sessionParticipantId=e.sessionParticipantId,this.fileId=e.fileId,this.fileName=e.fileName,this.fileType=e.fileType,this.fileExt=e.fileExt,this.uploadDate=e.uploadDate?new Date(e.uploadDate.toString()):void 0,this.integrationId=e.integrationId,this.integrationSessionParticipantCertificateId=e.integrationSessionParticipantCertificateId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantCertificateId=this.sessionParticipantCertificateId,e.sessionParticipantId=this.sessionParticipantId,e.fileId=this.fileId,e.fileName=this.fileName,e.fileType=this.fileType,e.fileExt=this.fileExt,e.uploadDate=this.uploadDate?this.uploadDate.toISOString():void 0,e.integrationId=this.integrationId,e.integrationSessionParticipantCertificateId=this.integrationSessionParticipantCertificateId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ru=function(){function e(t){if(Object(l.a)(this,e),this.certificates=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.certificates)){this.certificates=[];var t,i=Object(s.a)(e.certificates);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.certificates.push(Bu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.certificates)){e.certificates=[];var t,i=Object(s.a)(this.certificates);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.certificates.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Uu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.userType=void 0,this.userTypeId=void 0,this.personnelId=void 0,this.isInstructor=void 0,this.fullName=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.avatar=void 0,this.email=void 0,this.locationId=void 0,this.location=void 0,this.isValidated=void 0,this.isCreditAdjusted=void 0,this.registrationDate=void 0,this.completionDate=void 0,this.tentativeDate=void 0,this.validationDate=void 0,this.userLearningPackageDetailId=void 0,this.userLearningPackackageOverallStatus=void 0,this.userLearningPackageProgressId=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.isParticipantUnvalidated=void 0,this.certificateDisplayStatusId=void 0,this.calApptId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.userType=e.userType,this.userTypeId=e.userTypeId,this.personnelId=e.personnelId,this.isInstructor=e.isInstructor,this.fullName=e.fullName,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.avatar=e.avatar,this.email=e.email,this.locationId=e.locationId,this.location=e.location,this.isValidated=e.isValidated,this.isCreditAdjusted=e.isCreditAdjusted,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.userLearningPackageDetailId=e.userLearningPackageDetailId,this.userLearningPackackageOverallStatus=e.userLearningPackackageOverallStatus,this.userLearningPackageProgressId=e.userLearningPackageProgressId,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.isParticipantUnvalidated=e.isParticipantUnvalidated,this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.calApptId=e.calApptId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.userType=this.userType,e.userTypeId=this.userTypeId,e.personnelId=this.personnelId,e.isInstructor=this.isInstructor,e.fullName=this.fullName,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.avatar=this.avatar,e.email=this.email,e.locationId=this.locationId,e.location=this.location,e.isValidated=this.isValidated,e.isCreditAdjusted=this.isCreditAdjusted,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.userLearningPackageDetailId=this.userLearningPackageDetailId,e.userLearningPackackageOverallStatus=this.userLearningPackackageOverallStatus,e.userLearningPackageProgressId=this.userLearningPackageProgressId,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.isParticipantUnvalidated=this.isParticipantUnvalidated,e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.calApptId=this.calApptId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.userType=void 0,this.userTypeId=void 0,this.personnelId=void 0,this.isInstructor=void 0,this.fullName=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.avatar=void 0,this.email=void 0,this.locationId=void 0,this.location=void 0,this.isValidated=void 0,this.isCreditAdjusted=void 0,this.registrationDate=void 0,this.completionDate=void 0,this.tentativeDate=void 0,this.validationDate=void 0,this.inactiveDate=void 0,this.sessionDate=void 0,this.userLearningPackageDetailId=void 0,this.userLearningPackackageOverallStatus=void 0,this.userLearningPackageProgressId=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.isParticipantUnvalidated=void 0,this.certificateDisplayStatusId=void 0,this.sessionTime=void 0,this.sessionFormat=void 0,this.userLicensesAndBarNumbers=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.calApptId=void 0,this.sessionTitle=void 0,this.sessionFormatCategory=void 0,this.isOnlineLearning=void 0,this.hasScormPackage=void 0,this.isIndividualSessionDateAllowed=void 0,this.sessionLocation=void 0,this.sessionStartDate=void 0,this.sessionEndDate=void 0,this.sessionStartTime=void 0,this.sessionEndTime=void 0,this.sessionCancelled=void 0,this.sessionTimezone=void 0,this.certificateURL=void 0,this.clientPosition=void 0,this.departments=void 0,this.positions=void 0,this.practiceAreas=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.userType=e.userType,this.userTypeId=e.userTypeId,this.personnelId=e.personnelId,this.isInstructor=e.isInstructor,this.fullName=e.fullName,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.avatar=e.avatar,this.email=e.email,this.locationId=e.locationId,this.location=e.location,this.isValidated=e.isValidated,this.isCreditAdjusted=e.isCreditAdjusted,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.sessionDate=e.sessionDate?new Date(e.sessionDate.toString()):void 0,this.userLearningPackageDetailId=e.userLearningPackageDetailId,this.userLearningPackackageOverallStatus=e.userLearningPackackageOverallStatus,this.userLearningPackageProgressId=e.userLearningPackageProgressId,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.isParticipantUnvalidated=e.isParticipantUnvalidated,this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.sessionTime=e.sessionTime,this.sessionFormat=e.sessionFormat,Array.isArray(e.userLicensesAndBarNumbers)){this.userLicensesAndBarNumbers=[];var t,i=Object(s.a)(e.userLicensesAndBarNumbers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicensesAndBarNumbers.push(xv.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var n,a=Object(s.a)(e.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicenseCreditValues.push(Tv.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var l,c=Object(s.a)(e.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicensePropertyValues.push(Dv.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(this.calApptId=e.calApptId,this.sessionTitle=e.sessionTitle,this.sessionFormatCategory=e.sessionFormatCategory,this.isOnlineLearning=e.isOnlineLearning,this.hasScormPackage=e.hasScormPackage,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.sessionLocation=e.sessionLocation,this.sessionStartDate=e.sessionStartDate?new Date(e.sessionStartDate.toString()):void 0,this.sessionEndDate=e.sessionEndDate?new Date(e.sessionEndDate.toString()):void 0,this.sessionStartTime=e.sessionStartTime,this.sessionEndTime=e.sessionEndTime,this.sessionCancelled=e.sessionCancelled,this.sessionTimezone=e.sessionTimezone,this.certificateURL=e.certificateURL,this.clientPosition=e.clientPosition,Array.isArray(e.departments)){this.departments=[];var u,h=Object(s.a)(e.departments);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.departments.push(uv.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.positions)){this.positions=[];var p,f=Object(s.a)(e.positions);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.positions.push(qv.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.practiceAreas)){this.practiceAreas=[];var y,g=Object(s.a)(e.practiceAreas);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.practiceAreas.push(Mv.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.userType=this.userType,e.userTypeId=this.userTypeId,e.personnelId=this.personnelId,e.isInstructor=this.isInstructor,e.fullName=this.fullName,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.avatar=this.avatar,e.email=this.email,e.locationId=this.locationId,e.location=this.location,e.isValidated=this.isValidated,e.isCreditAdjusted=this.isCreditAdjusted,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.sessionDate=this.sessionDate?this.sessionDate.toISOString():void 0,e.userLearningPackageDetailId=this.userLearningPackageDetailId,e.userLearningPackackageOverallStatus=this.userLearningPackackageOverallStatus,e.userLearningPackageProgressId=this.userLearningPackageProgressId,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.isParticipantUnvalidated=this.isParticipantUnvalidated,e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.sessionTime=this.sessionTime,e.sessionFormat=this.sessionFormat,Array.isArray(this.userLicensesAndBarNumbers)){e.userLicensesAndBarNumbers=[];var t,i=Object(s.a)(this.userLicensesAndBarNumbers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicensesAndBarNumbers.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var n,a=Object(s.a)(this.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var l,c=Object(s.a)(this.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicensePropertyValues.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(e.calApptId=this.calApptId,e.sessionTitle=this.sessionTitle,e.sessionFormatCategory=this.sessionFormatCategory,e.isOnlineLearning=this.isOnlineLearning,e.hasScormPackage=this.hasScormPackage,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.sessionLocation=this.sessionLocation,e.sessionStartDate=this.sessionStartDate?this.sessionStartDate.toISOString():void 0,e.sessionEndDate=this.sessionEndDate?this.sessionEndDate.toISOString():void 0,e.sessionStartTime=this.sessionStartTime,e.sessionEndTime=this.sessionEndTime,e.sessionCancelled=this.sessionCancelled,e.sessionTimezone=this.sessionTimezone,e.certificateURL=this.certificateURL,e.clientPosition=this.clientPosition,Array.isArray(this.departments)){e.departments=[];var u,h=Object(s.a)(this.departments);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.departments.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.positions)){e.positions=[];var p,f=Object(s.a)(this.positions);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.positions.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.practiceAreas)){e.practiceAreas=[];var y,g=Object(s.a)(this.practiceAreas);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.practiceAreas.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.sessionParticipantStatusId=void 0,this.userLicenseDetails=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.sessionParticipantStatusId=e.sessionParticipantStatusId,Array.isArray(e.userLicenseDetails))){this.userLicenseDetails=[];var t,i=Object(s.a)(e.userLicenseDetails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseDetails.push(Wu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.sessionParticipantStatusId=this.sessionParticipantStatusId,Array.isArray(this.userLicenseDetails)){e.userLicenseDetails=[];var t,i=Object(s.a)(this.userLicenseDetails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseDetails.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zu=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wu=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.barNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.barNumber=e.barNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.barNumber=this.barNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.propertyId=void 0,this.propertyLabel=void 0,this.propertyValue=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.propertyId=e.propertyId,this.propertyLabel=e.propertyLabel,this.propertyValue=e.propertyValue,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.propertyId=this.propertyId,e.propertyLabel=this.propertyLabel,e.propertyValue=this.propertyValue,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_u=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipants=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipants)){this.sessionParticipants=[];var t,i=Object(s.a)(e.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipants.push(Gu.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipants)){e.sessionParticipants=[];var t,i=Object(s.a)(this.sessionParticipants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipants.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantsLocation=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipantsLocation)){this.sessionParticipantsLocation=[];var t,i=Object(s.a)(e.sessionParticipantsLocation);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantsLocation.push($u.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipantsLocation)){e.sessionParticipantsLocation=[];var t,i=Object(s.a)(this.sessionParticipantsLocation);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantsLocation.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$u=function(){function e(t){if(Object(l.a)(this,e),this.locationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hu=function(){function e(t){if(Object(l.a)(this,e),this.programFormat=void 0,this.participationMethod=void 0,this.difficultyLevel=void 0,this.facultyParticipation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.programFormat=e.programFormat,this.participationMethod=e.participationMethod,this.difficultyLevel=e.difficultyLevel,Array.isArray(e.facultyParticipation))){this.facultyParticipation=[];var t,i=Object(s.a)(e.facultyParticipation);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.facultyParticipation.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).programFormat=this.programFormat,e.participationMethod=this.participationMethod,e.difficultyLevel=this.difficultyLevel,Array.isArray(this.facultyParticipation)){e.facultyParticipation=[];var t,i=Object(s.a)(this.facultyParticipation);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.facultyParticipation.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ku=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.userType=void 0,this.userTypeId=void 0,this.isInstructor=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.avatar=void 0,this.locationId=void 0,this.location=void 0,this.isValidated=void 0,this.sessionTime=void 0,this.sessionFormat=void 0,this.completionDate=void 0,this.sessionDate=void 0,this.sessionParticipantStatusId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.userType=e.userType,this.userTypeId=e.userTypeId,this.isInstructor=e.isInstructor,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.avatar=e.avatar,this.locationId=e.locationId,this.location=e.location,this.isValidated=e.isValidated,this.sessionTime=e.sessionTime,this.sessionFormat=e.sessionFormat,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.sessionDate=e.sessionDate?new Date(e.sessionDate.toString()):void 0,this.sessionParticipantStatusId=e.sessionParticipantStatusId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.userType=this.userType,e.userTypeId=this.userTypeId,e.isInstructor=this.isInstructor,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.avatar=this.avatar,e.locationId=this.locationId,e.location=this.location,e.isValidated=this.isValidated,e.sessionTime=this.sessionTime,e.sessionFormat=this.sessionFormat,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.sessionDate=this.sessionDate?this.sessionDate.toISOString():void 0,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Registered=1]="Registered",e[e.Validated=2]="Validated",e[e.Tentative=3]="Tentative",e[e.Pending=4]="Pending",e[e.Excused=5]="Excused",e[e.Unexcused=6]="Unexcused",e[e.InProgress=7]="InProgress",e[e.Disqualified=8]="Disqualified",e[e.Declined=9]="Declined",e[e.Failed=10]="Failed",e[e.DisplayOnly=11]="DisplayOnly"}(ru||(ru={}));var Qu,Zu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xu=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.propertyId=void 0,this.propertyLabel=void 0,this.propertyValue=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.propertyId=e.propertyId,this.propertyLabel=e.propertyLabel,this.propertyValue=e.propertyValue,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.propertyId=this.propertyId,e.propertyLabel=this.propertyLabel,e.propertyValue=this.propertyValue,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),eh=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.phone=void 0,this.email=void 0,this.licenseBarNumber=void 0,this.completionDate=void 0,this.caLawParticipatory=void 0,this.signatureUrl=void 0,this.ilLawParticipationMethod=void 0,this.njLawProgramFormat=void 0,this.vaLawDeliveryMethod=void 0,this.nyLawProperties=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.phone=e.phone,this.email=e.email,this.licenseBarNumber=e.licenseBarNumber,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.caLawParticipatory=e.caLawParticipatory,this.signatureUrl=e.signatureUrl,this.ilLawParticipationMethod=e.ilLawParticipationMethod,this.njLawProgramFormat=e.njLawProgramFormat,this.vaLawDeliveryMethod=e.vaLawDeliveryMethod,this.nyLawProperties=e.nyLawProperties?Hu.fromJS(e.nyLawProperties):void 0,Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var t,i=Object(s.a)(e.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCreditValues.push(Mu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var n,a=Object(s.a)(e.userLicensePropertyValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicensePropertyValues.push(Vu.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.phone=this.phone,e.email=this.email,e.licenseBarNumber=this.licenseBarNumber,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.caLawParticipatory=this.caLawParticipatory,e.signatureUrl=this.signatureUrl,e.ilLawParticipationMethod=this.ilLawParticipationMethod,e.njLawProgramFormat=this.njLawProgramFormat,e.vaLawDeliveryMethod=this.vaLawDeliveryMethod,e.nyLawProperties=this.nyLawProperties?this.nyLawProperties.toJSON():void 0,Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var t,i=Object(s.a)(this.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCreditValues.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var n,a=Object(s.a)(this.userLicensePropertyValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicensePropertyValues.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),th=function(){function e(t){if(Object(l.a)(this,e),this.frequency=void 0,this.interval=void 0,this.day=void 0,this.dayOfWeek=void 0,this.week=void 0,this.daysOfWeek=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.frequency=e.frequency,this.interval=e.interval,this.day=e.day,this.dayOfWeek=e.dayOfWeek,this.week=e.week,Array.isArray(e.daysOfWeek))){this.daysOfWeek=[];var t,i=Object(s.a)(e.daysOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.daysOfWeek.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).frequency=this.frequency,e.interval=this.interval,e.day=this.day,e.dayOfWeek=this.dayOfWeek,e.week=this.week,Array.isArray(this.daysOfWeek)){e.daysOfWeek=[];var t,i=Object(s.a)(this.daysOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.daysOfWeek.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ih=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.sessionIds=void 0,this.isInstructor=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,Array.isArray(e.sessionIds)){this.sessionIds=[];var t,i=Object(s.a)(e.sessionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.isInstructor=e.isInstructor}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,Array.isArray(this.sessionIds)){e.sessionIds=[];var t,i=Object(s.a)(this.sessionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.isInstructor=this.isInstructor,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rh=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.sessionParticipantId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nh=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.isLinked=void 0,this.subjectAreaRegulatoryCredits=void 0,this.subjectAreaRegulatoryProperties=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.isLinked=e.isLinked,Array.isArray(e.subjectAreaRegulatoryCredits)){this.subjectAreaRegulatoryCredits=[];var t,i=Object(s.a)(e.subjectAreaRegulatoryCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subjectAreaRegulatoryCredits.push(Sh.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.subjectAreaRegulatoryProperties)){this.subjectAreaRegulatoryProperties=[];var n,a=Object(s.a)(e.subjectAreaRegulatoryProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.subjectAreaRegulatoryProperties.push(Eh.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.isLinked=this.isLinked,Array.isArray(this.subjectAreaRegulatoryCredits)){e.subjectAreaRegulatoryCredits=[];var t,i=Object(s.a)(this.subjectAreaRegulatoryCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subjectAreaRegulatoryCredits.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.subjectAreaRegulatoryProperties)){e.subjectAreaRegulatoryProperties=[];var n,a=Object(s.a)(this.subjectAreaRegulatoryProperties);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.subjectAreaRegulatoryProperties.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ah=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.title=void 0,this.provider=void 0,this.courseFormatId=void 0,this.courseFormat=void 0,this.formatCategory=void 0,this.courseTitle=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timeZone=void 0,this.isIndividualSessionDateAllowed=void 0,this.areQuestionsAllowed=void 0,this.location=void 0,this.approvalCodes=void 0,this.sessionInstructors=void 0,this.sessionParticipants=void 0,this.sessionLicenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.title=e.title,this.provider=e.provider,this.courseFormatId=e.courseFormatId,this.courseFormat=e.courseFormat,this.formatCategory=e.formatCategory,this.courseTitle=e.courseTitle,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timeZone=e.timeZone,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.areQuestionsAllowed=e.areQuestionsAllowed,this.location=e.location?ku.fromJS(e.location):void 0,Array.isArray(e.approvalCodes)){this.approvalCodes=[];var t,i=Object(s.a)(e.approvalCodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.approvalCodes.push(Tu.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var n,a=Object(s.a)(e.sessionInstructors);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.sessionInstructors.push(eh.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.sessionParticipants)){this.sessionParticipants=[];var l,c=Object(s.a)(e.sessionParticipants);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.sessionParticipants.push(eh.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var u,h=Object(s.a)(e.sessionLicenses);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.sessionLicenses.push(ju.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.title=this.title,e.provider=this.provider,e.courseFormatId=this.courseFormatId,e.courseFormat=this.courseFormat,e.formatCategory=this.formatCategory,e.courseTitle=this.courseTitle,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timeZone=this.timeZone,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.areQuestionsAllowed=this.areQuestionsAllowed,e.location=this.location?this.location.toJSON():void 0,Array.isArray(this.approvalCodes)){e.approvalCodes=[];var t,i=Object(s.a)(this.approvalCodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.approvalCodes.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var n,a=Object(s.a)(this.sessionInstructors);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.sessionInstructors.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.sessionParticipants)){e.sessionParticipants=[];var l,c=Object(s.a)(this.sessionParticipants);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.sessionParticipants.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var u,h=Object(s.a)(this.sessionLicenses);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.sessionLicenses.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),oh=function(){function e(t){if(Object(l.a)(this,e),this.certificateTemplate=void 0,this.sessionDetails=void 0,this.licenseId=void 0,this.userId=void 0,this.isInstructor=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.certificateTemplate=e.certificateTemplate?Rt.fromJS(e.certificateTemplate):void 0,this.sessionDetails=e.sessionDetails?ah.fromJS(e.sessionDetails):void 0,this.licenseId=e.licenseId,this.userId=e.userId,this.isInstructor=e.isInstructor)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).certificateTemplate=this.certificateTemplate?this.certificateTemplate.toJSON():void 0,e.sessionDetails=this.sessionDetails?this.sessionDetails.toJSON():void 0,e.licenseId=this.licenseId,e.userId=this.userId,e.isInstructor=this.isInstructor,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Single=1]="Single",e[e.Simultaneous=2]="Simultaneous",e[e.Multipart=3]="Multipart",e[e.Recurring=4]="Recurring"}(Qu||(Qu={}));var sh,lh=function(){function e(t){if(Object(l.a)(this,e),this.departmentId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ch=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.userId=void 0,this.sessionParticipantId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.licenseId=void 0,this.licenseName=void 0,this.applyTo=void 0,this.applyToPeriodEndDate=void 0,this.sessionStartDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId,this.sessionParticipantId=e.sessionParticipantId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.applyTo=e.applyTo?new Date(e.applyTo.toString()):void 0,this.applyToPeriodEndDate=e.applyToPeriodEndDate,this.sessionStartDate=e.sessionStartDate?new Date(e.sessionStartDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e.sessionParticipantId=this.sessionParticipantId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.applyTo=this.applyTo?this.applyTo.toISOString():void 0,e.applyToPeriodEndDate=this.applyToPeriodEndDate,e.sessionStartDate=this.sessionStartDate?this.sessionStartDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dh=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.avatar=void 0,this.email=void 0,this.priorityNumber=void 0,this.waitlistDate=void 0,this.location=void 0,this.userTypeId=void 0,this.userType=void 0,this.sessionId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.avatar=e.avatar,this.email=e.email,this.priorityNumber=e.priorityNumber,this.waitlistDate=e.waitlistDate?new Date(e.waitlistDate.toString()):void 0,this.location=e.location,this.userTypeId=e.userTypeId,this.userType=e.userType,this.sessionId=e.sessionId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.avatar=this.avatar,e.email=this.email,e.priorityNumber=this.priorityNumber,e.waitlistDate=this.waitlistDate?this.waitlistDate.toISOString():void 0,e.location=this.location,e.userTypeId=this.userTypeId,e.userType=this.userType,e.sessionId=this.sessionId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),uh=function(){function e(t){if(Object(l.a)(this,e),this.sessionWaitlistedUsers=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionWaitlistedUsers)){this.sessionWaitlistedUsers=[];var t,i=Object(s.a)(e.sessionWaitlistedUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionWaitlistedUsers.push(dh.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionWaitlistedUsers)){e.sessionWaitlistedUsers=[];var t,i=Object(s.a)(this.sessionWaitlistedUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionWaitlistedUsers.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hh=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userSavedFilterId=void 0,this.courseSavedFilterId=void 0,this.calendarSavedFilterId=void 0,this.catalogSavedFilterId=void 0,this.activitySavedFilterId=void 0,this.complianceLicenseeSavedFilterId=void 0,this.learningPlanSavedFilterId=void 0,this.securityUserSavedFilterId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.userSavedFilterId=e.userSavedFilterId,this.courseSavedFilterId=e.courseSavedFilterId,this.calendarSavedFilterId=e.calendarSavedFilterId,this.catalogSavedFilterId=e.catalogSavedFilterId,this.activitySavedFilterId=e.activitySavedFilterId,this.complianceLicenseeSavedFilterId=e.complianceLicenseeSavedFilterId,this.learningPlanSavedFilterId=e.learningPlanSavedFilterId,this.securityUserSavedFilterId=e.securityUserSavedFilterId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.userSavedFilterId=this.userSavedFilterId,e.courseSavedFilterId=this.courseSavedFilterId,e.calendarSavedFilterId=this.calendarSavedFilterId,e.catalogSavedFilterId=this.catalogSavedFilterId,e.activitySavedFilterId=this.activitySavedFilterId,e.complianceLicenseeSavedFilterId=this.complianceLicenseeSavedFilterId,e.learningPlanSavedFilterId=this.learningPlanSavedFilterId,e.securityUserSavedFilterId=this.securityUserSavedFilterId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vh=function(){function e(t){if(Object(l.a)(this,e),this.label=void 0,this.value=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.label=e.label,this.value=e.value,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).label=this.label,e.value=this.value,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ph=function(){function e(t){if(Object(l.a)(this,e),this.countryId=void 0,this.stateId=void 0,this.name=void 0,this.defaultTimezoneId=void 0,this.isActive=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.countryId=e.countryId,this.stateId=e.stateId,this.name=e.name,this.defaultTimezoneId=e.defaultTimezoneId,this.isActive=e.isActive,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).countryId=this.countryId,e.stateId=this.stateId,e.name=this.name,e.defaultTimezoneId=this.defaultTimezoneId,e.isActive=this.isActive,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fh=function(){function e(t){if(Object(l.a)(this,e),this.states=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.states)){this.states=[];var t,i=Object(s.a)(e.states);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.states.push(ph.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.states)){e.states=[];var t,i=Object(s.a)(this.states);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.states.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mh=function(){function e(t){if(Object(l.a)(this,e),this.statementScheduleId=void 0,this.isActive=void 0,this.frequency=void 0,this.jobId=void 0,this.lastEmailSent=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.statementScheduleId=e.statementScheduleId,this.isActive=e.isActive,this.frequency=e.frequency,this.jobId=e.jobId,this.lastEmailSent=e.lastEmailSent?new Date(e.lastEmailSent.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).statementScheduleId=this.statementScheduleId,e.isActive=this.isActive,e.frequency=this.frequency,e.jobId=this.jobId,e.lastEmailSent=this.lastEmailSent?this.lastEmailSent.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yh=function(){function e(t){if(Object(l.a)(this,e),this.statementScheduleId=void 0,this.isActive=void 0,this.licenseIds=void 0,this.emailTemplateId=void 0,this.template=void 0,this.frequency=void 0,this.time=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurDayOfWeek=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.numberOfMonths=void 0,this.monthlyDayWithInterval=void 0,this.numberOfMonthsInterval=void 0,this.dayOfMonthWithInterval=void 0,this.dayOfWeekWithInterval=void 0,this.jobId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.statementScheduleId=e.statementScheduleId,this.isActive=e.isActive,this.licenseIds=e.licenseIds,this.emailTemplateId=e.emailTemplateId,this.template=e.template?Nn.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Ph.fromJS(e.timezone):void 0,Array.isArray(e.recurDayOfWeek)){this.recurDayOfWeek=[];var t,i=Object(s.a)(e.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.recurDayOfWeek.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var n,a=Object(s.a)(e.monthlyDay);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.monthlyDay.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.numberOfMonths=e.numberOfMonths,Array.isArray(e.monthlyDayWithInterval)){this.monthlyDayWithInterval=[];var l,c=Object(s.a)(e.monthlyDayWithInterval);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.monthlyDayWithInterval.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(this.numberOfMonthsInterval=e.numberOfMonthsInterval,this.dayOfMonthWithInterval=e.dayOfMonthWithInterval,this.dayOfWeekWithInterval=e.dayOfWeekWithInterval,this.jobId=e.jobId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,Array.isArray(e.recipients)){this.recipients=[];var u,h=Object(s.a)(e.recipients);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.recipients.push(Pn.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).statementScheduleId=this.statementScheduleId,e.isActive=this.isActive,e.licenseIds=this.licenseIds,e.emailTemplateId=this.emailTemplateId,e.template=this.template?this.template.toJSON():void 0,e.frequency=this.frequency,e.time=this.time,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.recurDayOfWeek)){e.recurDayOfWeek=[];var t,i=Object(s.a)(this.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.recurDayOfWeek.push(r)}}catch(p){i.e(p)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var n,a=Object(s.a)(this.monthlyDay);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.monthlyDay.push(o)}}catch(p){a.e(p)}finally{a.f()}}if(e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.numberOfMonths=this.numberOfMonths,Array.isArray(this.monthlyDayWithInterval)){e.monthlyDayWithInterval=[];var l,c=Object(s.a)(this.monthlyDayWithInterval);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.monthlyDayWithInterval.push(d)}}catch(p){c.e(p)}finally{c.f()}}if(e.numberOfMonthsInterval=this.numberOfMonthsInterval,e.dayOfMonthWithInterval=this.dayOfMonthWithInterval,e.dayOfWeekWithInterval=this.dayOfWeekWithInterval,e.jobId=this.jobId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,Array.isArray(this.recipients)){e.recipients=[];var u,h=Object(s.a)(this.recipients);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.recipients.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gh=function(){function e(t){if(Object(l.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance}}},{key:"toJSON",value:function(e){for(var t in e="object"===typeof e?e:{},this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e.type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bh=function(){function e(t){if(Object(l.a)(this,e),this.subCategoryId=void 0,this.competencyFrameworkId=void 0,this.competencyName=void 0,this.competencyId=void 0,this.subCategoryDescription=void 0,this.sequenceNumber=void 0,this.isIncluded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.subCategoryId=e.subCategoryId,this.competencyFrameworkId=e.competencyFrameworkId,this.competencyName=e.competencyName,this.competencyId=e.competencyId,this.subCategoryDescription=e.subCategoryDescription,this.sequenceNumber=e.sequenceNumber,this.isIncluded=e.isIncluded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subCategoryId=this.subCategoryId,e.competencyFrameworkId=this.competencyFrameworkId,e.competencyName=this.competencyName,e.competencyId=this.competencyId,e.subCategoryDescription=this.subCategoryDescription,e.sequenceNumber=this.sequenceNumber,e.isIncluded=this.isIncluded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sh=function(){function e(t){if(Object(l.a)(this,e),this.subjectAreaCreditId=void 0,this.subjectAreaName=void 0,this.creditId=void 0,this.creditName=void 0,this.creditValue=void 0,this.isApprovalRequired=void 0,this.isApproved=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.subjectAreaCreditId=e.subjectAreaCreditId,this.subjectAreaName=e.subjectAreaName,this.creditId=e.creditId,this.creditName=e.creditName,this.creditValue=e.creditValue,this.isApprovalRequired=e.isApprovalRequired,this.isApproved=e.isApproved)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subjectAreaCreditId=this.subjectAreaCreditId,e.subjectAreaName=this.subjectAreaName,e.creditId=this.creditId,e.creditName=this.creditName,e.creditValue=this.creditValue,e.isApprovalRequired=this.isApprovalRequired,e.isApproved=this.isApproved,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Eh=function(){function e(t){if(Object(l.a)(this,e),this.subjectAreaPropertyId=void 0,this.propertyName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.subjectAreaPropertyId=e.subjectAreaPropertyId,this.propertyName=e.propertyName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subjectAreaPropertyId=this.subjectAreaPropertyId,e.propertyName=this.propertyName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ih=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.complianceStatusValue=void 0,this.periodLabel=void 0,this.isLocked=void 0,this.lockedBy=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.complianceStatusValue=e.complianceStatusValue,this.periodLabel=e.periodLabel,this.isLocked=e.isLocked,this.lockedBy=e.lockedBy,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.complianceStatusValue=this.complianceStatusValue,e.periodLabel=this.periodLabel,e.isLocked=this.isLocked,e.lockedBy=this.lockedBy,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oh=function(){function e(t){if(Object(l.a)(this,e),this.subLicenseId=void 0,this.name=void 0,this.shortName=void 0,this.parentLicenseId=void 0,this.subLicenseCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.subLicenseId=e.subLicenseId,this.name=e.name,this.shortName=e.shortName,this.parentLicenseId=e.parentLicenseId,Array.isArray(e.subLicenseCredits))){this.subLicenseCredits=[];var t,i=Object(s.a)(e.subLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subLicenseCredits.push(Tl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).subLicenseId=this.subLicenseId,e.name=this.name,e.shortName=this.shortName,e.parentLicenseId=this.parentLicenseId,Array.isArray(this.subLicenseCredits)){e.subLicenseCredits=[];var t,i=Object(s.a)(this.subLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subLicenseCredits.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.None=0]="None",e[e.AdministrativeAssistant=1]="AdministrativeAssistant",e[e.Supervisor=2]="Supervisor"}(sh||(sh={}));var Ch,xh=function(){function e(t){if(Object(l.a)(this,e),this.tagId=void 0,this.name=void 0,this.code=void 0,this.isActive=void 0,this.courseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.tagId=e.tagId,this.name=e.name,this.code=e.code,this.isActive=e.isActive,this.courseCount=e.courseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tagId=this.tagId,e.name=this.name,e.code=this.code,e.isActive=this.isActive,e.courseCount=this.courseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jh=function(){function e(t){if(Object(l.a)(this,e),this.tags=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.tags)){this.tags=[];var t,i=Object(s.a)(e.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tags.push(xh.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.tags)){e.tags=[];var t,i=Object(s.a)(this.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tags.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wh=function(){function e(t){if(Object(l.a)(this,e),this.appId=void 0,this.name=void 0,this.code=void 0,this.adminClientId=void 0,this.adminUrl=void 0,this.portalClientId=void 0,this.portalUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.appId=e.appId,this.name=e.name,this.code=e.code,this.adminClientId=e.adminClientId,this.adminUrl=e.adminUrl,this.portalClientId=e.portalClientId,this.portalUrl=e.portalUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).appId=this.appId,e.name=this.name,e.code=this.code,e.adminClientId=this.adminClientId,e.adminUrl=this.adminUrl,e.portalClientId=this.portalClientId,e.portalUrl=this.portalUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ph=function(){function e(t){if(Object(l.a)(this,e),this.timezoneId=void 0,this.abbreviation=void 0,this.dstAbbreviation=void 0,this.description=void 0,this.name=void 0,this.hasDst=void 0,this.utcOffset=void 0,this.dstOffset=void 0,this.isActive=void 0,this.code=void 0,this.dstName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.timezoneId=e.timezoneId,this.abbreviation=e.abbreviation,this.dstAbbreviation=e.dstAbbreviation,this.description=e.description,this.name=e.name,this.hasDst=e.hasDst,this.utcOffset=e.utcOffset,this.dstOffset=e.dstOffset,this.isActive=e.isActive,this.code=e.code,this.dstName=e.dstName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).timezoneId=this.timezoneId,e.abbreviation=this.abbreviation,e.dstAbbreviation=this.dstAbbreviation,e.description=this.description,e.name=this.name,e.hasDst=this.hasDst,e.utcOffset=this.utcOffset,e.dstOffset=this.dstOffset,e.isActive=this.isActive,e.code=this.code,e.dstName=this.dstName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Th=function(){function e(t){if(Object(l.a)(this,e),this.timezones=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.timezones)){this.timezones=[];var t,i=Object(s.a)(e.timezones);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.timezones.push(Ph.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.timezones)){e.timezones=[];var t,i=Object(s.a)(this.timezones);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.timezones.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ah=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.courseId=void 0,this.isFavorite=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.courseId=e.courseId,this.isFavorite=e.isFavorite)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.courseId=this.courseId,e.isFavorite=this.isFavorite,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nh=function(){function e(t){if(Object(l.a)(this,e),this.tokenId=void 0,this.name=void 0,this.code=void 0,this.type=void 0,this.group=void 0,this.defaultValue=void 0,this.pattern=void 0,this.previewValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.tokenId=e.tokenId,this.name=e.name,this.code=e.code,this.type=e.type,this.group=e.group,this.defaultValue=e.defaultValue,this.pattern=e.pattern,this.previewValue=e.previewValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tokenId=this.tokenId,e.name=this.name,e.code=this.code,e.type=this.type,e.group=this.group,e.defaultValue=this.defaultValue,e.pattern=this.pattern,e.previewValue=this.previewValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.EmailDetails=1]="EmailDetails",e[e.RecipientInformation=2]="RecipientInformation",e[e.SenderInformation=3]="SenderInformation",e[e.FirmInformation=4]="FirmInformation",e[e.Default=5]="Default",e[e.Custom=6]="Custom"}(Ch||(Ch={}));var kh,Dh=function(){function e(t){if(Object(l.a)(this,e),this.subjectAreaCreditId=void 0,this.subjectAreaCreditName=void 0,this.unapprovedSubjectAreaLicenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.subjectAreaCreditId=e.subjectAreaCreditId,this.subjectAreaCreditName=e.subjectAreaCreditName,Array.isArray(e.unapprovedSubjectAreaLicenses))){this.unapprovedSubjectAreaLicenses=[];var t,i=Object(s.a)(e.unapprovedSubjectAreaLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.unapprovedSubjectAreaLicenses.push(Lh.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).subjectAreaCreditId=this.subjectAreaCreditId,e.subjectAreaCreditName=this.subjectAreaCreditName,Array.isArray(this.unapprovedSubjectAreaLicenses)){e.unapprovedSubjectAreaLicenses=[];var t,i=Object(s.a)(this.unapprovedSubjectAreaLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.unapprovedSubjectAreaLicenses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lh=function(){function e(t){if(Object(l.a)(this,e),this.sessionLicenseSubjectAreaMappingId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.isApproved=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionLicenseSubjectAreaMappingId=e.sessionLicenseSubjectAreaMappingId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.isApproved=e.isApproved)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionLicenseSubjectAreaMappingId=this.sessionLicenseSubjectAreaMappingId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.isApproved=this.isApproved,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jh=function(){function e(t){if(Object(l.a)(this,e),this.calendarSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.calendarSavedFilterId=e.calendarSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).calendarSavedFilterId=this.calendarSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fh=function(){function e(t){if(Object(l.a)(this,e),this.catalogSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.catalogSavedFilterId=e.catalogSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).catalogSavedFilterId=this.catalogSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bh=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.collectionId=void 0,this.collectionTitle=void 0,this.description=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.collectionId=e.collectionId,this.collectionTitle=e.collectionTitle,this.description=e.description)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.collectionId=this.collectionId,e.collectionTitle=this.collectionTitle,e.description=this.description,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rh=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantIds=void 0,this.sessionId=void 0,this.completionDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.sessionParticipantIds=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipantIds)){this.sessionParticipantIds=[];var t,i=Object(s.a)(e.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.sessionId=e.sessionId,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipantIds)){e.sessionParticipantIds=[];var t,i=Object(s.a)(this.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.sessionId=this.sessionId,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Uh=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentOverallReflectionCompetencyFrameworkId=void 0,this.startDate=void 0,this.endDate=void 0,this.reflection=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.developmentOverallReflectionCompetencyFrameworkId=e.developmentOverallReflectionCompetencyFrameworkId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.reflection=e.reflection)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.developmentOverallReflectionCompetencyFrameworkId=this.developmentOverallReflectionCompetencyFrameworkId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.reflection=this.reflection,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gh=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.developmentPlans=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,Array.isArray(e.developmentPlans))){this.developmentPlans=[];var t,i=Object(s.a)(e.developmentPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.developmentPlans.push(an.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,Array.isArray(this.developmentPlans)){e.developmentPlans=[];var t,i=Object(s.a)(this.developmentPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.developmentPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qh=function(){function e(t){if(Object(l.a)(this,e),this.files=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.files)){this.files=[];var t,i=Object(s.a)(e.files);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.files.push(gl.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.files)){e.files=[];var t,i=Object(s.a)(this.files);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.files.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mh=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.isSelfEnrolled=void 0,this.addParticipantEmail=void 0,this.deleteParticipantEmail=void 0,this.updateParticipantStatusEmail=void 0,this.archivedDate=void 0,this.learningPlanCompetencies=void 0,this.learningPlanParticipants=void 0,this.learningPlanTags=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.isSelfEnrolled=e.isSelfEnrolled,this.addParticipantEmail=e.addParticipantEmail,this.deleteParticipantEmail=e.deleteParticipantEmail,this.updateParticipantStatusEmail=e.updateParticipantStatusEmail,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var t,i=Object(s.a)(e.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCompetencies.push(Js.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.learningPlanParticipants)){this.learningPlanParticipants=[];var n,a=Object(s.a)(e.learningPlanParticipants);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanParticipants.push(zh.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var l,c=Object(s.a)(e.learningPlanTags);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.learningPlanTags.push(dl.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.isSelfEnrolled=this.isSelfEnrolled,e.addParticipantEmail=this.addParticipantEmail,e.deleteParticipantEmail=this.deleteParticipantEmail,e.updateParticipantStatusEmail=this.updateParticipantStatusEmail,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var t,i=Object(s.a)(this.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCompetencies.push(r.toJSON())}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.learningPlanParticipants)){e.learningPlanParticipants=[];var n,a=Object(s.a)(this.learningPlanParticipants);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanParticipants.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var l,c=Object(s.a)(this.learningPlanTags);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.learningPlanTags.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zh=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.hasAdjustedDates=void 0,this.validatedBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.hasAdjustedDates=e.hasAdjustedDates,this.validatedBy=e.validatedBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.hasAdjustedDates=this.hasAdjustedDates,e.validatedBy=this.validatedBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wh=function(){function e(t){if(Object(l.a)(this,e),this.minimumLength=void 0,this.requireLowercase=void 0,this.requireNumbers=void 0,this.requireSymbols=void 0,this.requireUppercase=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.minimumLength=e.minimumLength,this.requireLowercase=e.requireLowercase,this.requireNumbers=e.requireNumbers,this.requireSymbols=e.requireSymbols,this.requireUppercase=e.requireUppercase)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).minimumLength=this.minimumLength,e.requireLowercase=this.requireLowercase,e.requireNumbers=this.requireNumbers,e.requireSymbols=this.requireSymbols,e.requireUppercase=this.requireUppercase,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vh=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.isAdjusted=void 0,this.sessionParticipantIds=void 0,this.userLicenseCreditValues=void 0,this.userLicenseProperties=void 0,this.userIdFromUserPage=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.sessionParticipantIds=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.isAdjusted=e.isAdjusted,Array.isArray(e.sessionParticipantIds)){this.sessionParticipantIds=[];var t,i=Object(s.a)(e.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIds.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var n,a=Object(s.a)(e.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicenseCreditValues.push(Zu.fromJS(o))}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(e.userLicenseProperties)){this.userLicenseProperties=[];var l,c=Object(s.a)(e.userLicenseProperties);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicenseProperties.push(Xu.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.userIdFromUserPage=e.userIdFromUserPage}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.isAdjusted=this.isAdjusted,Array.isArray(this.sessionParticipantIds)){e.sessionParticipantIds=[];var t,i=Object(s.a)(this.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIds.push(r)}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var n,a=Object(s.a)(this.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(u){a.e(u)}finally{a.f()}}if(Array.isArray(this.userLicenseProperties)){e.userLicenseProperties=[];var l,c=Object(s.a)(this.userLicenseProperties);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicenseProperties.push(d.toJSON())}}catch(u){c.e(u)}finally{c.f()}}return e.userIdFromUserPage=this.userIdFromUserPage,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_h=function(){function e(t){if(Object(l.a)(this,e),this.isParticipantUnvalidated=void 0,this.isApproval=void 0,this.sessionId=void 0,this.sessionParticipantIds=void 0,this.sessionParticipantStatusId=void 0,this.sendEmailConfirmation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.sessionParticipantIds=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.isParticipantUnvalidated=e.isParticipantUnvalidated,this.isApproval=e.isApproval,this.sessionId=e.sessionId,Array.isArray(e.sessionParticipantIds)){this.sessionParticipantIds=[];var t,i=Object(s.a)(e.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.sendEmailConfirmation=e.sendEmailConfirmation}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).isParticipantUnvalidated=this.isParticipantUnvalidated,e.isApproval=this.isApproval,e.sessionId=this.sessionId,Array.isArray(this.sessionParticipantIds)){e.sessionParticipantIds=[];var t,i=Object(s.a)(this.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.sendEmailConfirmation=this.sendEmailConfirmation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yh=function(){function e(t){if(Object(l.a)(this,e),this.userOnDemandSessionId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.viewStatus=void 0,this.verificationCodeAttempt=void 0,this.verificationCodeValidated=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userOnDemandSessionId=e.userOnDemandSessionId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.viewStatus=e.viewStatus,this.verificationCodeAttempt=e.verificationCodeAttempt,this.verificationCodeValidated=e.verificationCodeValidated)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userOnDemandSessionId=this.userOnDemandSessionId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.viewStatus=this.viewStatus,e.verificationCodeAttempt=this.verificationCodeAttempt,e.verificationCodeValidated=this.verificationCodeValidated,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$h=function(){function e(t){if(Object(l.a)(this,e),this.userOnDemandSessionId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.verificationLastViewed=void 0,this.verificationViewMissed=void 0,this.verificationViewValidated=void 0,this.verificationViewCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userOnDemandSessionId=e.userOnDemandSessionId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.verificationLastViewed=e.verificationLastViewed,this.verificationViewMissed=e.verificationViewMissed,this.verificationViewValidated=e.verificationViewValidated,this.verificationViewCount=e.verificationViewCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userOnDemandSessionId=this.userOnDemandSessionId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.verificationLastViewed=this.verificationLastViewed,e.verificationViewMissed=this.verificationViewMissed,e.verificationViewValidated=this.verificationViewValidated,e.verificationViewCount=this.verificationViewCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hh=function(){function e(t){if(Object(l.a)(this,e),this.dateFormat=void 0,this.timezone=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.dateFormat=e.dateFormat,this.timezone=e.timezone)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).dateFormat=this.dateFormat,e.timezone=this.timezone,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kh=function(){function e(t){if(Object(l.a)(this,e),this.storeId=void 0,this.userLoginSessionId=void 0,this.cognitoClientId=void 0,this.key=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.storeId=e.storeId,this.userLoginSessionId=e.userLoginSessionId,this.cognitoClientId=e.cognitoClientId,this.key=e.key,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).storeId=this.storeId,e.userLoginSessionId=this.userLoginSessionId,e.cognitoClientId=this.cognitoClientId,e.key=this.key,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qh=function(){function e(t){if(Object(l.a)(this,e),this.userAccessTokens=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userAccessTokens)){this.userAccessTokens=[];var t,i=Object(s.a)(e.userAccessTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userAccessTokens.push(Kh.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userAccessTokens)){e.userAccessTokens=[];var t,i=Object(s.a)(this.userAccessTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userAccessTokens.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zh=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.title=void 0,this.description=void 0,this.note=void 0,this.archivedDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.title=e.title,this.description=e.description,this.note=e.note,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.title=this.title,e.description=this.description,e.note=this.note,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xh=function(){function e(t){if(Object(l.a)(this,e),this.idpId=void 0,this.isActive=void 0,this.portalAccessEnabled=void 0,this.userType=void 0,this.userApplicationAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.idpId=e.idpId,this.isActive=e.isActive,this.portalAccessEnabled=e.portalAccessEnabled,this.userType=e.userType,Array.isArray(e.userApplicationAccess))){this.userApplicationAccess=[];var t,i=Object(s.a)(e.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userApplicationAccess.push(ut.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).idpId=this.idpId,e.isActive=this.isActive,e.portalAccessEnabled=this.portalAccessEnabled,e.userType=this.userType,Array.isArray(this.userApplicationAccess)){e.userApplicationAccess=[];var t,i=Object(s.a)(this.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userApplicationAccess.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ev=function(){function e(t){if(Object(l.a)(this,e),this.userAvatarId=void 0,this.fileId=void 0,this.userAvatarUrl=void 0,this.userAvatarThumbnailURl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userAvatarId=e.userAvatarId,this.fileId=e.fileId,this.userAvatarUrl=e.userAvatarUrl,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userAvatarId=this.userAvatarId,e.fileId=this.fileId,e.userAvatarUrl=this.userAvatarUrl,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),iv=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantCertificateId=void 0,this.sessionParticipantId=void 0,this.fileId=void 0,this.fileName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantCertificateId=e.sessionParticipantCertificateId,this.sessionParticipantId=e.sessionParticipantId,this.fileId=e.fileId,this.fileName=e.fileName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantCertificateId=this.sessionParticipantCertificateId,e.sessionParticipantId=this.sessionParticipantId,e.fileId=this.fileId,e.fileName=this.fileName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rv=function(){function e(t){if(Object(l.a)(this,e),this.classYearId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.classYearId=e.classYearId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).classYearId=this.classYearId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nv=function(){function e(t){if(Object(l.a)(this,e),this.collectionId=void 0,this.collectionTitle=void 0,this.collectionDescription=void 0,this.userCourseCollections=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.collectionId=e.collectionId,this.collectionTitle=e.collectionTitle,this.collectionDescription=e.collectionDescription,Array.isArray(e.userCourseCollections))){this.userCourseCollections=[];var t,i=Object(s.a)(e.userCourseCollections);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userCourseCollections.push(sv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).collectionId=this.collectionId,e.collectionTitle=this.collectionTitle,e.collectionDescription=this.collectionDescription,Array.isArray(this.userCourseCollections)){e.userCourseCollections=[];var t,i=Object(s.a)(this.userCourseCollections);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userCourseCollections.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),av=function(){function e(t){if(Object(l.a)(this,e),this.periodFrom=void 0,this.periodTo=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ov=function(){function e(t){if(Object(l.a)(this,e),this.collectionId=void 0,this.title=void 0,this.description=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.collectionId=e.collectionId,this.title=e.title,this.description=e.description)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).collectionId=this.collectionId,e.title=this.title,e.description=this.description,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sv=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.courseFormatPortalCategory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,Array.isArray(e.courseFormatPortalCategory))){this.courseFormatPortalCategory=[];var t,i=Object(s.a)(e.courseFormatPortalCategory);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseFormatPortalCategory.push(r)}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,Array.isArray(this.courseFormatPortalCategory)){e.courseFormatPortalCategory=[];var t,i=Object(s.a)(this.courseFormatPortalCategory);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseFormatPortalCategory.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lv=function(){function e(t){if(Object(l.a)(this,e),this.courses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courses)){this.courses=[];var t,i=Object(s.a)(e.courses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courses.push(sv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courses)){e.courses=[];var t,i=Object(s.a)(this.courses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cv=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.scheduleId=void 0,this.sessionTypeId=void 0,this.startDate=void 0,this.endDate=void 0,this.userId=void 0,this.isInstructor=void 0,this.isOnlineLearning=void 0,this.isValidated=void 0,this.registrationDate=void 0,this.tentativeDate=void 0,this.validationDate=void 0,this.sessionParticipantStatusId=void 0,this.courseId=void 0,this.title=void 0,this.courseTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.courseFormatPortalCategory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.sessionTypeId=e.sessionTypeId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isOnlineLearning=e.isOnlineLearning,this.isValidated=e.isValidated,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.courseId=e.courseId,this.title=e.title,this.courseTitle=e.courseTitle,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.courseFormatPortalCategory=e.courseFormatPortalCategory)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.sessionTypeId=this.sessionTypeId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isOnlineLearning=this.isOnlineLearning,e.isValidated=this.isValidated,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.courseId=this.courseId,e.title=this.title,e.courseTitle=this.courseTitle,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dv=function(){function e(t){if(Object(l.a)(this,e),this.userCourseSessions=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userCourseSessions)){this.userCourseSessions=[];var t,i=Object(s.a)(e.userCourseSessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userCourseSessions.push(cv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userCourseSessions)){e.userCourseSessions=[];var t,i=Object(s.a)(this.userCourseSessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userCourseSessions.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),uv=function(){function e(t){if(Object(l.a)(this,e),this.departmentId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.userType=void 0,this.value=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.nickname=void 0,this.genderId=void 0,this.gender=void 0,this.birthDate=void 0,this.graduationDate=void 0,this.createdDate=void 0,this.hireDate=void 0,this.fireDate=void 0,this.inactiveDate=void 0,this.locationId=void 0,this.location=void 0,this.street=void 0,this.city=void 0,this.stateId=void 0,this.countryId=void 0,this.zip=void 0,this.phone=void 0,this.emailSecretary=void 0,this.emailPracticeLeader=void 0,this.email=void 0,this.emailVerified=void 0,this.userName=void 0,this.personnelId=void 0,this.note=void 0,this.affiliationId=void 0,this.portalAccessEnabled=void 0,this.position=void 0,this.idpId=void 0,this.userAvatarId=void 0,this.hasUKLicense=void 0,this.hasPortalDevelopmentPlanAccess=void 0,this.userAvatar=void 0,this.userClassYear=void 0,this.userDepartment=void 0,this.userEthnicity=void 0,this.userLevel=void 0,this.userPracticeArea=void 0,this.userPosition=void 0,this.userLicense=void 0,this.userRole=void 0,this.securityUserSecurityGroup=void 0,this.userRelationship=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.userType=e.userType,this.value=e.value,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.nickname=e.nickname,this.genderId=e.genderId,this.gender=e.gender?ba.fromJS(e.gender):void 0,this.birthDate=e.birthDate?new Date(e.birthDate.toString()):void 0,this.graduationDate=e.graduationDate?new Date(e.graduationDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.fireDate=e.fireDate?new Date(e.fireDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.locationId=e.locationId,this.location=e.location?Vl.fromJS(e.location):void 0,this.street=e.street,this.city=e.city,this.stateId=e.stateId,this.countryId=e.countryId,this.zip=e.zip,this.phone=e.phone,this.emailSecretary=e.emailSecretary,this.emailPracticeLeader=e.emailPracticeLeader,this.email=e.email,this.emailVerified=e.emailVerified,this.userName=e.userName,this.personnelId=e.personnelId,this.note=e.note,this.affiliationId=e.affiliationId,this.portalAccessEnabled=e.portalAccessEnabled,this.position=e.position,this.idpId=e.idpId,this.userAvatarId=e.userAvatarId,this.hasUKLicense=e.hasUKLicense,this.hasPortalDevelopmentPlanAccess=e.hasPortalDevelopmentPlanAccess,this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,Array.isArray(e.userClassYear)){this.userClassYear=[];var t,i=Object(s.a)(e.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userClassYear.push(rv.fromJS(r))}}catch(k){i.e(k)}finally{i.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var n,a=Object(s.a)(e.userDepartment);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userDepartment.push(uv.fromJS(o))}}catch(k){a.e(k)}finally{a.f()}}if(Array.isArray(e.userEthnicity)){this.userEthnicity=[];var l,c=Object(s.a)(e.userEthnicity);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userEthnicity.push(pv.fromJS(d))}}catch(k){c.e(k)}finally{c.f()}}if(Array.isArray(e.userLevel)){this.userLevel=[];var u,h=Object(s.a)(e.userLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userLevel.push(Cv.fromJS(v))}}catch(k){h.e(k)}finally{h.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var p,f=Object(s.a)(e.userPracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.userPracticeArea.push(Mv.fromJS(m))}}catch(k){f.e(k)}finally{f.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var y,g=Object(s.a)(e.userPosition);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.userPosition.push(qv.fromJS(b))}}catch(k){g.e(k)}finally{g.f()}}if(Array.isArray(e.userLicense)){this.userLicense=[];var S,E=Object(s.a)(e.userLicense);try{for(E.s();!(S=E.n()).done;){var I=S.value;this.userLicense.push(Av.fromJS(I))}}catch(k){E.e(k)}finally{E.f()}}if(Array.isArray(e.userRole)){this.userRole=[];var O,C=Object(s.a)(e.userRole);try{for(C.s();!(O=C.n()).done;){var x=O.value;this.userRole.push(Vv.fromJS(x))}}catch(k){C.e(k)}finally{C.f()}}if(Array.isArray(e.securityUserSecurityGroup)){this.securityUserSecurityGroup=[];var j,w=Object(s.a)(e.securityUserSecurityGroup);try{for(w.s();!(j=w.n()).done;){var P=j.value;this.securityUserSecurityGroup.push(iu.fromJS(P))}}catch(k){w.e(k)}finally{w.f()}}if(Array.isArray(e.userRelationship)){this.userRelationship=[];var T,A=Object(s.a)(e.userRelationship);try{for(A.s();!(T=A.n()).done;){var N=T.value;this.userRelationship.push(Wv.fromJS(N))}}catch(k){A.e(k)}finally{A.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.value=this.value,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.nickname=this.nickname,e.genderId=this.genderId,e.gender=this.gender?this.gender.toJSON():void 0,e.birthDate=this.birthDate?this.birthDate.toISOString():void 0,e.graduationDate=this.graduationDate?this.graduationDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.fireDate=this.fireDate?this.fireDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.locationId=this.locationId,e.location=this.location?this.location.toJSON():void 0,e.street=this.street,e.city=this.city,e.stateId=this.stateId,e.countryId=this.countryId,e.zip=this.zip,e.phone=this.phone,e.emailSecretary=this.emailSecretary,e.emailPracticeLeader=this.emailPracticeLeader,e.email=this.email,e.emailVerified=this.emailVerified,e.userName=this.userName,e.personnelId=this.personnelId,e.note=this.note,e.affiliationId=this.affiliationId,e.portalAccessEnabled=this.portalAccessEnabled,e.position=this.position,e.idpId=this.idpId,e.userAvatarId=this.userAvatarId,e.hasUKLicense=this.hasUKLicense,e.hasPortalDevelopmentPlanAccess=this.hasPortalDevelopmentPlanAccess,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.userClassYear)){e.userClassYear=[];var t,i=Object(s.a)(this.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userClassYear.push(r.toJSON())}}catch(k){i.e(k)}finally{i.f()}}if(Array.isArray(this.userDepartment)){e.userDepartment=[];var n,a=Object(s.a)(this.userDepartment);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userDepartment.push(o.toJSON())}}catch(k){a.e(k)}finally{a.f()}}if(Array.isArray(this.userEthnicity)){e.userEthnicity=[];var l,c=Object(s.a)(this.userEthnicity);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userEthnicity.push(d.toJSON())}}catch(k){c.e(k)}finally{c.f()}}if(Array.isArray(this.userLevel)){e.userLevel=[];var u,h=Object(s.a)(this.userLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userLevel.push(v.toJSON())}}catch(k){h.e(k)}finally{h.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var p,f=Object(s.a)(this.userPracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.userPracticeArea.push(m.toJSON())}}catch(k){f.e(k)}finally{f.f()}}if(Array.isArray(this.userPosition)){e.userPosition=[];var y,g=Object(s.a)(this.userPosition);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.userPosition.push(b.toJSON())}}catch(k){g.e(k)}finally{g.f()}}if(Array.isArray(this.userLicense)){e.userLicense=[];var S,E=Object(s.a)(this.userLicense);try{for(E.s();!(S=E.n()).done;){var I=S.value;e.userLicense.push(I.toJSON())}}catch(k){E.e(k)}finally{E.f()}}if(Array.isArray(this.userRole)){e.userRole=[];var O,C=Object(s.a)(this.userRole);try{for(C.s();!(O=C.n()).done;){var x=O.value;e.userRole.push(x.toJSON())}}catch(k){C.e(k)}finally{C.f()}}if(Array.isArray(this.securityUserSecurityGroup)){e.securityUserSecurityGroup=[];var j,w=Object(s.a)(this.securityUserSecurityGroup);try{for(w.s();!(j=w.n()).done;){var P=j.value;e.securityUserSecurityGroup.push(P.toJSON())}}catch(k){w.e(k)}finally{w.f()}}if(Array.isArray(this.userRelationship)){e.userRelationship=[];var T,A=Object(s.a)(this.userRelationship);try{for(A.s();!(T=A.n()).done;){var N=T.value;e.userRelationship.push(N.toJSON())}}catch(k){A.e(k)}finally{A.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.locationId=void 0,this.location=void 0,this.genderId=void 0,this.email=void 0,this.username=void 0,this.personnelId=void 0,this.userAvatar=void 0,this.position=void 0,this.userClassYear=void 0,this.userDepartment=void 0,this.userEthnicity=void 0,this.userLevel=void 0,this.userPracticeArea=void 0,this.userPosition=void 0,this.isExistingInCEM=void 0,this.isExistingInUserPool=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.locationId=e.locationId,this.location=e.location?Vl.fromJS(e.location):void 0,this.genderId=e.genderId,this.email=e.email,this.username=e.username,this.personnelId=e.personnelId,this.userAvatar=e.userAvatar?ev.fromJS(e.userAvatar):void 0,this.position=e.position,Array.isArray(e.userClassYear)){this.userClassYear=[];var t,i=Object(s.a)(e.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userClassYear.push(rv.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var n,a=Object(s.a)(e.userDepartment);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userDepartment.push(uv.fromJS(o))}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(e.userEthnicity)){this.userEthnicity=[];var l,c=Object(s.a)(e.userEthnicity);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userEthnicity.push(pv.fromJS(d))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.userLevel)){this.userLevel=[];var u,h=Object(s.a)(e.userLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.userLevel.push(Cv.fromJS(v))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var p,f=Object(s.a)(e.userPracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.userPracticeArea.push(Mv.fromJS(m))}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var y,g=Object(s.a)(e.userPosition);try{for(g.s();!(y=g.n()).done;){var b=y.value;this.userPosition.push(qv.fromJS(b))}}catch(S){g.e(S)}finally{g.f()}}this.isExistingInCEM=e.isExistingInCEM,this.isExistingInUserPool=e.isExistingInUserPool}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.locationId=this.locationId,e.location=this.location?this.location.toJSON():void 0,e.genderId=this.genderId,e.email=this.email,e.username=this.username,e.personnelId=this.personnelId,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.position=this.position,Array.isArray(this.userClassYear)){e.userClassYear=[];var t,i=Object(s.a)(this.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userClassYear.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.userDepartment)){e.userDepartment=[];var n,a=Object(s.a)(this.userDepartment);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userDepartment.push(o.toJSON())}}catch(S){a.e(S)}finally{a.f()}}if(Array.isArray(this.userEthnicity)){e.userEthnicity=[];var l,c=Object(s.a)(this.userEthnicity);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userEthnicity.push(d.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.userLevel)){e.userLevel=[];var u,h=Object(s.a)(this.userLevel);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.userLevel.push(v.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var p,f=Object(s.a)(this.userPracticeArea);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.userPracticeArea.push(m.toJSON())}}catch(S){f.e(S)}finally{f.f()}}if(Array.isArray(this.userPosition)){e.userPosition=[];var y,g=Object(s.a)(this.userPosition);try{for(g.s();!(y=g.n()).done;){var b=y.value;e.userPosition.push(b.toJSON())}}catch(S){g.e(S)}finally{g.f()}}return e.isExistingInCEM=this.isExistingInCEM,e.isExistingInUserPool=this.isExistingInUserPool,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pv=function(){function e(t){if(Object(l.a)(this,e),this.ethnicityId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.ethnicityId=e.ethnicityId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).ethnicityId=this.ethnicityId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fv=function(){function e(t){if(Object(l.a)(this,e),this.sessionEvaluationId=void 0,this.evaluationDate=void 0,this.declinedDate=void 0,this.evaluationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionEvaluationId=e.sessionEvaluationId,this.evaluationDate=e.evaluationDate?new Date(e.evaluationDate.toString()):void 0,this.declinedDate=e.declinedDate?new Date(e.declinedDate.toString()):void 0,this.evaluationId=e.evaluationId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEvaluationId=this.sessionEvaluationId,e.evaluationDate=this.evaluationDate?this.evaluationDate.toISOString():void 0,e.declinedDate=this.declinedDate?this.declinedDate.toISOString():void 0,e.evaluationId=this.evaluationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.reportName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.reportName=e.reportName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.reportName=this.reportName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Registered=1]="Registered",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(kh||(kh={}));var yv,gv=function(){function e(t){if(Object(l.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bv=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.displayOrder=void 0,this.name=void 0,this.type=void 0,this.isRequired=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.displayOrder=e.displayOrder,this.name=e.name,this.type=e.type,this.isRequired=e.isRequired,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.displayOrder=this.displayOrder,e.name=this.name,e.type=this.type,e.isRequired=this.isRequired,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sv=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.criteriaStatus=void 0,this.status=void 0,this.isIncluded=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.materialsCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.completedDate=void 0,this.learningPlanCompetencies=void 0,this.learningPlanTags=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,this.learningPlanMaterials=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.criteriaStatus=e.criteriaStatus,this.status=e.status,this.isIncluded=e.isIncluded,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.materialsCount=e.materialsCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var t,i=Object(s.a)(e.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCompetencies.push(Js.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var n,a=Object(s.a)(e.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var l,c=Object(s.a)(e.learningPlanCourses);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.learningPlanCourses.push(bv.fromJS(d))}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var u,h=Object(s.a)(e.learningPlanActivities);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.learningPlanActivities.push(gv.fromJS(v))}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var p,f=Object(s.a)(e.learningPlanMaterials);try{for(f.s();!(p=f.n()).done;){var m=p.value;this.learningPlanMaterials.push(Ks.fromJS(m))}}catch(y){f.e(y)}finally{f.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.criteriaStatus=this.criteriaStatus,e.status=this.status,e.isIncluded=this.isIncluded,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.materialsCount=this.materialsCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var t,i=Object(s.a)(this.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCompetencies.push(r.toJSON())}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var n,a=Object(s.a)(this.learningPlanTags);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanTags.push(o.toJSON())}}catch(y){a.e(y)}finally{a.f()}}if(Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var l,c=Object(s.a)(this.learningPlanCourses);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.learningPlanCourses.push(d.toJSON())}}catch(y){c.e(y)}finally{c.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var u,h=Object(s.a)(this.learningPlanActivities);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.learningPlanActivities.push(v.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var p,f=Object(s.a)(this.learningPlanMaterials);try{for(f.s();!(p=f.n()).done;){var m=p.value;e.learningPlanMaterials.push(m.toJSON())}}catch(y){f.e(y)}finally{f.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ev=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(s.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(Sv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(s.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Iv=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.status=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.completedDate=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.status=e.status,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(s.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(tl.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var n,a=Object(s.a)(e.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.learningPlanActivities.push(tl.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.status=this.status,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(s.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var n,a=Object(s.a)(this.learningPlanActivities);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ov=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(s.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(Iv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(s.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cv=function(){function e(t){if(Object(l.a)(this,e),this.levelId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xv=function(){function e(t){if(Object(l.a)(this,e),this.barNumber=void 0,this.complianceStatusId=void 0,this.licenseAbbreviation=void 0,this.licenseName=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.barNumber=e.barNumber,this.complianceStatusId=e.complianceStatusId,this.licenseAbbreviation=e.licenseAbbreviation,this.licenseName=e.licenseName,this.licenseId=e.licenseId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).barNumber=this.barNumber,e.complianceStatusId=this.complianceStatusId,e.licenseAbbreviation=this.licenseAbbreviation,e.licenseName=this.licenseName,e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.userType=void 0,this.userAvatarThumbnailURl=void 0,this.licenseId=void 0,this.licenseName=void 0,this.subLicenseId=void 0,this.isSubLicenseRolling=void 0,this.complianceStatusId=void 0,this.isCarryOverAllowed=void 0,this.isSubLicenseCarryOverAllowed=void 0,this.isRetroAllowed=void 0,this.totalPeriodCount=void 0,this.hasShortSummary=void 0,this.reportURL=void 0,this.userLicenseProfile=void 0,this.compliancePeriods=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.userType=e.userType,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.subLicenseId=e.subLicenseId,this.isSubLicenseRolling=e.isSubLicenseRolling,this.complianceStatusId=e.complianceStatusId,this.isCarryOverAllowed=e.isCarryOverAllowed,this.isSubLicenseCarryOverAllowed=e.isSubLicenseCarryOverAllowed,this.isRetroAllowed=e.isRetroAllowed,this.totalPeriodCount=e.totalPeriodCount,this.hasShortSummary=e.hasShortSummary,this.reportURL=e.reportURL,Array.isArray(e.userLicenseProfile)){this.userLicenseProfile=[];var t,i=Object(s.a)(e.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseProfile.push(Nv.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.compliancePeriods)){this.compliancePeriods=[];var n,a=Object(s.a)(e.compliancePeriods);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.compliancePeriods.push(ui.fromJS(o))}}catch(l){a.e(l)}finally{a.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.userType=this.userType,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.subLicenseId=this.subLicenseId,e.isSubLicenseRolling=this.isSubLicenseRolling,e.complianceStatusId=this.complianceStatusId,e.isCarryOverAllowed=this.isCarryOverAllowed,e.isSubLicenseCarryOverAllowed=this.isSubLicenseCarryOverAllowed,e.isRetroAllowed=this.isRetroAllowed,e.totalPeriodCount=this.totalPeriodCount,e.hasShortSummary=this.hasShortSummary,e.reportURL=this.reportURL,Array.isArray(this.userLicenseProfile)){e.userLicenseProfile=[];var t,i=Object(s.a)(this.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseProfile.push(r.toJSON())}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(this.compliancePeriods)){e.compliancePeriods=[];var n,a=Object(s.a)(this.compliancePeriods);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.compliancePeriods.push(o.toJSON())}}catch(l){a.e(l)}finally{a.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wv=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseCompliancePeriods=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLicenseCompliancePeriods)){this.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(Pv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(s.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pv=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodLabel=void 0,this.isLocked=void 0,this.lockedBy=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.rulesLink=void 0,this.stateBarOrganization=void 0,this.shortSummary=void 0,this.renewalDate=void 0,this.userSubLicenseCompliancePeriod=void 0,this.complianceStatusEnum=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodLabel=e.periodLabel,this.isLocked=e.isLocked,this.lockedBy=e.lockedBy,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.rulesLink=e.rulesLink,this.stateBarOrganization=e.stateBarOrganization,this.shortSummary=e.shortSummary,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?Xv.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.complianceStatusEnum=e.complianceStatusEnum)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodLabel=this.periodLabel,e.isLocked=this.isLocked,e.lockedBy=this.lockedBy,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.rulesLink=this.rulesLink,e.stateBarOrganization=this.stateBarOrganization,e.shortSummary=this.shortSummary,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.complianceStatusEnum=this.complianceStatusEnum,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tv=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,this.isFieldsOfStudyApproved=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value,this.isFieldsOfStudyApproved=e.isFieldsOfStudyApproved)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e.isFieldsOfStudyApproved=this.isFieldsOfStudyApproved,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Av=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.name=void 0,this.complianceStatusId=void 0,this.industryId=void 0,this.isSubLicense=void 0,this.userLicenseProfileValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.name=e.name,this.complianceStatusId=e.complianceStatusId,this.industryId=e.industryId,this.isSubLicense=e.isSubLicense,Array.isArray(e.userLicenseProfileValue))){this.userLicenseProfileValue=[];var t,i=Object(s.a)(e.userLicenseProfileValue);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseProfileValue.push(kv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.name=this.name,e.complianceStatusId=this.complianceStatusId,e.industryId=this.industryId,e.isSubLicense=this.isSubLicense,Array.isArray(this.userLicenseProfileValue)){e.userLicenseProfileValue=[];var t,i=Object(s.a)(this.userLicenseProfileValue);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseProfileValue.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nv=function(){function e(t){if(Object(l.a)(this,e),this.fieldName=void 0,this.profileId=void 0,this.fieldType=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.fieldName=e.fieldName,this.profileId=e.profileId,this.fieldType=e.fieldType,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).fieldName=this.fieldName,e.profileId=this.profileId,e.fieldType=this.fieldType,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kv=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.profileId=void 0,this.name=void 0,this.typeId=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.profileId=e.profileId,this.name=e.name,this.typeId=e.typeId,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.profileId=this.profileId,e.name=this.name,e.typeId=this.typeId,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dv=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.propertyId=void 0,this.fieldType=void 0,this.propertyLabel=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.propertyId=e.propertyId,this.fieldType=e.fieldType,this.propertyLabel=e.propertyLabel,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.propertyId=this.propertyId,e.fieldType=this.fieldType,e.propertyLabel=this.propertyLabel,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lv=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.parentLicenseId=void 0,this.industry=void 0,this.isNotTracked=void 0,this.periodEndDate=void 0,this.periodNumber=void 0,this.creditsNeeded=void 0,this.complianceStatusId=void 0,this.priorPeriodDeficiency=void 0,this.isAdditionalRequirementNeeded=void 0,this.renewalDate=void 0,this.jurisdictionReportGuid=void 0,this.isLicenseNotDisplayedToTheProfessional=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.parentLicenseId=e.parentLicenseId,this.industry=e.industry,this.isNotTracked=e.isNotTracked,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0,this.periodNumber=e.periodNumber,this.creditsNeeded=e.creditsNeeded,this.complianceStatusId=e.complianceStatusId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.isAdditionalRequirementNeeded=e.isAdditionalRequirementNeeded,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.jurisdictionReportGuid=e.jurisdictionReportGuid,this.isLicenseNotDisplayedToTheProfessional=e.isLicenseNotDisplayedToTheProfessional)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.parentLicenseId=this.parentLicenseId,e.industry=this.industry,e.isNotTracked=this.isNotTracked,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e.periodNumber=this.periodNumber,e.creditsNeeded=this.creditsNeeded,e.complianceStatusId=this.complianceStatusId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.isAdditionalRequirementNeeded=this.isAdditionalRequirementNeeded,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.jurisdictionReportGuid=this.jurisdictionReportGuid,e.isLicenseNotDisplayedToTheProfessional=this.isLicenseNotDisplayedToTheProfessional,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jv=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.parentLicenseId=void 0,this.industry=void 0,this.isNotTracked=void 0,this.periodEndDate=void 0,this.periodNumber=void 0,this.creditsNeeded=void 0,this.complianceStatusId=void 0,this.priorPeriodDeficiency=void 0,this.isAdditionalRequirementNeeded=void 0,this.renewalDate=void 0,this.jurisdictionReportGuid=void 0,this.isLicenseNotDisplayedToTheProfessional=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.parentLicenseId=e.parentLicenseId,this.industry=e.industry,this.isNotTracked=e.isNotTracked,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0,this.periodNumber=e.periodNumber,this.creditsNeeded=e.creditsNeeded,this.complianceStatusId=e.complianceStatusId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.isAdditionalRequirementNeeded=e.isAdditionalRequirementNeeded,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.jurisdictionReportGuid=e.jurisdictionReportGuid,this.isLicenseNotDisplayedToTheProfessional=e.isLicenseNotDisplayedToTheProfessional)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.parentLicenseId=this.parentLicenseId,e.industry=this.industry,e.isNotTracked=this.isNotTracked,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e.periodNumber=this.periodNumber,e.creditsNeeded=this.creditsNeeded,e.complianceStatusId=this.complianceStatusId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.isAdditionalRequirementNeeded=this.isAdditionalRequirementNeeded,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.jurisdictionReportGuid=this.jurisdictionReportGuid,e.isLicenseNotDisplayedToTheProfessional=this.isLicenseNotDisplayedToTheProfessional,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fv=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.fieldName=void 0,this.validationMessage=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.fieldName=e.fieldName,this.validationMessage=e.validationMessage)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.fieldName=this.fieldName,e.validationMessage=this.validationMessage,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bv=function(){function e(t){if(Object(l.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(s.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(hv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(s.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rv=function(){function e(t){if(Object(l.a)(this,e),this.userOnDemandSessionId=void 0,this.userId=void 0,this.sessionMediaFileId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.verificationCodeAttempt=void 0,this.verificationCodeValidated=void 0,this.viewStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userOnDemandSessionId=e.userOnDemandSessionId,this.userId=e.userId,this.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.verificationCodeAttempt=e.verificationCodeAttempt,this.verificationCodeValidated=e.verificationCodeValidated,this.viewStatus=e.viewStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userOnDemandSessionId=this.userOnDemandSessionId,e.userId=this.userId,e.sessionMediaFileId=this.sessionMediaFileId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.verificationCodeAttempt=this.verificationCodeAttempt,e.verificationCodeValidated=this.verificationCodeValidated,e.viewStatus=this.viewStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Uv=function(){function e(t){if(Object(l.a)(this,e),this.userOnDemandSessionId=void 0,this.userId=void 0,this.sessionMediaFileId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.verificationCodeAttempt=void 0,this.verificationCodeValidated=void 0,this.verificationLastViewed=void 0,this.verificationViewMissed=void 0,this.verificationViewValidated=void 0,this.overridden=void 0,this.viewStatus=void 0,this.verificationViewCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userOnDemandSessionId=e.userOnDemandSessionId,this.userId=e.userId,this.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.verificationCodeAttempt=e.verificationCodeAttempt,this.verificationCodeValidated=e.verificationCodeValidated,this.verificationLastViewed=e.verificationLastViewed,this.verificationViewMissed=e.verificationViewMissed,this.verificationViewValidated=e.verificationViewValidated,this.overridden=e.overridden,this.viewStatus=e.viewStatus,this.verificationViewCount=e.verificationViewCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userOnDemandSessionId=this.userOnDemandSessionId,e.userId=this.userId,e.sessionMediaFileId=this.sessionMediaFileId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.verificationCodeAttempt=this.verificationCodeAttempt,e.verificationCodeValidated=this.verificationCodeValidated,e.verificationLastViewed=this.verificationLastViewed,e.verificationViewMissed=this.verificationViewMissed,e.verificationViewValidated=this.verificationViewValidated,e.overridden=this.overridden,e.viewStatus=this.viewStatus,e.verificationViewCount=this.verificationViewCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gv=function(){function e(t){if(Object(l.a)(this,e),this.userOnDemandSessionId=void 0,this.userId=void 0,this.sessionMediaFileId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.viewStart=void 0,this.viewEnd=void 0,this.verificationLastViewed=void 0,this.verificationViewMissed=void 0,this.verificationViewValidated=void 0,this.viewStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userOnDemandSessionId=e.userOnDemandSessionId,this.userId=e.userId,this.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.viewStart=e.viewStart,this.viewEnd=e.viewEnd,this.verificationLastViewed=e.verificationLastViewed,this.verificationViewMissed=e.verificationViewMissed,this.verificationViewValidated=e.verificationViewValidated,this.viewStatus=e.viewStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userOnDemandSessionId=this.userOnDemandSessionId,e.userId=this.userId,e.sessionMediaFileId=this.sessionMediaFileId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.viewStart=this.viewStart,e.viewEnd=this.viewEnd,e.verificationLastViewed=this.verificationLastViewed,e.verificationViewMissed=this.verificationViewMissed,e.verificationViewValidated=this.verificationViewValidated,e.viewStatus=this.viewStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qv=function(){function e(t){if(Object(l.a)(this,e),this.positionId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mv=function(){function e(t){if(Object(l.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.dateFormat=void 0,this.timezone=void 0,this.signatureFileId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.signatureFileId=e.signatureFileId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.signatureFileId=this.signatureFileId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wv=function(){function e(t){if(Object(l.a)(this,e),this.sourceUserId=void 0,this.sourceFullName=void 0,this.sourceFirstName=void 0,this.sourceLastName=void 0,this.sourceEmail=void 0,this.targetUserId=void 0,this.name=void 0,this.relationshipTypeId=void 0,this.personnelId=void 0,this.relationship=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sourceUserId=e.sourceUserId,this.sourceFullName=e.sourceFullName,this.sourceFirstName=e.sourceFirstName,this.sourceLastName=e.sourceLastName,this.sourceEmail=e.sourceEmail,this.targetUserId=e.targetUserId,this.name=e.name,this.relationshipTypeId=e.relationshipTypeId,this.personnelId=e.personnelId,this.relationship=e.relationship)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sourceUserId=this.sourceUserId,e.sourceFullName=this.sourceFullName,e.sourceFirstName=this.sourceFirstName,e.sourceLastName=this.sourceLastName,e.sourceEmail=this.sourceEmail,e.targetUserId=this.targetUserId,e.name=this.name,e.relationshipTypeId=this.relationshipTypeId,e.personnelId=this.personnelId,e.relationship=this.relationship,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vv=function(){function e(t){if(Object(l.a)(this,e),this.roleId=void 0,this.name=void 0,this.roleTypeId=void 0,this.subRoleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name,this.roleTypeId=e.roleTypeId,this.subRoleId=e.subRoleId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.roleTypeId=this.roleTypeId,e.subRoleId=this.subRoleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_v=function(){function e(t){if(Object(l.a)(this,e),this.userSavedFilterId=void 0,this.name=void 0,this.isPublic=void 0,this.isReadOnly=void 0,this.isSystem=void 0,this.isDefault=void 0,this.filter=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userSavedFilterId=e.userSavedFilterId,this.name=e.name,this.isPublic=e.isPublic,this.isReadOnly=e.isReadOnly,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.filter=e.filter,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userSavedFilterId=this.userSavedFilterId,e.name=this.name,e.isPublic=this.isPublic,e.isReadOnly=this.isReadOnly,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.filter=this.filter,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yv=function(){function e(t){if(Object(l.a)(this,e),this.userSavedFilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userSavedFilters)){this.userSavedFilters=[];var t,i=Object(s.a)(e.userSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userSavedFilters.push(_v.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userSavedFilters)){e.userSavedFilters=[];var t,i=Object(s.a)(this.userSavedFilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userSavedFilters.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$v=function(){function e(t){if(Object(l.a)(this,e),this.userLearningPackageProgressId=void 0,this.userLearningPackageDetailId=void 0,this.duration=void 0,this.score=void 0,this.status=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLearningPackageProgressId=e.userLearningPackageProgressId,this.userLearningPackageDetailId=e.userLearningPackageDetailId,this.duration=e.duration,this.score=e.score,this.status=e.status)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLearningPackageProgressId=this.userLearningPackageProgressId,e.userLearningPackageDetailId=this.userLearningPackageDetailId,e.duration=this.duration,e.score=this.score,e.status=this.status,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hv=function(){function e(t){if(Object(l.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.title=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.isIndividualSessionDateAllowed=void 0,this.sessionLicenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.title=e.title,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezone=e.timezone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,Array.isArray(e.sessionLicenses))){this.sessionLicenses=[];var t,i=Object(s.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(ju.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.title=this.title,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezone=this.timezone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(s.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kv=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.registrationDate=void 0,this.registeredBy=void 0,this.validationDate=void 0,this.validatedBy=void 0,this.completionDate=void 0,this.tentativeDate=void 0,this.isCreditAdjusted=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.courseId=void 0,this.courseTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.userLicenseCreditValues=void 0,this.session=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.registeredBy=e.registeredBy,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.validatedBy=e.validatedBy,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.isCreditAdjusted=e.isCreditAdjusted,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.courseId=e.courseId,this.courseTitle=e.courseTitle,this.providerId=e.providerId,this.providerName=e.providerName,Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var t,i=Object(s.a)(e.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCreditValues.push(rp.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.session=e.session?Hv.fromJS(e.session):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.registeredBy=this.registeredBy,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.isCreditAdjusted=this.isCreditAdjusted,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.courseId=this.courseId,e.courseTitle=this.courseTitle,e.providerId=this.providerId,e.providerName=this.providerName,Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var t,i=Object(s.a)(this.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCreditValues.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.session=this.session?this.session.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qv=function(){function e(t){if(Object(l.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(s.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Kv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(s.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zv=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.fileId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.fileId=e.fileId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.fileId=this.fileId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xv=function(){function e(t){if(Object(l.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodLabel=void 0,this.isLocked=void 0,this.lockedBy=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodLabel=e.periodLabel,this.isLocked=e.isLocked,this.lockedBy=e.lockedBy,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodLabel=this.periodLabel,e.isLocked=this.isLocked,e.lockedBy=this.lockedBy,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ep=function(){function e(t){if(Object(l.a)(this,e),this.transcriptId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,this.registrationDate=void 0,this.registeredBy=void 0,this.validationDate=void 0,this.validatedBy=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.tentativeDate=void 0,this.isCreditAdjusted=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.userLicense=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.session=void 0,this.certificates=void 0,this.certificateDisplayStatusId=void 0,this.certificateDisplayStatus=void 0,this.activityParticipantId=void 0,this.activityId=void 0,this.hoursSpent=void 0,this.personnelId=void 0,this.activity=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.transcriptId=e.transcriptId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.registeredBy=e.registeredBy,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.validatedBy=e.validatedBy,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.isCreditAdjusted=e.isCreditAdjusted,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,Array.isArray(e.userLicense)){this.userLicense=[];var t,i=Object(s.a)(e.userLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicense.push(Av.fromJS(r))}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var n,a=Object(s.a)(e.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;this.userLicenseCreditValues.push(Tv.fromJS(o))}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var l,c=Object(s.a)(e.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;this.userLicensePropertyValues.push(Dv.fromJS(d))}}catch(p){c.e(p)}finally{c.f()}}if(this.session=e.session?Hv.fromJS(e.session):void 0,Array.isArray(e.certificates)){this.certificates=[];var u,h=Object(s.a)(e.certificates);try{for(h.s();!(u=h.n()).done;){var v=u.value;this.certificates.push(iv.fromJS(v))}}catch(p){h.e(p)}finally{h.f()}}this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.certificateDisplayStatus=e.certificateDisplayStatus,this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.hoursSpent=e.hoursSpent,this.personnelId=e.personnelId,this.activity=e.activity?Zh.fromJS(e.activity):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).transcriptId=this.transcriptId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.registeredBy=this.registeredBy,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.isCreditAdjusted=this.isCreditAdjusted,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,Array.isArray(this.userLicense)){e.userLicense=[];var t,i=Object(s.a)(this.userLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicense.push(r.toJSON())}}catch(p){i.e(p)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var n,a=Object(s.a)(this.userLicenseCreditValues);try{for(a.s();!(n=a.n()).done;){var o=n.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(p){a.e(p)}finally{a.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var l,c=Object(s.a)(this.userLicensePropertyValues);try{for(c.s();!(l=c.n()).done;){var d=l.value;e.userLicensePropertyValues.push(d.toJSON())}}catch(p){c.e(p)}finally{c.f()}}if(e.session=this.session?this.session.toJSON():void 0,Array.isArray(this.certificates)){e.certificates=[];var u,h=Object(s.a)(this.certificates);try{for(h.s();!(u=h.n()).done;){var v=u.value;e.certificates.push(v.toJSON())}}catch(p){h.e(p)}finally{h.f()}}return e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.certificateDisplayStatus=this.certificateDisplayStatus,e.activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.hoursSpent=this.hoursSpent,e.personnelId=this.personnelId,e.activity=this.activity?this.activity.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),tp=function(){function e(t){if(Object(l.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(s.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(ep.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(s.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ip=function(){function e(t){if(Object(l.a)(this,e),this.transcript=void 0,this.user=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.transcript=e.transcript?Pc.fromJS(e.transcript):void 0,this.user=e.user?hv.fromJS(e.user):void 0,this.licenseId=e.licenseId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).transcript=this.transcript?this.transcript.toJSON():void 0,e.user=this.user?this.user.toJSON():void 0,e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rp=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),np=function(){function e(t){if(Object(l.a)(this,e),this.typeId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.typeId=e.typeId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).typeId=this.typeId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Administrator=1]="Administrator",e[e.Client=2]="Client",e[e.Employee=3]="Employee"}(yv||(yv={}));var ap=function(){function e(t){if(Object(l.a)(this,e),this.userTypes=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userTypes)){this.userTypes=[];var t,i=Object(s.a)(e.userTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTypes.push(np.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTypes)){e.userTypes=[];var t,i=Object(s.a)(this.userTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTypes.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),op=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sp=function(){function e(t){if(Object(l.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.membershipNumber=void 0,this.membershipNumberLabel=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.membershipNumber=e.membershipNumber,this.membershipNumberLabel=e.membershipNumberLabel)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.membershipNumber=this.membershipNumber,e.membershipNumberLabel=this.membershipNumberLabel,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lp=function(){function e(t){if(Object(l.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.title=e.title,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cp=function(){function e(t){if(Object(l.a)(this,e),this.userUnregisteredLearningPlans=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userUnregisteredLearningPlans)){this.userUnregisteredLearningPlans=[];var t,i=Object(s.a)(e.userUnregisteredLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userUnregisteredLearningPlans.push(lp.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userUnregisteredLearningPlans)){e.userUnregisteredLearningPlans=[];var t,i=Object(s.a)(this.userUnregisteredLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userUnregisteredLearningPlans.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dp=function(){function e(t){if(Object(l.a)(this,e),this.userValidationError=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userValidationError)){this.userValidationError=[];var t,i=Object(s.a)(e.userValidationError);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userValidationError.push(Fv.fromJS(r))}}catch(n){i.e(n)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userValidationError)){e.userValidationError=[];var t,i=Object(s.a)(this.userValidationError);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userValidationError.push(r.toJSON())}}catch(n){i.e(n)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),up=function(){function e(t){if(Object(l.a)(this,e),this.calendarSavedFilterId=void 0,this.name=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.calendarSavedFilterId=e.calendarSavedFilterId,this.name=e.name,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).calendarSavedFilterId=this.calendarSavedFilterId,e.name=this.name,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hp=function(){function e(t){if(Object(l.a)(this,e),this.catalogSavedFilterId=void 0,this.name=void 0,this.createdBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.catalogSavedFilterId=e.catalogSavedFilterId,this.name=e.name,this.createdBy=e.createdBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).catalogSavedFilterId=this.catalogSavedFilterId,e.name=this.name,e.createdBy=this.createdBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vp=function(){function e(t){if(Object(l.a)(this,e),this.userId=void 0,this.collectionIds=void 0,this.title=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,Array.isArray(e.collectionIds)){this.collectionIds=[];var t,i=Object(s.a)(e.collectionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.collectionIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.title=e.title}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,Array.isArray(this.collectionIds)){e.collectionIds=[];var t,i=Object(s.a)(this.collectionIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.collectionIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.title=this.title,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pp=function(){function e(t){if(Object(l.a)(this,e),this.courseDto=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseDto=e.courseDto?mp.fromJS(e.courseDto):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseDto=this.courseDto?this.courseDto.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fp=function(){function e(t){if(Object(l.a)(this,e),this.courseTitle=void 0,this.providerId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseTitle=e.courseTitle,this.providerId=e.providerId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseTitle=this.courseTitle,e.providerId=this.providerId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mp=function(){function e(t){if(Object(l.a)(this,e),this.courseId=void 0,this.courseTitle=void 0,this.providerId=void 0,this.courseCode=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.courseTitle=e.courseTitle,this.providerId=e.providerId,this.courseCode=e.courseCode)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.courseTitle=this.courseTitle,e.providerId=this.providerId,e.courseCode=this.courseCode,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yp=function(){function e(t){if(Object(l.a)(this,e),this.error=void 0,this.validationMessage=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.error=e.error,this.validationMessage=e.validationMessage)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).error=this.error,e.validationMessage=this.validationMessage,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gp=function(){function e(t){if(Object(l.a)(this,e),this.providerIds=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.providerIds)){this.providerIds=[];var t,i=Object(s.a)(e.providerIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.providerIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.code=e.code}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.providerIds)){e.providerIds=[];var t,i=Object(s.a)(this.providerIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.providerIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bp=function(){function e(t){if(Object(l.a)(this,e),this.providerIds=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.providerIds)){this.providerIds=[];var t,i=Object(s.a)(e.providerIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.providerIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.name=e.name}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.providerIds)){e.providerIds=[];var t,i=Object(s.a)(this.providerIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.providerIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sp=function(){function e(t){if(Object(l.a)(this,e),this.sessionParticipantIds=void 0,this.completionDate=void 0,this.sessionId=void 0,this.onlineCourseFailed=void 0,this.override=void 0,this.senderId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.sessionParticipantIds=[])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessionParticipantIds)){this.sessionParticipantIds=[];var t,i=Object(s.a)(e.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.sessionId=e.sessionId,this.onlineCourseFailed=e.onlineCourseFailed,this.override=e.override,this.senderId=e.senderId}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessionParticipantIds)){e.sessionParticipantIds=[];var t,i=Object(s.a)(this.sessionParticipantIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionParticipantIds.push(r)}}catch(n){i.e(n)}finally{i.f()}}return e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.sessionId=this.sessionId,e.onlineCourseFailed=this.onlineCourseFailed,e.override=this.override,e.senderId=this.senderId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ep=function(){function e(t){if(Object(l.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,this.errors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance,e.errors)for(var i in this.errors={},e.errors)e.errors.hasOwnProperty(i)&&(this.errors[i]=void 0!==e.errors[i]?e.errors[i]:[])}}},{key:"toJSON",value:function(e){for(var t in e="object"===typeof e?e:{},this)this.hasOwnProperty(t)&&(e[t]=this[t]);if(e.type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,this.errors)for(var i in e.errors={},this.errors)this.errors.hasOwnProperty(i)&&(e.errors[i]=this.errors[i]);return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ip=function(){function e(t){if(Object(l.a)(this,e),this.username=void 0,this.verificationCode=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.username=e.username,this.verificationCode=e.verificationCode)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).username=this.username,e.verificationCode=this.verificationCode,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Op=function(e){Object(n.a)(i,e);var t=Object(a.a)(i);function i(e,r,n,a,o){var s;return Object(l.a)(this,i),(s=t.call(this)).message=void 0,s.status=void 0,s.response=void 0,s.headers=void 0,s.result=void 0,s.isApiException=!0,s.message=e,s.status=r,s.response=n,s.headers=a,s.result=o,s}return Object(c.a)(i,null,[{key:"isApiException",value:function(e){return!0===e.isApiException}}]),i}(Object(o.a)(Error));function Cp(e,t,i,r,n){throw null!==n&&void 0!==n?n:new Op(e,t,i,r,null)}function xp(e){return e&&!0===e.isAxiosError}},75:function(e,t,i){"use strict";i(507);var r=i(173);i.d(t,"a",(function(){return r.c})),i.d(t,"b",(function(){return r.d})),i.d(t,"c",(function(){return r.e})),i.d(t,"d",(function(){return r.f})),i.d(t,"e",(function(){return r.g})),i.d(t,"f",(function(){return r.h})),i.d(t,"g",(function(){return r.i})),i.d(t,"h",(function(){return r.j})),i.d(t,"i",(function(){return r.k})),i.d(t,"j",(function(){return r.l})),i.d(t,"k",(function(){return r.m}));var n=i(199);i.d(t,"l",(function(){return n.c}));i(61)},84:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return a})),i.d(t,"g",(function(){return o})),i.d(t,"e",(function(){return s})),i.d(t,"f",(function(){return l})),i.d(t,"h",(function(){return c})),i.d(t,"k",(function(){return d})),i.d(t,"i",(function(){return u})),i.d(t,"j",(function(){return h})),i.d(t,"a",(function(){return v}));var r="SET_FILTERS",n="SET_SAVED_FILTERS",a="SET_SAVED_FILTER_ID",o="SET_SEARCH_OPTION_TEXT_FILTER",s="SET_SEARCH_OPTION_CATEGORIES",l="SET_SEARCH_OPTION_FAVORITES_ONLY",c="SET_SEARCH_REQUEST_BODY",d="SET_SEARCH_RESULTS_LOADING",u="SET_SEARCH_RESULTS",h="SET_SEARCH_RESULTS_COUNT",v="SET_COURSE_FAVORITE"}},[[1057,1,2]]]);